This service is available via Telligent.Evolution.Extensibility.Apis.Get<Telligent.Evolution.Extensibility.Api.Version2.IPermissions>()
and is defined in Telligent.Evolution.Platform.dll
Methods
PermissionCheck CheckPermission(Guid permissionId, int userId, PermissionCheckOptions options);
Check a permission based on an application or piece of content.
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
permissionId | Guid | Permission Id | Required | ||
userId | int | User Id | Required | ||
options | PermissionCheckOptions | Options | Required |
Return Type
PermissionCheck CheckPermission(Guid permissionId, int userId);
Check a site level permission.
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
permissionId | Guid | Permission Id | Required | ||
userId | int | User Id | Required |
Return Type
ApiList<PermissionEntry> List(int roleId, PermissionListOptions options);
List permissions.
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
roleId | int | Role Id | Required | ||
options | PermissionListOptions | Options | Required |
Return Type
AdditionalInfo Set(bool isAllowed, int roleId, Guid permissionId, PermissionSetOptions options);
Set a permission.
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
isAllowed | bool | Is Allowed | Required | ||
roleId | int | Role Id | Required | ||
permissionId | Guid | Permission Id | Required | ||
options | PermissionSetOptions | Options | Required |