Get active user details based on the search value in other tenants
Namespace: CelloSaaS.ServiceContracts.UserManagementAssembly: CelloSaaS.ServiceContracts (in CelloSaaS.ServiceContracts.dll) Version: 4.3.1.0 (4.3.1.0)
Syntax
Parameters
- tenantCodes
- Type: System String
Tenant Codes
- searchValue
- Type: System String
Search Value
Return Value
Type: Dictionary String, UserDetailsActive user Details
Exceptions
Exception | Condition |
---|---|
System NotSupportedException | If the service is for user connection sting DAL Provider |
System UnauthorizedAccessException | If the user has not the search other tenant user privilege. |
CelloSaaS.ServiceContracts.UserManagement UserDetailException | If 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