Deactivates the specified role in the system.
Namespace: CelloSaaS.BusinessEdition.ServiceProxies.AccessControlManagementAssembly: CelloSaaS.BusinessEdition (in CelloSaaS.BusinessEdition.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"; RoleProxy.DeleteRole(tenantCode, roleIdentifier); }
See Also