Cloud Storage Integrator 2016 Node.js Edition
Cloud Storage Integrator 2016 Node.js Edition
Questions / Feedback?

PermissionList Event

This event fires once for each permission returned when calling ListPermissions.

Syntax

googledrive.on('PermissionList', [callback])

Callback

The 'callback' is called when the 'PermissionList' event is emited.

function(e){ }

The argument 'e' has the following properties:

e.id
e.role
e.permissionType
e.email
e.domain
e.allowFileDiscovery

Remarks

When calling ListPermissions this event will fire once for each permission that is returned.

Id is the Id of the permission.

Role is the role of the permission. Possible values are:

0 Read-only.
1 Read and write permissions.
2 Full ownership.
3 Read-only, plus commenting

PermissionType identifies the type of the permission. Possible values are:

0 A single user.
1 A group.
2 A domain.
3 Anyone, authenticated or not.

Email holds the email address of the user or group that the permission applies to when PermissionType is 0 or 1.

Domain holds the domain that the permission applies to when PermissionType is 2.

AllowFileDiscovery signifies whether the permission allows the file to be discovered through search. It is only applicable when PermissionType is 2 or 3.

 
 
Copyright (c) 2019 /n software inc. - All rights reserved.
Cloud Storage Integrator 2016 Node.js Edition - Version 16.0 [Build 7239]