Updates the given role details
Namespace: CelloSaaS.ServiceContracts.AccessControlManagementAssembly: CelloSaaS.ServiceContracts (in CelloSaaS.ServiceContracts.dll) Version: 4.3.1.0 (4.3.1.0)
Syntax
Parameters
- roleDetails
- Type: CelloSaaS.Model.AccessControlManagement Role
Role Details(Mandatory - Role Identifier, Description)
- qualifierQuery
- Type: System String
Qualifier query (Obsolete)
Return Value
Type: StringUpdated Role Identifier
Exceptions
Exception | Condition |
---|---|
System.Data DataException | If rule name is duplicate. |
CelloSaaS.ServiceContracts.AccessControlManagement RoleException | If pre or post processor was not updated. |
System ArgumentNullException | If role id or role name or description is null. |
System ArgumentException | If role details is null. |
Examples
public void UpdateRole() { Role roleDetails = new Role(); roleDetails.RoleId = "GR$Tenant_Admin"; roleDetails.Description = "Tenant Admin Role"; string qualifierQuery = string.Empty; IRoleService roleService = ServiceLocator.Resolve>IRoleService<(); string roleId = roleService.UpdateRole(roleDetails, qualifierQuery); }
See Also