Web Services API | User web services | Get user
Modified on: Thu, 13 Apr 2023 4:30 PMGet user
Obtains a user (always synchronously) by id or username.
- Url: /integration/ws/management/rest/users/<user_id_or_username>
- Method: GET
-
Headers:
- Accept: version/format header
- X-Cloud-Auth-Token*: authorization header
-
Responses:
-
200: OK. Content:
- status: generic status
- location: generic location of the resultant resource, if any
- message: generic success or error message, if any
-
responsePlatforms: response for every platform it concerns. Each one with the content:
- status: status in the platform
- location: location of the resultant resource in the platform, if any
- message: success or error message in the platform, if any
-
200: OK. Content:
-
Url example by user id:
http://netex.dev.learningcloud.me/integration/ws/management/rest/users/ff8081814fb1ee7f014fb20105ba0004
-
Url example by username:
http://netex.dev.learningcloud.me/integration/ws/management/rest/users/oliver.twist
- Response example:
{
· "aboutMe": "I'm the title character and protagonist of the novel Oliver Twist by Charles Dickens. I was the first child protagonist in an English novel.",
· "email": "oliver.twist.pero@netex.com",
· "enabled": true,
· "extra": {},
· "id": "ff8081814fb1ee7f014fb20105ba0004",
· "image": {
· "url": "/opt/cloud//netex/2015/09/29/bfc5296d-e36f-4888-bfef-74643c220e50.jpg"
· },
· "interests": "I want some more",
· "language": "en",
· "location": "London",
· "mobilePhone": "222222222",
· "name": "Oliver",
· "officePhone": "111111111",
· "roles": {
· "management": ["user"],
· "social": ["user"],
· "training": ["user"]
· "play": ["user"]
· },
· "surname": "Twist",
· "timezone": "Europe/London",
· "username": "oliver.twist"
}