PermissionItem

Represents the set of permissions a particular user or group has on a given resource

This is how you can decide to assign permissions or privileges for users to be able to access items.

PermissionItem Properties

PermissionItem

Field Type Inherited from Description
CommonName String PermissionItem Gets or sets the name of the common.
Privileges Privilege[] PermissionItem Gets or sets the privileges.
UserId String PermissionItem Gets or sets the user identifier.

JSON Structure of PermissionItem

{
   "CommonName"	:	"String",
   "Privileges"	:	"[Privilege](/object-model/privilege)[]",
   "UserId"	:	"String"
}

Get Permissions Async

Example in C#

// Returns: IEnumerable<PermissionItem>
var permissionItem = await client.GetPermissionsAsync(BaseInfo baseInfo)

Remove Permissions Async

Example in C#

// Returns: nothing
await client.RemovePermissionsAsync(BaseInfo baseInfo, String userId)

Set Permissions Async

Example in C#

// Returns: nothing
await client.SetPermissionsAsync(BaseInfo baseInfo, String userId, Boolean includeChildren, Privilege privileges)