PrivilegeProxy GetPrivilegesForRoles Method (String,  String ) CelloSaaS API Documentation
Get the Role Privilege details

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

public static Dictionary<string, RolePrivilege> GetPrivilegesForRoles(
	string tenantIdentifier,
	string[] roleIdentifiers
)

Parameters

tenantIdentifier
Type: System String
Tenant Identifier(Mandatory)
roleIdentifiers
Type:  System String 
Role Identifiers(Mandatory)

Return Value

Type: Dictionary String, RolePrivilege 
Role Privilege details
Exceptions

ExceptionCondition
[!:CelloSaaS.ServiceContracts.AccessControlManagement.PrivilegeException]If db exception or license exception occurs
[!:ArgumentNullException]If role ids is null or empty
Examples

public void GetPrivilegesForRoles()
{
    string tenantIdentifier = "B590CD25-3093-DF11-8DEB-001EC9DAB123";        
    string[] roleIdentifiers = new string[] {"GR$Tenant_Admin", "GR$Product_Admin"};  
    Dictionary<string, RolePrivilege>  rolePrivileges = PrivilegeProxy.GetPrivilegesForRoles(tenantIdentifier, roleIdentifiers);
}
See Also