IRoleService PermanentDeleteRole Method CelloSaaS API Documentation
Deletes specified role from the system.

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

void PermanentDeleteRole(
	string tenantCode,
	string roleIdentifier
)

Parameters

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

ExceptionCondition
CelloSaaS.ServiceContracts.AccessControlManagement RoleExceptionIf pre or post processor permanent delete was not happened.
System ArgumentNullExceptionIf 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