Assignes the user to the given roles.
Namespace: CelloSaaS.ServiceContracts.AccessControlManagementAssembly: CelloSaaS.ServiceContracts (in CelloSaaS.ServiceContracts.dll) Version: 4.3.1.0 (4.3.1.0)
Syntax
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
Exception | Condition |
---|---|
System ArgumentException | Duplicate user role |
CelloSaaS.ServiceContracts.AccessControlManagement RoleException | If db exception occurs |
System UnauthorizedAccessException | Incase of privilege to add user roles |
System ArgumentNullException | If role ids or user id or role assigned tenant id is null or empty |
See Also