Skip to main content

Get user profile info

POST /api/v1/user/profile/{userId} HTTP/1.1
  1. Response structure
ParameterTypeDescription
userIdStringUser id
emailStringEmail
loginStringUser’s login
langStringLanguage
firstNameStringFirst name
middleNameNullMiddle name
lastNameStringLast name
positionStringPosition
cityNullCity
departmentStringDepartament
organizationStringOrganization
unitNullOrganization unit
emailsArrayList of emails
avatarStringAvatar
userRoleNullUser’s rights to access functionality
accessExpiresAtNullThe time when the user access to application will be expired (formatted ISO8601 timestamp)
phonesArrayList of phones
emails[].typeStringEmail type
emails[].emailStringEmail
phones[].extensionStringExtension
phones[].typeStringType
phones[].phoneNumberStringPhone number
  1. Example request
$ GET /api/v1/user/profile/bcd4e7d9205c4cdf986247bdf186c025 HTTP/1.1
Content-Type: application/json
X-Tenant-ID: default
Host: localhost:8080
  1. Example response
HHTTP/1.1 200 OK
X-co-request-id: OMfDTvYCNInYvNx5KCNJqsF5mf4Rbow6
Content-Type: application/json
Content-Length: 578
{
"userRole": null,
"email": "testsrvdocs@srv.uno.devoffice.ru",
"lang": "RU",
"userId": "bcd4e7d9205c4cdf986247bdf186c025",
"firstName": "testsrvdocs@srv.uno.devoffice.ru",
"login": "testsrvdocs@srv.tacos.devoffice.ru",
"middleName": null,
"lastName": "testsrvdocs@srv.uno.devoffice.ru",
"position": "Developer",
"city": null,
"department": "DEV",
"organisation": "MyOffice",
"unit": null,
"emails": [
{
"type": "work",
"email": "testsrvdocs@srv.uno.devoffice.ru"
}
],
"phones": [
{
"extension": "555",
"type": "work",
"phoneNumber": "111-11-11"
}
],
"avatar": "avatar",
"accessExpiresAt": null
}