Searches all role details in other tenants
Namespace: CelloSaaS.ServiceContracts.AccessControlManagementAssembly: CelloSaaS.ServiceContracts (in CelloSaaS.ServiceContracts.dll) Version: 4.3.1.0 (4.3.1.0)
Syntax
Parameters
- searchValue
- Type: System String
Search Role Name String
- tenantCodes
- Type: System String
Tenant Codes(Empty or null will return all roles)
Return Value
Type: List RoleActive and Inactive Role details in other tenant
Exceptions
Exception | Condition |
---|---|
CelloSaaS.ServiceContracts.AccessControlManagement RoleException | If db exception occurs |
System UnauthorizedAccessException | If the user has not the privilege |
Examples
public void SearchAllRolesInOtherTenants() { string searchValue = "a"; string[] tenantCodes = new string[] {"F1446542-0294-DF11-8DEB-001EC9DAB123", "E1446542-0294-DF11-8DEB-001EC9DAB123"}; IRoleService roleService = ServiceLocator.Resolve>IRoleService<(); List<Role> roles = roleService.SearchAllRolesInOtherTenants(searchValue, tenantCodes); }
See Also