IRoleService GetUsersInRole Method (String) CelloSaaS API Documentation
Get users for the given role.

Namespace: CelloSaaS.ServiceContracts.AccessControlManagement
Assembly: CelloSaaS.ServiceContracts (in CelloSaaS.ServiceContracts.dll) Version: 4.3.1.0 (4.3.1.0)
Syntax

string[] GetUsersInRole(
	string roleIdentifier
)

Parameters

roleIdentifier
Type: System String
Role Identifier(Mandatory)

Return Value

Type:  String 
User Identifiers
Exceptions

ExceptionCondition
System NotSupportedExceptionIf it is user connection string provider
CelloSaaS.ServiceContracts.AccessControlManagement RoleExceptionIf db exception occurs while getting the role details.
System ArgumentNullExceptionIf 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