UiPath Documentation
test-cloud
latest
false
Test Cloud API ガイド
重要 :
このコンテンツの一部は機械翻訳によって処理されており、完全な翻訳を保証するものではありません。 新しいコンテンツの翻訳は、およそ 1 ~ 2 週間で公開されます。

Get User License Allocations

GET endpoint for retrieving the users who hold a user license in an organization, how each license was allocated, and when it was last in use.

Retrieves a paged list of the users who hold a user license in an organization. For each user, the response lists the licenses the user holds, whether each license was allocated directly to the user or through a group, and when each license was last in use. Requires an external application with the LicenseRead policy, or a user with view permissions on licensing data, such as the License Viewer role.

A user who holds licenses both directly and through a group is listed once, with one entry per license. Licenses that were allocated but never acquired are not listed.

API エンドポイント​

GET {accessURL}/{organizationName}/lease_/api/account/{organizationId}/user-license/allocations

すべてのエンドポイント パスの {accessURL} は、ご使用のクラウド プラットフォームのベース URL に置き換えてください。

Cloud Platformアクセス URL
Test Cloudhttps://cloud.uipath.com/
Test Cloud (公共部門向け)https://govcloud.uipath.us/
Test Cloud (専有型)https://{customURL}.dedicated.uipath.com/

要求ヘッダー​

--header 'Authorization: Bearer <your-access-token>'
--header 'Authorization: Bearer <your-access-token>'

パス パラメーター​

パス パラメーターデータ型説明
organizationId (必須)GUIDThe ID of your organization.

クエリ パラメーター​

All query parameters are optional.

パラメーター入力説明
skipIntegerNumber of users to skip, for paging.
topIntegerNumber of users to return. Accepted values: 1 to 50. Default: 10.
sortBy文字列Field to sort by. Accepted values: LastInUse (default) or UserId.
sortOrder文字列Sort direction. Accepted values: asc (default) or desc. With the default sorting, the least recently used licenses come first.
userBundleLicenseCodesString arrayReturns only the users who hold at least one of these license codes, directly or through a group. For the list of codes, see Licensing product codes.

応答​

200 OK​

Returns the requested page of users.

{
  "results": [
    {
      "id": "00000000-0000-0000-0000-000000000000",
      "email": "string",
      "name": "string",
      "displayName": "string",
      "orphan": false,
      "allocations": [
        {
          "userBundleCode": "string",
          "allocationType": "Group",
          "groupId": "string",
          "groupName": "string",
          "lastInUse": "2026-01-01T00:00:00Z"
        }
      ]
    }
  ],
  "totalCount": 0
}
{
  "results": [
    {
      "id": "00000000-0000-0000-0000-000000000000",
      "email": "string",
      "name": "string",
      "displayName": "string",
      "orphan": false,
      "allocations": [
        {
          "userBundleCode": "string",
          "allocationType": "Group",
          "groupId": "string",
          "groupName": "string",
          "lastInUse": "2026-01-01T00:00:00Z"
        }
      ]
    }
  ],
  "totalCount": 0
}
フィールド説明
orphantrue if the user no longer exists in the organization's directory.
allocationTypeDirect if the license was allocated to the user, Group if the user acquired it through a group.
groupId, groupNameThe group the license came from. Returned only for Group allocations.
lastInUseWhen the user last used the license.

400 Bad Request​

The top value is not between 1 and 50, or the sortBy value is not LastInUse or UserId.

要求の例​

curl --location --request GET 'https://cloud.uipath.com/my-org/lease_/api/account/1234/user-license/allocations?top=50&sortBy=LastInUse&sortOrder=asc' --header 'Authorization: Bearer <your-access-token>'
curl --location --request GET 'https://cloud.uipath.com/my-org/lease_/api/account/1234/user-license/allocations?top=50&sortBy=LastInUse&sortOrder=asc' --header 'Authorization: Bearer <your-access-token>'

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

接続

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

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

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

最新情報を取得