Get the Role Privilege details
Namespace: CelloSaaS.BusinessEdition.ServiceProxies.AccessControlManagementAssembly: CelloSaaS.BusinessEdition (in CelloSaaS.BusinessEdition.dll) Version: 4.3.1.0 (4.3.1.0)
public static Dictionary<string, RolePrivilege> GetPrivilegesForRoles(
string tenantIdentifier,
string[] roleIdentifiers
)
public static Dictionary<string, RolePrivilege> GetPrivilegesForRoles(
string tenantIdentifier,
string[] roleIdentifiers
)
Public Shared Function GetPrivilegesForRoles (
tenantIdentifier As String,
roleIdentifiers As String()
) As Dictionary(Of String, RolePrivilege)
Public Shared Function GetPrivilegesForRoles (
tenantIdentifier As String,
roleIdentifiers As String()
) As Dictionary(Of String, RolePrivilege)
static member GetPrivilegesForRoles :
tenantIdentifier : string *
roleIdentifiers : string[] -> Dictionary<string, RolePrivilege>
static member GetPrivilegesForRoles :
tenantIdentifier : string *
roleIdentifiers : string[] -> Dictionary<string, RolePrivilege>
Parameters
- tenantIdentifier
- Type: System String
Tenant Identifier(Mandatory)
- roleIdentifiers
- Type: System String
Role Identifiers(Mandatory)
Return Value
Type:
Dictionary String,
RolePrivilege Role Privilege details
Exception | Condition |
---|
[!:CelloSaaS.ServiceContracts.AccessControlManagement.PrivilegeException] | If db exception or license exception occurs |
[!:ArgumentNullException] | If role ids is null or empty |
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);
}
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);
}