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,
string privilegeIdentifier
)
public static Dictionary<string, RolePrivilege> GetPrivilegesForRoles(
string tenantIdentifier,
string[] roleIdentifiers,
string privilegeIdentifier
)
Public Shared Function GetPrivilegesForRoles (
tenantIdentifier As String,
roleIdentifiers As String(),
privilegeIdentifier As String
) As Dictionary(Of String, RolePrivilege)
Public Shared Function GetPrivilegesForRoles (
tenantIdentifier As String,
roleIdentifiers As String(),
privilegeIdentifier As String
) As Dictionary(Of String, RolePrivilege)
static member GetPrivilegesForRoles :
tenantIdentifier : string *
roleIdentifiers : string[] *
privilegeIdentifier : string -> Dictionary<string, RolePrivilege>
static member GetPrivilegesForRoles :
tenantIdentifier : string *
roleIdentifiers : string[] *
privilegeIdentifier : string -> Dictionary<string, RolePrivilege>
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
Exception | Condition |
---|
[!:CelloSaaS.ServiceContracts.AccessControlManagement.PrivilegeException] | If db exception occurs |
[!:ArgumentNullException] | If tenant id or role id is null or empty |
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);
}
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);
}