Get user profile info
POST /api/v1/user/profile/{userId} HTTP/1.1
- Response structure
| Parameter | Type | Description |
|---|---|---|
userId | String | User id |
email | String | |
login | String | User’s login |
lang | String | Language |
firstName | String | First name |
middleName | Null | Middle name |
lastName | String | Last name |
position | String | Position |
city | Null | City |
department | String | Departament |
organization | String | Organization |
unit | Null | Organization unit |
emails | Array | List of emails |
avatar | String | Avatar |
userRole | Null | User’s rights to access functionality |
accessExpiresAt | Null | The time when the user access to application will be expired (formatted ISO8601 timestamp) |
phones | Array | List of phones |
emails[].type | String | Email type |
emails[].email | String | |
phones[].extension | String | Extension |
phones[].type | String | Type |
phones[].phoneNumber | String | Phone number |
- Example request
$ GET /api/v1/user/profile/bcd4e7d9205c4cdf986247bdf186c025 HTTP/1.1
Content-Type: application/json
X-Tenant-ID: default
Host: localhost:8080
- 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
}