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

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

public static string UpdateRole(
	Role roleDetails,
	string qualifierQuery
)

Parameters

roleDetails
Type: CelloSaaS.BusinessEdition.ServiceProxies.RoleService Role
Role Details(Mandatory - Role Identifier, Description)
qualifierQuery
Type: System String
Qualifier query

Return Value

Type: String
Updated Role Identifier
Exceptions

ExceptionCondition
System.Data DataExceptionIf rule name is duplicate.
[!:CelloSaaS.ServiceContracts.AccessControlManagement.RoleException]If 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()
{   
   Role roleDetails = new Role();
   roleDetails.RoleId = "GR$Tenant_Admin";        
   roleDetails.Description = "Tenant Admin Role";
   string qualifierQuery = string.Empty;
   string roleId = RoleProxy.UpdateRole(roleDetails, qualifierQuery);
}
See Also