Get all roles created by the given tenant
Namespace: CelloSaaS.ServiceContracts.AccessControlManagementAssembly: CelloSaaS.ServiceContracts (in CelloSaaS.ServiceContracts.dll) Version: 4.3.1.0 (4.3.1.0)
Syntax
Parameters
- tenantCode
- Type: System String
Tenant Code(Mandatory)
Return Value
Type: List RoleActive and Inactive Tenant Role details
Exceptions
Exception | Condition |
---|---|
CelloSaaS.ServiceContracts.AccessControlManagement RoleException | If db exception occurs while fetching the role details. |
System UnauthorizedAccessException | If the user has not the privilege. |
System ArgumentNullException | If tenant code is null or empty. |
Examples
public void GetAllTenantRoleDetails() { string tenantCode = "B590CD25-3093-DF11-8DEB-001EC9DAB123"; IRoleService roleService = ServiceLocator.Resolve>IRoleService<(); List<Role> roles = roleService.GetAllTenantRoleDetails(tenantCode); }
See Also