Deletes specified role from the system.
Namespace: CelloSaaS.ServiceContracts.AccessControlManagementAssembly: CelloSaaS.ServiceContracts (in CelloSaaS.ServiceContracts.dll) Version: 4.3.1.0 (4.3.1.0)
Syntax
Parameters
- tenantCode
- Type: System String
Tenant Code
- roleIdentifier
- Type: System String
Role Identifier(Mandatory)
Exceptions
Exception | Condition |
---|---|
CelloSaaS.ServiceContracts.AccessControlManagement RoleException | If pre or post processor permanent delete was not happened. |
System ArgumentNullException | If role id is null or empty. |
Examples
public void DeleteRole() { string tenantCode = UserIdentity.TenantID; string roleIdentifier = "GR$SampleRole"; IRoleService roleService = ServiceLocator.Resolve>IRoleService<(); roleService.PermanentDeleteRole(tenantCode, roleIdentifier); }
See Also