IUserDetailsService GetAllUserDetailsByTenantId Method CelloSaaS API Documentation
Get all(both active and inactive) user details for the given tenant Identifier.

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

Dictionary<string, UserDetails> GetAllUserDetailsByTenantId(
	string tenantId
)

Parameters

tenantId
Type: System String
Tenant Identifier(Mandatory)

Return Value

Type: Dictionary String, UserDetails 
Active and Inactive User details
Exceptions

ExceptionCondition
System UnauthorizedAccessException
CelloSaaS.ServiceContracts.UserManagement TenantUserAssociationExceptionIf any error occur, while sharing the user details.
CelloSaaS.ServiceContracts.UserManagement UserDetailExceptionIf Any exception occurred, while connecting or modifying the database.
System ArgumentNullExceptionIf the tenant id is null or empty.
Examples

public void GetAllUserDetailsByTenantId()
{
    Dictionary<string, UserDetails> userDetails = new Dictionary<string, UserDetails>();
    string tenantId = "B590CD25-3093-DF11-8DEB-001EC9DAB123";
    IUserDetailsService userDetailsService = (IUserDetailsService)ServiceLocator.GetServiceImplementation(typeof(IUserDetailsService));
    userDetails = userDetailsService.GetAllUserDetailsByTenantId(tenantId);
}
See Also