IRoleService GetUsersInRoles Method CelloSaaS API Documentation
Get user in the given roles.

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

string[] GetUsersInRoles(
	string[] roleIdentifier,
	string tenantId
)

Parameters

roleIdentifier
Type:  System String 
User Identifier(Mandatory)
tenantId
Type: System String
tenant's id

Return Value

Type:  String 
Role Identifiers
Exceptions

ExceptionCondition
CelloSaaS.ServiceContracts.AccessControlManagement RoleExceptionIf db exception occurs
System ArgumentNullExceptionIf 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