Get all user details based on the search value in current tenant
Namespace: CelloSaaS.ServiceContracts.UserManagementAssembly: CelloSaaS.ServiceContracts (in CelloSaaS.ServiceContracts.dll) Version: 4.3.1.0 (4.3.1.0)
Syntax
Parameters
- tenantCode
- Type: System String
Tenant Code(Mandatory)
- searchValue
- Type: System String
Search Value
Return Value
Type: Dictionary String, UserDetailsActive and Inactive user Details
Exceptions
Exception | Condition |
---|---|
System UnauthorizedAccessException | If the user has not the search user privilege. |
CelloSaaS.ServiceContracts.UserManagement UserDetailException | If Any exception occurred, while connecting or modifying the database. |
System ArgumentNullException | If tenant code is null or empty |
Examples
public void SearchAllUserDetailsInCurrentTenant() { Dictionary<string, UserDetails> userDetails = new Dictionary<string, UserDetails>(); string tenantCode = "Compay"; string searchValue= "a"; IUserDetailsService userDetailsService = (IUserDetailsService)ServiceLocator.GetServiceImplementation(typeof(IUserDetailsService)); userDetails = userDetailsService.SearchAllUserDetailsInCurrentTenant(tenantCode, searchValue); }
See Also