Deactivates the specified role in 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 db exception occurs while deleting the role. |
System ArgumentNullException | If role id is null or empty. |
Examples
public void DeactivateRole() { string tenantCode = "B590CD25-3093-DF11-8DEB-001EC9DAB123"; string roleIdentifier = "GR$Tenant_Admin"; IRoleService roleService = ServiceLocator.Resolve>IRoleService<(); roleService.DeleteRole(tenantCode, roleIdentifier); }
See Also