IRoleService GetTenantRoleDetails Method CelloSaaS API Documentation
Get active roles created by the given tenant

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

List<Role> GetTenantRoleDetails(
	string tenantCode
)

Parameters

tenantCode
Type: System String
Tenant Code(Mandatory)

Return Value

Type: List Role 
Active Tenant Role details
Exceptions

ExceptionCondition
CelloSaaS.ServiceContracts.AccessControlManagement RoleExceptionIf db exceptions occur
System UnauthorizedAccessExceptionIf the user has not the privilege.
System ArgumentNullExceptionIf tenant code is null or empty.
Examples

public void GetTenantRoleDetails()
{
    string tenantCode = "B590CD25-3093-DF11-8DEB-001EC9DAB123";
    IRoleService roleService = ServiceLocator.Resolve>IRoleService<();
    List<Role> roles = roleService.GetTenantRoleDetails(tenantCode);
}
See Also