Get user in the given roles.
Namespace: CelloSaaS.ServiceContracts.AccessControlManagementAssembly: CelloSaaS.ServiceContracts (in CelloSaaS.ServiceContracts.dll) Version: 4.3.1.0 (4.3.1.0)
Syntax
Parameters
- roleIdentifier
- Type: System String
User Identifier(Mandatory)
- tenantId
- Type: System String
tenant's id
Return Value
Type: StringRole Identifiers
Exceptions
Exception | Condition |
---|---|
CelloSaaS.ServiceContracts.AccessControlManagement RoleException | If db exception occurs |
System ArgumentNullException | If the user id is null or empty. |
Examples
public void GetUserRoles() { string userIdentifier = "3398F837-B988-4708-999D-D3DFE11875B3"; IRoleService roleService = ServiceLocator.Resolve>IRoleService<(); string[] roles = roleService.GetUserRoles(userIdentifier); }
See Also