RoleProxy AddRole Method (String, String, String, String) CelloSaaS API Documentation
Adds a new role to the system.

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 AddRole(
	string tenantCode,
	string roleName,
	string description,
	string roleQualifierQuery
)

Parameters

tenantCode
Type: System String
Tenant Code
roleName
Type: System String
Role Name(Mandatory)
description
Type: System String
Role Description
roleQualifierQuery
Type: System String
Qualifier Query

Return Value

Type: String
Inserted Role Id
Exceptions

ExceptionCondition
System.Data DataExceptionIf the role name is duplicate
[!:CelloSaaS.ServiceContracts.AccessControlManagement.RoleException]If pre or post processor was not inserted.
System ArgumentNullExceptionIf role name or description is null or empty.
System ArgumentExceptionIf role details is null
Examples

public void AddRole()
{   
   string tenantCode = "B590CD25-3093-DF11-8DEB-001EC9DAB123";
   string roleName = "Tenant_Admin";        
   string description = "Tenant Admin Role"; 
   string roleQualifierQuery = string.Empty;
   string roleId = RoleProxy.AddRole(tenantCode, roleName, description, roleQualifierQuery);
}
See Also