- Getting started
- Authentication
- Scopes and permissions
- Platform Management APIs
Get user
User details for a specific local or directory user in a Private Test Cloud organization, retrieved by user ID, including required scopes, path parameters, and the user category.
Returns the details of the specified user, based on the user ID. Supports both local and directory users.
API endpoint
GET https://{yourDomain}/{organizationName}/identity_/api/User/{userId}
Scopes
Requires the following scopes:
PM.UserPM.User.Read
Request headers
--header 'Authorization: Bearer {access_token}'
--header 'Authorization: Bearer {access_token}'
To obtain the {access_token}, make sure to authenticate through one of the methods described in Authentication methods.
Path parameters
| Parameter | Data type | Description |
|---|---|---|
userId | String | Required. The ID of the user you want to retrieve. |
Responses
200 Success
Returns the user details. The category field indicates how the user relates to your directory integration:
| Value | Category | Description |
|---|---|---|
0 | Local | The user exists only in Private Test Cloud. |
1 | Linked local | A local user that is linked to a directory account, typically because the user signed in through the identity provider. |
2 | Directory | The user originates from a directory identity provider. |
{
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"userName": "[email protected]",
"email": "[email protected]",
"name": "Dolores",
"surname": "Umbridge",
"displayName": "Dolores Umbridge",
"isActive": true,
"category": 0,
"groupIDs": [
"string"
],
"creationTime": "2026-01-15T10:20:30Z",
"lastLoginTime": "2026-08-20T08:00:00Z"
}
{
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"userName": "[email protected]",
"email": "[email protected]",
"name": "Dolores",
"surname": "Umbridge",
"displayName": "Dolores Umbridge",
"isActive": true,
"category": 0,
"groupIDs": [
"string"
],
"creationTime": "2026-01-15T10:20:30Z",
"lastLoginTime": "2026-08-20T08:00:00Z"
}
404 Not Found
No user with the specified ID exists in the organization.
Example request
Let's say you gathered all the information needed to build the API call.
- Your
{baseURL}is: https://{yourDomain}/{organizationName}/identity_ - Your
{access_token}is:1234(for length considerations). - The ID of the user you want to retrieve is
3fa85f64-5717-4562-b3fc-2c963f66afa6
The call should resemble the following example (cURL):
curl --location --request GET 'https://{yourDomain}/{organizationName}/identity_/api/User/3fa85f64-5717-4562-b3fc-2c963f66afa6' \
--header 'Authorization: Bearer 1234'
curl --location --request GET 'https://{yourDomain}/{organizationName}/identity_/api/User/3fa85f64-5717-4562-b3fc-2c963f66afa6' \
--header 'Authorization: Bearer 1234'