This web service returns information about a user.
Method | Endpoint |
---|---|
GET |
/api/users/{userId} |
Path parameter | Type | Description |
---|---|---|
{userId} |
String | The user's identifier. |
Response body
The following lines show an example of a JSON response body:
{
"id": "a43eb18a-3f48-4732-9389-61b540ce9d0d",
"displayName": "A User",
"emailAddress": "user@mail.com"
}
Field | Type | Description |
---|---|---|
id |
String | The user's identifier. |
displayName |
String | The user's name as it appears in the portal. |
emailAddress |
String | The user's email address. |
Return code | Description |
---|---|
200 OK |
The request is valid and data is returned. |
401 UNAUTHORIZED |
The authorization header is absent or invalid. |
403 FORBIDDEN |
The user or API key does not have the ADMIN or USERS_ADMIN role. |
404 NOT FOUND |
No user exists with this ID. |
For a comprehensive list of all possible return codes, see Return codes.