Removes the given roles from the user
Namespace: CelloSaaS.BusinessEdition.ServiceProxies.AccessControlManagementAssembly: CelloSaaS.BusinessEdition (in CelloSaaS.BusinessEdition.dll) Version: 4.3.1.0 (4.3.1.0)
Syntax
Parameters
- userId
- Type: System String
User Identifier(Mandatory)
- roleIds
- Type: System String
Role Identifiers(Mandatory)
Exceptions
Exception | Condition |
---|---|
[!:CelloSaaS.ServiceContracts.AccessControlManagement.RoleException] | If db exception occurs |
System UnauthorizedAccessException | If user has not the privilege to delete the user role |
System ArgumentNullException | If role ids or user id is null or empty. |
Examples
public void PermanentDeleteUserRole() { string userId = "3398F837-B988-4708-999D-D3DFE11875B3"; string[] roleIds = new string[] {"GR$Tenant_Admin", "GR$Product_Admin"}; RoleProxy.PermanentDeleteUserRole(userId, roleIds); }
See Also