IRoleService SearchRolesInOtherTenants Method CelloSaaS API Documentation
Searches active role details in other tenants

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

List<Role> SearchRolesInOtherTenants(
	string searchValue,
	string[] tenantCodes
)

Parameters

searchValue
Type: System String
Search Role Name String
tenantCodes
Type:  System String 
Tenant Codes(Empty will return all roles)

Return Value

Type: List Role 
Active Role details in other tenant
Exceptions

ExceptionCondition
System UnauthorizedAccessExceptionIf the user has not the privilege
CelloSaaS.ServiceContracts.AccessControlManagement RoleExceptionIf db exception occurs
Examples

public void SearchRolesInOtherTenants()
{
    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.SearchRolesInOtherTenants(searchValue, tenantCodes);
}
See Also