PrivilegeProxy GetPrivilegesForRoles Method (String,  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,
	string privilegeIdentifier
)

Parameters

tenantIdentifier
Type: System String
Tenant Identifier(Mandatory)
roleIdentifiers
Type:  System String 
Role Idntifiers(Mandatory)
privilegeIdentifier
Type: System String
Privilege Identifier(Mandatory)

Return Value

Type: Dictionary String, RolePrivilege 
Role Privilege details
Exceptions

ExceptionCondition
[!:CelloSaaS.ServiceContracts.AccessControlManagement.PrivilegeException]If db exception occurs
[!:ArgumentNullException]If tenant id or role id 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"};
    string privilegeIdentifier = "Add_User";
    Dictionary<string, RolePrivilege>  rolePrivileges = PrivilegeProxy.GetPrivilegesForRoles(tenantIdentifier, roleIdentifiers, privilegeIdentifier);
}
See Also