UiPath Documentation
private-test-cloud
2.2610
true
Private Test Cloud-API-Leitfaden

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-Endpunkt​

GET https://{yourDomain}/{organizationName}/identity_/api/User/{userId}

Scopes​

Folgende Scopes sind erforderlich:

  • PM.User
  • PM.User.Read

Anforderungsheader​

--header 'Authorization: Bearer {access_token}'
--header 'Authorization: Bearer {access_token}'
Hinweis:

To obtain the {access_token}, make sure to authenticate through one of the methods described in Authentication methods.

Pfadparameter​

ParameterDatentypBeschreibung
userIdStringErforderlich.

The ID of the user you want to retrieve.

Antworten​

200 Erfolg​

Returns the user details. The category field indicates how the user relates to your directory integration:

WertKategorieBeschreibung
0Lokal (Local)The user exists only in Private Test Cloud.
1Linked localA local user that is linked to a directory account, typically because the user signed in through the identity provider.
2Verzeichnis (Directory)The user originates from a directory identity provider.
{
  "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "userName": "dolores.umbridge@example.com",
  "email": "dolores.umbridge@example.com",
  "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": "dolores.umbridge@example.com",
  "email": "dolores.umbridge@example.com",
  "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 Nicht gefunden​

No user with the specified ID exists in the organization.

Beispielanforderung​

Angenommen, Sie haben alle Informationen gesammelt, die zum Erstellen des API-Aufrufs erforderlich sind.

  • Your {baseURL} is: https://{yourDomain}/{organizationName}/identity_
  • Ihre {access_token} ist: 1234 (aus Gründen der Länge).
  • The ID of the user you want to retrieve is 3fa85f64-5717-4562-b3fc-2c963f66afa6

Der Aufruf sollte dem folgenden Beispiel ähneln (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'
  • API-Endpunkt​
  • Scopes​
  • Anforderungsheader​
  • Pfadparameter​
  • Antworten​
  • 200 Erfolg​
  • 404 Nicht gefunden​
  • Beispielanforderung​

War diese Seite hilfreich?

Verbinden

Benötigen Sie Hilfe? Support(opens in new window)

Möchten Sie lernen? UiPath Academy(opens in new window)

Haben Sie Fragen? UiPath-Forum(opens in new window)

Auf dem neuesten Stand bleiben