IRoleService AddUserToRoles Method (String,  String , String, String) CelloSaaS API Documentation
Assignes the user to the given roles.

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

void AddUserToRoles(
	string userIdentifier,
	string[] roleIdentifiers,
	string roleAssigningtenantId,
	string stratifiedTenantId
)

Parameters

userIdentifier
Type: System String
The user identifier.
roleIdentifiers
Type:  System String 
The role identifiers.
roleAssigningtenantId
Type: System String
The role assigningtenant id.
stratifiedTenantId
Type: System String
The stratified tenant id.
Exceptions

ExceptionCondition
System ArgumentExceptionDuplicate user role
CelloSaaS.ServiceContracts.AccessControlManagement RoleExceptionIf db exception occurs
System UnauthorizedAccessExceptionIncase of privilege to add user roles
System ArgumentNullExceptionIf role ids or user id or role assigned tenant id is null or empty
See Also