Skip to main content
Version: 2.3.0

Get user information

Updated date: 17/03/2025
Updated by: VNPT eContract's team


Purpose

Function to retrieve user information by user Id

  • Request URL: /api/users/{id}
  • HTTP method: GET
  • Authorize: Bearer token
  • Parameter:
KeyTypeDescription
idint[Required] Id of user

Sample request

Id of user: id = 2328
Request: /api/users/2328

Sample response body

{
"data": {
"id": 2328,
"createdDate": "2022-09-08T08:48:53.8316168",
"comId": 164,
"code": "USER01",
"name": "Nguyen Van A",
"phone": "0919XXXXXX",
"email": "email_address",
"isValid": false,
"signConfirmationEnabled": true,
"isAccountLocked": false,
"accountId": "e06d8b9c-6f49-4751-87d0-6367c524a6ce",
"signMethod": {
"value": 3,
"description": "Sign token"
},
"status": {
"value": 1,
"description": "Enabled"
},
"receiveOtpMethod": {
"value": 1,
"description": "Email"
},
"receiveNotificationMethod": {
"value": 0,
"description": "Email"
},
"personalCertificateId": 1940,
"smartCaId": 2010,
"roles": [
{
"id": "29e1138e-833e-4b3a-897a-08da9c3dd633",
"code": "Admin",
"name": "Admin manages the company",
"description": "Admin account manages the company"
}
],
},
"success": true,
"code": 0,
"messages": []
}