IUserDetailsService GetUserDetailsByName Method (String, String) CelloSaaS API Documentation
Get user details by user name and tenant Id.

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

UserDetails GetUserDetailsByName(
	string userName,
	string tenantId
)

Parameters

userName
Type: System String
User Name(Mandatory)
tenantId
Type: System String
Tenant Code

Return Value

Type: UserDetails
User information
Exceptions

ExceptionCondition
CelloSaaS.ServiceContracts.UserManagement UserDetailExceptionIf Any exception occurred, while connecting or modifying the database.
System ArgumentNullExceptionIf user name is null or empty.
Examples

Public void GetUserDetailsByName()
{
UserDetails userDetails = new UserDetails();
string userName = "[email protected]":
string tenantCode = "B590CD25-3093-DF11-8DEB-001EC9DAB123";
IUserDetailsService userDetailsService = (IUserDetailsService)ServiceLocator.GetServiceImplementation(typeof(IUserDetailsService));
userDetails = userDetailsService.GetUserDetailsByName(userName,tenantCode);
}
See Also