IUserDetailsService GetUserDetailsByUserId Method (String) CelloSaaS API Documentation
Get user details for the given userId

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

UserDetails GetUserDetailsByUserId(
	string userId
)

Parameters

userId
Type: System String
User Identifier(Mandatory)

Return Value

Type: UserDetails
User Details
Exceptions

ExceptionCondition
CelloSaaS.ServiceContracts.UserManagement UserDetailExceptionIf Any exception occurred, while connecting or modifying the database.
System UnauthorizedAccessExceptionIf the user has not the view user privilege
System ArgumentNullExceptionIf the user id is null or empty
Examples

public void GetUserDetailsByUserId()
{
    UserDetails userDetails = new UserDetails();
    string userId = "3398F837-B988-4708-999D-D3DFE11875B3";
    IUserDetailsService userDetailsService = (IUserDetailsService)ServiceLocator.GetServiceImplementation(typeof(IUserDetailsService));
    userDetails = userDetailsService.GetUserDetailsByUserId(userId);
}
See Also