Get all(both active and inactive) user details for the given tenant Identifier.
Namespace: CelloSaaS.ServiceContracts.UserManagementAssembly: CelloSaaS.ServiceContracts (in CelloSaaS.ServiceContracts.dll) Version: 4.3.1.0 (4.3.1.0)
Syntax
Parameters
- tenantId
- Type: System String
Tenant Identifier(Mandatory)
Return Value
Type: Dictionary String, UserDetailsActive and Inactive User details
Exceptions
Exception | Condition |
---|---|
System UnauthorizedAccessException | |
CelloSaaS.ServiceContracts.UserManagement TenantUserAssociationException | If any error occur, while sharing the user details. |
CelloSaaS.ServiceContracts.UserManagement UserDetailException | If Any exception occurred, while connecting or modifying the database. |
System ArgumentNullException | If 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