UiPath Documentation
test-cloud
latest
false
Test Cloud API guide

Get User License Allocations for a User

GET endpoint for retrieving the user licenses a single user holds, how each license was allocated, and when it was last in use.

Retrieves the user licenses that a single user holds in an organization, 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.

API endpoint​

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

Replace {accessURL} in all endpoint paths with the base URL for your cloud platform:

Cloud platformAccess URL
Test Cloudhttps://cloud.uipath.com/
Test Cloud Public Sectorhttps://govcloud.uipath.us/
Test Cloud Dedicatedhttps://{customURL}.dedicated.uipath.com/

Request headers​

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

Path parameters​

Path paramData typeDescription
organizationId (required)GuidThe ID of your organization.
userId (required)GuidThe ID of the user.

Responses​

200 OK​

The user holds at least one license, allocated directly or through a group.

{
  "id": "00000000-0000-0000-0000-000000000000",
  "email": "string",
  "name": "string",
  "displayName": "string",
  "orphan": false,
  "allocations": [
    {
      "userBundleCode": "string",
      "allocationType": "Direct",
      "lastInUse": "2026-01-01T00:00:00Z"
    }
  ]
}
{
  "id": "00000000-0000-0000-0000-000000000000",
  "email": "string",
  "name": "string",
  "displayName": "string",
  "orphan": false,
  "allocations": [
    {
      "userBundleCode": "string",
      "allocationType": "Direct",
      "lastInUse": "2026-01-01T00:00:00Z"
    }
  ]
}

The fields have the same meaning as in Get User License Allocations. The groupId and groupName fields appear only for licenses acquired through a group.

404 Not Found​

The user holds no license in the organization.

Example request​

curl --location --request GET 'https://cloud.uipath.com/my-org/lease_/api/account/1234/user-license/user/5678/allocations' --header 'Authorization: Bearer <your-access-token>'
curl --location --request GET 'https://cloud.uipath.com/my-org/lease_/api/account/1234/user-license/user/5678/allocations' --header 'Authorization: Bearer <your-access-token>'
  • API endpoint​
  • Request headers​
  • Path parameters​
  • Responses​
  • 200 OK​
  • 404 Not Found​
  • Example request​
  • Related endpoints​

Was this page helpful?

Connect

Need help? Support(opens in new window)

Want to learn? UiPath Academy(opens in new window)

Have questions? UiPath Forum(opens in new window)

Stay updated