IUserDetailsService SearchUserDetailsInOtherTenants Method CelloSaaS API Documentation
Get active 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> SearchUserDetailsInOtherTenants(
	string[] tenantCodes,
	string searchValue
)

Parameters

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

Return Value

Type: Dictionary String, UserDetails 
Active user Details
Exceptions

ExceptionCondition
System NotSupportedExceptionIf the service is for user connection sting DAL Provider
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 SearchUserDetailsInOtherTenants()
{
    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.SearchUserDetailsInOtherTenants(tenantCodes, searchValue);
}
See Also