IUserDetailsService SearchAllUserDetailsInOtherTenants Method CelloSaaS API Documentation
Get all user details based on the search value in other tenants

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

Dictionary<string, UserDetails> SearchAllUserDetailsInOtherTenants(
	string[] tenantCodes,
	string searchValue
)

Parameters

tenantCodes
Type:  System String 
Tenant Codes
searchValue
Type: System String
Search Value

Return Value

Type: Dictionary String, UserDetails 
Active and Inactive user Details
Exceptions

ExceptionCondition
System NotSupportedException
System UnauthorizedAccessExceptionIf the user has not the search other tenant user privilege.
CelloSaaS.ServiceContracts.UserManagement UserDetailExceptionIf Any exception occurred, while connecting or modifying the database.
Examples

public void SearchAllUserDetailsInOtherTenants()
{
    Dictionary<string, UserDetails> userDetails = new Dictionary<string, UserDetails>();
    string[] tenantCodes = new string {"C590CD25-3093-DF11-8DEB-001EC9DAB123","D590CD25-3093-DF11-8DEB-001EC9DAB123"};
    string searchValue= "a";
    IUserDetailsService userDetailsService = (IUserDetailsService)ServiceLocator.GetServiceImplementation(typeof(IUserDetailsService));
    userDetails = userDetailsService.SearchAllUserDetailsInOtherTenants(tenantCodes, searchValue);
}
See Also