Fields

Fields
ParameterDescription
action
String
requiredOne of grant or revoke.
role
String
requiredOne of read or write.
resourceId
String
requiredThe Id of the file/folder. You can get this value from the Content Library.
resourceType
String
requiredOne of file or folder. You can get this value from the Content Library.
driveId
String
requiredThe Id of the drive.
emails
List<String>
requiredEmail IDs for which you want to provide/revoke access.
salesforceUserOrGroupIds
List<String>
requiredList of Salesforce User/Group IDs to grant or revoke access.
resourceIds
List<String>
requiredList of resourceId values.
salesforcePermission
Boolean
optionalOptional flag indicating whether the permission is applied as a Salesforce-side permission. Set via the constructor overload that accepts it.

Constructors

global PermissionInput(
      String action,
      String role,
      String resourceId,
      String resourceType,
      String driveId,
      List<String> emails,
      List<String> salesforceUserOrGroupIds,
      List<String> resourceIds
)