IUserDetailsService SearchAllUserDetailsInCurrentTenant Method CelloSaaS API Documentation
Get all user details based on the search value in current tenant

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

Dictionary<string, UserDetails> SearchAllUserDetailsInCurrentTenant(
	string tenantCode,
	string searchValue
)

Parameters

tenantCode
Type: System String
Tenant Code(Mandatory)
searchValue
Type: System String
Search Value

Return Value

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

ExceptionCondition
System UnauthorizedAccessExceptionIf the user has not the search user privilege.
CelloSaaS.ServiceContracts.UserManagement UserDetailExceptionIf Any exception occurred, while connecting or modifying the database.
System ArgumentNullExceptionIf 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