UiPath Documentation
private-test-cloud
2.2610
true
Test Cloud (プライベート) API ガイド

ユーザーを取得

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 エンドポイント​

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

スコープ​

次のスコープが必要です。

  • PM.User
  • PM.User.Read

要求ヘッダー​

--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.

パス パラメーター​

パラメーターデータ型説明
userId文字列必須。
The ID of the user you want to retrieve.

応答​

200 サクセス​

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

値 (Value)カテゴリ (Category)説明
0ローカル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.
2ディレクトリ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 見つかりません​

No user with the specified ID exists in the organization.

要求の例​

API 呼び出しの構築に必要な情報をすべて収集したとします。

  • Your {baseURL} is: https://{yourDomain}/{organizationName}/identity_
  • {access_token} は 1234 です (長さを考慮)。
  • The ID of the user you want to retrieve is 3fa85f64-5717-4562-b3fc-2c963f66afa6

呼び出しは次の例のようになります (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 エンドポイント​
  • スコープ​
  • 要求ヘッダー​
  • パス パラメーター​
  • 応答​
  • 200 サクセス​
  • 404 見つかりません​
  • 要求の例​

このページは役に立ちましたか?

接続

ヘルプ リソース サポート(opens in new window)

学習する UiPath アカデミー(opens in new window)

質問する UiPath フォーラム(opens in new window)

最新情報を取得