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);
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
permissionId | Guid | Permission Id | Required | ||
userId | int | User Id | Required | ||
options | PermissionCheckOptions | Options | Required |
Return Type
ApiList<PermissionEntry> List(int roleId, PermissionListOptions options);
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);
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 |