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

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

public static 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.RoleException]If 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