Get User by Id - GET /Users/{id}
Owned by David P (Deactivated)
Get details of a user according to User Id.
Usage:
- GET /Users/{id} and get details of a user
- PUT /Users/{id} and update user details
URL
/cxrestapi/auth/Users/{id}
Method:
GET
Media Type (header):
Authorization: Bearer <access token value>
Accept: application/json;v=1.0
Parameters
Required:
id=[integer] – Unique Id of the User
Success Response:
Code: 201 Success
Error Response:
Code: 400 Bad Request
Code: 401 Unauthorized
Code: 403 Forbidden
Code: 404 Not Found
Sample Response:
{
"id": 1,
"userName": "admin",
"lastLoginDate": "2018-07-17T13:48:06.6800933Z",
"roleIds": [
1
],
"teamIds": [
1,
11,
12
],
"authenticationProviderId": 1,
"firstName": "Inbal",
"lastName": "Mon",
"email": "admin@check.org",
"phoneNumber": "",
"cellPhoneNumber": "",
"jobTitle": "Admin",
"other": "",
"country": "Algeria",
"active": true,
"expirationDate": "2021-03-04T07:55:58.0201439Z",
"allowedIpList": [],
"localeId": 1
}
Notes:
Retrieves user details according to the specified User Id. If the request fails, it returns an error response.
Related content
Send Documentation Feedback - If you have comments about this documentation, you can contact the documentation team by sending your feedback to us. We appreciate your feedback!