PrivilegeProxy DeletePrivilegesForRole Method CelloSaaS API Documentation
Delete privileges for role

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

public static void DeletePrivilegesForRole(
	string tenantId,
	string roleId,
	string[] privilegeIds
)

Parameters

tenantId
Type: System String
Tenant Identifier(Mandatory)
roleId
Type: System String
Role Identifier(Mandatory)
privilegeIds
Type:  System String 
Privilege Identifiers(Mandatory)
Exceptions

ExceptionCondition
System UnauthorizedAccessExceptionIf 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