Get User Details by ID

get

/user/{id}

Retrieves details of a given user.

Request

Path Parameters
Back to Top

Response

200 Response

The user details were retrieved successfully.
Back to Top

Examples

The following example shows how to retrieve details for a user by ID by submitting a GET request on the REST resource using cURL. For more information about cURL, see "Use cURL".

curl -X GET "hostname:port/user/1" -H "accept: */*"

Example of Response Body

If successful, the response code 200 is returned with a response body. For example:

{
  "_id": 2,
  "email": "example@oracle.com",
  "isAdmin": 1,
  "lastName": "tesuser",
  "username": "tesuser",
  "firstName": "tesuser",
  "middleName": "tesuser",
  "profilePic": null,
  "displayName": "TES User"
}

If the request fails, the response includes the appropriate HTTP code. For a 4xx/5xx code, the message body also contains a ProblemDetails structure with the cause attribute set to the appropriate application error.

Back to Top