Get users for the given role.
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
Role Identifier(Mandatory)
Return Value
Type: StringUser Identifiers
Exceptions
Exception | Condition |
---|---|
System NotSupportedException | If it is user connection string provider |
CelloSaaS.ServiceContracts.AccessControlManagement RoleException | If db exception occurs while getting the role details. |
System ArgumentNullException | If the role id is null or empty. |
Examples
public void GetUsersInRole() { string roleIdentifier = "GR$Tenant_Admin"; IRoleService roleService = ServiceLocator.Resolve>IRoleService<(); string[] roles = roleService.GetUsersInRole(roleIdentifier); }
See Also