Get user details for the given userId
Namespace: CelloSaaS.ServiceContracts.UserManagementAssembly: CelloSaaS.ServiceContracts (in CelloSaaS.ServiceContracts.dll) Version: 4.3.1.0 (4.3.1.0)
Syntax
Parameters
- userId
- Type: System String
User Identifier(Mandatory)
Return Value
Type: UserDetailsUser Details
Exceptions
Exception | Condition |
---|---|
CelloSaaS.ServiceContracts.UserManagement UserDetailException | If Any exception occurred, while connecting or modifying the database. |
System UnauthorizedAccessException | If the user has not the view user privilege |
System ArgumentNullException | If 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