RoleProxy GetAllTenantRoleDetails Method CelloSaaS API Documentation
Get all roles created by the given tenant

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

public static List<Role> GetAllTenantRoleDetails(
	string tenantId
)

Parameters

tenantId
Type: System String

Return Value

Type: List Role 
Active and Inactive Tenant Role details
Exceptions

ExceptionCondition
[!:CelloSaaS.ServiceContracts.AccessControlManagement.RoleException]If db exception occurs while fetching the role details.
System UnauthorizedAccessExceptionIf the user has not the privilege.
System ArgumentNullExceptionIf tenant code is null or empty.
Examples

public void GetAllTenantRoleDetails()
{
   string tenantCode = "B590CD25-3093-DF11-8DEB-001EC9DAB123";
   List<Role> roles = RoleProxy.GetAllTenantRoleDetails(tenantCode);
}
See Also