IRoleService UpdateUserRoles Method (String,  String , String) CelloSaaS API Documentation
This method is used to update user roles. New role Identifier for user then insert role to user. Previous user role is not available in the current list then remove role from user.

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

void UpdateUserRoles(
	string userIdentifier,
	string[] roleIdentifiers,
	string tenantId
)

Parameters

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

ExceptionCondition
System UnauthorizedAccessExceptionIf the user has not the privilege
CelloSaaS.ServiceContracts.AccessControlManagement RoleExceptionIf db exception occurs
System ArgumentNullExceptionIf role ids or user id or tenant id is null or empty.
See Also