IRoleService AddUserToRoles Method (String,  String ) CelloSaaS API Documentation
Assign many roles to the given user

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
)

Parameters

userIdentifier
Type: System String
The user identifier.
roleIdentifiers
Type:  System String 
The role identifiers.
Exceptions

ExceptionCondition
System ArgumentException
CelloSaaS.ServiceContracts.AccessControlManagement RoleExceptionIf db exception occur
System ArgumentNullExceptionIf the role ids or user id is null or empty.
System UnauthorizedAccessExceptionIf the use rhas not the privilege.
See Also