PermissionList Event
This event fires once for each permission returned when calling ListPermissions.
Syntax
Sub googledrivecontrol_PermissionList(Id As String, Role As Integer, PermissionType As Integer, Email As String, Domain As String, AllowFileDiscovery As Boolean)
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.