Delete privileges for role
Namespace: CelloSaaS.BusinessEdition.ServiceProxies.AccessControlManagementAssembly: CelloSaaS.BusinessEdition (in CelloSaaS.BusinessEdition.dll) Version: 4.3.1.0 (4.3.1.0)
Syntax
Parameters
- tenantId
- Type: System String
Tenant Identifier(Mandatory)
- roleId
- Type: System String
Role Identifier(Mandatory)
- privilegeIds
- Type: System String
Privilege Identifiers(Mandatory)
Exceptions
Exception | Condition |
---|---|
System UnauthorizedAccessException | If the user has not the privilege. |
[!:CelloSaaS.ServiceContracts.AccessControlManagement.PrivilegeException] | If db exception occurs. |
[!:ArgumentNullException] | If role id or privilege ids is null or empty |
Examples
public void DeletePrivilegesForRole() { string tenantId = "B590CD25-3093-DF11-8DEB-001EC9DAB123"; string roleId = "GR$Tenant_Admin"; string[] privilegeIds = new string[] {"Add_User", "Edit_User", "Delete_User"}; PrivilegeProxy.DeletePrivilegesForRole(tenantId, roleId, privilegeIds); }
See Also