IRoleService DeleteRole Method CelloSaaS API Documentation
Deactivates the specified role in the system.

Namespace: CelloSaaS.ServiceContracts.AccessControlManagement
Assembly: CelloSaaS.ServiceContracts (in CelloSaaS.ServiceContracts.dll) Version: 4.3.1.0 (4.3.1.0)
Syntax

void DeleteRole(
	string tenantCode,
	string roleIdentifier
)

Parameters

tenantCode
Type: System String
Tenant Code
roleIdentifier
Type: System String
Role Identifier(Mandatory)
Exceptions

ExceptionCondition
CelloSaaS.ServiceContracts.AccessControlManagement RoleExceptionIf db exception occurs while deleting the role.
System ArgumentNullExceptionIf 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