IRoleService UpdateRole Method (String, String, String) CelloSaaS API Documentation
Updates the given role details

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

string UpdateRole(
	string roleIdentifier,
	string roleDescription,
	string qualifierQuery
)

Parameters

roleIdentifier
Type: System String
Role Identifier(Mandatory)
roleDescription
Type: System String
Role Description(Mandatory)
qualifierQuery
Type: System String
Qualifier query (Obsolete)

Return Value

Type: String
Updated Role Identifier
Exceptions

ExceptionCondition
System.Data DataExceptionIf rule name is duplicate.
CelloSaaS.ServiceContracts.AccessControlManagement RoleExceptionIf pre or post processor was not updated.
System ArgumentNullExceptionIf role id or role name or description is null.
System ArgumentExceptionIf role details is null.
Examples

public void UpdateRole()
{   
   string roleIdentifier = "GR$Tenant_Admin";        
   string description = "Tenant Admin Role";
   string qualifierQuery = string.Empty;
   IRoleService roleService = ServiceLocator.Resolve>IRoleService<();
   string roleId = roleService.UpdateRole(roleIdentifier, description, qualifierQuery);
}
See Also