This service is available via Telligent.Evolution.Extensibility.Apis.Get<Telligent.Evolution.Extensibility.Api.Version1.IPermissions>()
and is defined in Telligent.Evolution.Platform.dll
Methods
AdditionalInfo FlagPermissionForRegistrationUpdate(Guid permissionId);
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
permissionId | Guid | Permission Id | Required |
Return Type
PermissionCheck Get(Guid permissionId, int userId);
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
permissionId | Guid | Permission Id | Required | ||
userId | int | User Id | Required |
Return Type
PermissionCheck Get(Guid permissionId, int userId, Guid contentId, Guid contentTypeId);
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
permissionId | Guid | Permission Id | Required | ||
userId | int | User Id | Required | ||
contentId | Guid | Content Id | Required | ||
contentTypeId | Guid | Content Type Id | Required |
Return Type
PermissionCheck Get(Guid permissionId, int userId, Guid entityId, Guid entityTypeId, PermissionType entityPermissionType);
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
permissionId | Guid | Permission Id | Required | ||
userId | int | User Id | Required | ||
entityId | Guid | Entity Id | Required | ||
entityTypeId | Guid | Entity Type Id | Required | ||
entityPermissionType | PermissionType | Entity Permission Type | Required |
Return Type
Role Get(string application, int? id, int roleId, string permissionId, PermissionsGetOptions options = null);
Get Role for an application with a specific permission
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
application | string | Application name, like Forum or Gallery | Required | ||
id | int? | ID of the application | Required | ||
roleId | int | Role Id | Required | ||
permissionId | string | Permission Id | Required | ||
options | PermissionsGetOptions | Optional parameter names are: Include | Optional |
Return Type
Role Get(Guid applicationTypeId, Guid applicationId, int roleId, string permissionId, PermissionsGetOptions options = null);
Get Role for a group, application or content with a specific permission
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
applicationTypeId | Guid | ApplicationTypeId of the group or application | Required | ||
applicationId | Guid | ApplicationId of the group or application | Required | ||
roleId | int | Role Id | Required | ||
permissionId | string | Permission Id | Required | ||
options | PermissionsGetOptions | Optional parameter names are: Include | Optional |
Return Type
AdditionalInfo GrantApplicationPermission(Guid applicationId, int roleId, Guid permissionId);
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
applicationId | Guid | Application Id | Required | ||
roleId | int | Role Id | Required | ||
permissionId | Guid | Permission Id | Required |
Return Type
AdditionalInfo GrantGroupPermission(int groupId, int roleId, Guid permissionId);
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
groupId | int | Group Id | Required | ||
roleId | int | Role Id | Required | ||
permissionId | Guid | Permission Id | Required |
Return Type
AdditionalInfo GrantSitePermission(int roleId, Guid permissionId);
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
roleId | int | Role Id | Required | ||
permissionId | Guid | Permission Id | Required |
Return Type
AdditionalInfo RevokeApplicationPermission(Guid applicationId, int roleId, Guid permissionId);
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
applicationId | Guid | Application Id | Required | ||
roleId | int | Role Id | Required | ||
permissionId | Guid | Permission Id | Required |
Return Type
AdditionalInfo RevokeGroupPermission(int groupId, int roleId, Guid permissionId);
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
groupId | int | Group Id | Required | ||
roleId | int | Role Id | Required | ||
permissionId | Guid | Permission Id | Required |
Return Type
AdditionalInfo RevokeSitePermission(int roleId, Guid permissionId);
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
roleId | int | Role Id | Required | ||
permissionId | Guid | Permission Id | Required |