# uip platform users

> Syntax and options for `uip platform users`, which manages per-user license-bundle allocation through the License Accountant.

`uip platform users` manages per-user license-bundle allocation through the License Accountant, plus per-user consumable top-ups and license/consumable usage reporting. Three independent command groups live here: `licenses` (direct/group bundle allocation), `top-ups` (grant and track consumable top-ups), and `usage` (per-user license consumption).

## Synopsis

```
uip platform users licenses <verb> [options] [<user>]
uip platform users top-ups <verb> [options]
uip platform users usage <verb> [options] [<user>]
```

## Verbs

| Group | Verb | Purpose |
|---|---|---|
| `licenses` | `set` | Allocate user bundle licenses directly to a directory user. |
| `licenses` | `get` | List the user-bundle leases currently held by a directory user, with the source of each lease. |
| `licenses` | `available` | Get the account-level summary of user-bundle licenses (total, allocated, available). |
| `top-ups` | `create` | Grant a top-up to a user from the organization's active consumable pool. |
| `top-ups` | `get` | Check the status of a top-up grant job. |
| `top-ups` | `request` | Request a top-up for yourself; notifies the organization's admins. |
| `usage` | `list` | List users with license consumption in the organization. |
| `usage` | `get` | Show per-user license consumption (your own, or an admin viewing another user's). |

## User resolution

`licenses set`, `licenses get`, `top-ups create`, and `usage get` take a user positional argument — a name or email prefix. On `usage get` the argument is optional; omit it to target the logged-in user. The CLI searches local and directory users with a "starts with" match and requires **exactly one** match:

- No match → error with `"No directory user found matching '<input>'."`.
- Multiple matches → error listing up to 10 candidates so you can refine the input.

## uip platform users licenses set

Allocate user bundle licenses to a directory user. Bundles in `--input` replace the user's directly-allocated bundles; bundles inherited from group rules are unaffected by this command.

### Arguments

| Name | Required | Purpose |
|---|---|---|
| `<user>` | yes | User identifier (name or email prefix; must match exactly one directory user). |

### Options

| Long | Value | Default | Description |
|---|---|---|---|
| `--input` | path | **required** | Path to a JSON file with the desired user license allocation, for example `[{"code":"RPADEVPRONU"},{"code":"ATTUNU"},{"code":"TSTNU"}]`. |
| `--organization` | account-id | session default | Organization account GUID. Override the org resolved from the current login. |

### Example

```bash
uip platform users licenses set "dan.dinu@uipath.com" \
    --input ./user-bundles.json
```

`user-bundles.json`:

```json
[
  { "code": "RPADEVPRONU" },
  { "code": "ATTUNU" },
  { "code": "TSTNU" }
]
```

### Data shape (--output json)

```json
{
  "Code": "UserLicensesSet",
  "Data": [
    { "code": "RPADEVPRONU", "name": "RPADEVPRONU" },
    { "code": "ATTUNU",      "name": "ATTUNU" },
    { "code": "TSTNU",       "name": "TSTNU" }
  ]
}
```

## uip platform users licenses get

Get the user bundle licenses currently leased by a directory user. Each row is one leased bundle; `source` is `"group"` when the lease is inherited from a group rule, or `"direct"` for non-group allocations.

### Arguments

| Name | Required | Purpose |
|---|---|---|
| `<user>` | yes | User identifier (name or email prefix; must match exactly one directory user). |

### Options

| Long | Value | Default | Description |
|---|---|---|---|
| `--organization` | account-id | session default | Organization account GUID. Override the org resolved from the current login. |

### Example

```bash
uip platform users licenses get "dan.dinu@uipath.com"
```

### Data shape (--output json)

```json
{
  "Code": "UserLicenses",
  "Data": [
    {
      "source": "direct",
      "code": "RPADEVPRONU",
      "name": "RPADEVPRONU",
      "leasedAt": "2026-04-15T10:30:00.000Z"
    },
    {
      "source": "group",
      "code": "ATTUNU",
      "name": "ATTUNU",
      "leasedAt": "2026-04-20T08:15:00.000Z"
    }
  ]
}
```

## uip platform users licenses available

Get the account-level summary of user-bundle licenses: how many seats per bundle exist (`total`), how many are already allocated (`allocated`), and how many remain available (`available`). Use this before allocating to confirm capacity.

### Options

| Long | Value | Default | Description |
|---|---|---|---|
| `--organization` | account-id | session default | Organization account GUID. Override the org resolved from the current login. |

### Example

```bash
uip platform users licenses available
```

### Data shape (--output json)

```json
{
  "Code": "UserLicensesAvailable",
  "Data": [
    { "code": "RPADEVPRONU", "name": "RPADEVPRONU", "total": 100, "allocated": 42, "available": 58 },
    { "code": "ATTUNU",      "name": "ATTUNU",      "total": 50,  "allocated": 50, "available": 0 }
  ]
}
```

## uip platform users top-ups

Grant and track per-user consumable top-ups. The source pool is resolved automatically from the organization's active consumables (`PLTU` preferred, else `AGU`) — you never pass the pool explicitly.

### uip platform users top-ups create

Grant a top-up to a user.

#### Arguments

| Name | Required | Purpose |
|---|---|---|
| `<user>` | yes | User identifier (name or email prefix; must match exactly one directory user). |

#### Options

| Long | Value | Default | Description |
|---|---|---|---|
| `--wait` | flag | off | Wait until the top-up job finishes and report whether it was granted. The CLI polls for up to 2 minutes; if the job is still running, the command fails and reports the current status. A top-up that is not granted fails with the rejection reason in `Instructions`. |
| `--count` | integer (1-100) | `1` | Number of top-up units to grant. |
| `--organization` | account-id | session default | Organization account GUID. |

#### Examples

```bash
uip platform users top-ups create "jane.doe@example.com"
uip platform users top-ups create "jane.doe@example.com" --wait
uip platform users top-ups create "jane.doe@example.com" --count 5
```

#### Data shape (--output json)

Without `--wait`:

```json
{
  "Code": "TopUpStarted",
  "Data": {
    "jobId": "b3f1c2d4-0000-0000-0000-000000000009",
    "status": "started",
    "pool": "AGU",
    "poolPercentConsumed": 42
  }
}
```

With `--wait`:

```json
{
  "Code": "TopUpCompleted",
  "Data": {
    "jobId": "b3f1c2d4-0000-0000-0000-000000000009",
    "status": "completed",
    "pool": "AGU",
    "poolPercentConsumed": 42,
    "granted": true,
    "rejectionReason": null
  }
}
```

### uip platform users top-ups get

Check the status of a top-up grant job.

#### Arguments

| Name | Required | Purpose |
|---|---|---|
| `<job-id>` | yes | Top-up job id returned by `top-ups create`. |

#### Options

| Long | Value | Default | Description |
|---|---|---|---|
| `--organization` | account-id | session default | Organization account GUID. |

#### Example

```bash
uip platform users top-ups get b3f1c2d4-0000-0000-0000-000000000009
```

#### Data shape (--output json)

```json
{
  "Code": "TopUpStatus",
  "Data": {
    "jobId": "b3f1c2d4-0000-0000-0000-000000000009",
    "status": "completed",
    "granted": true,
    "rejectionReason": null
  }
}
```

### uip platform users top-ups request

Request a top-up for yourself (the logged-in user). The request notifies the admins of your organization and does not grant anything directly. When a governance policy of the organization auto-grants top-ups, the top-up is granted immediately and the ID of the grant job is returned.

#### Options

| Long | Value | Default | Description |
|---|---|---|---|
| `--organization` | account-id | session default | Organization account GUID. |

#### Example

```bash
uip platform users top-ups request
```

#### Data shape (--output json)

```json
{
  "Code": "TopUpRequested",
  "Data": {
    "userId": "11111111-1111-1111-1111-111111111111",
    "outcome": "NotificationSent",
    "message": "Your top-up request has been sent to your administrators."
  }
}
```

An auto-granted request returns `Code: "TopUpAutoGranted"` with the grant job to poll with `uip platform users top-ups get <job-id>`:

```json
{
  "Code": "TopUpAutoGranted",
  "Data": {
    "userId": "11111111-1111-1111-1111-111111111111",
    "outcome": "AutoGranted",
    "message": "Your top-up request was auto-granted (10).",
    "jobId": "b3f1c2d4-0000-0000-0000-000000000009"
  }
}
```

A refused request (outcome `NotEligible`, `NoActiveDistribution`, `AlreadyGranted`, or `AllowanceAvailable`) is returned as a failure with `ErrorCode: "invalid_argument"` and `Retry: "RetryWillNotFix"`. `Message` names the outcome and `Instructions` carries the server's message.

## uip platform users usage

View per-user license consumption: monthly pool percent-consumed and top-up wallet percent-consumed.

### uip platform users usage list

List users with license consumption in the organization.

#### Options

| Long | Value | Default | Description |
|---|---|---|---|
| `--limit` | integer | default page size | Maximum number of users to return. |
| `--offset` | integer | `0` | Number of users to skip. |
| `--sort-by` | field | — | Sort by a field of the user usage row (for example `email`, `displayName`). |
| `--sort-order` | `asc`|`desc` | — | Sort direction (case-insensitive). |
| `--license-codes` | space-separated codes | — | Filter to users holding specific license bundles (for example `RPADEVPRONU ATTUNU`). |
| `--organization` | account-id | session default | Organization account GUID. |

#### Examples

```bash
uip platform users usage list
uip platform users usage list --limit 50 --offset 50 --sort-by email --sort-order asc --license-codes RPADEVPRONU ATTUNU
```

#### Data shape (--output json)

```json
{
  "Code": "UserUsageList",
  "Data": [
    {
      "userId": "11111111-1111-1111-1111-111111111111",
      "email": "jane.doe@example.com",
      "displayName": "Jane Doe",
      "licenses": ["RPADEVPRONU"],
      "strongestLicense": "RPADEVPRONU",
      "monthlyPercentConsumed": 64,
      "topUpWalletPercentConsumed": 20,
      "topups": 2,
      "status": "TopUp"
    }
  ]
}
```

`monthlyPercentConsumed` is `null` (not `0`) when the user has no monthly allowance. `status` is one of `MonthlyLimit`, `TopUp`, `PaidUnits`.

### uip platform users usage get

Show per-user license consumption: each consumable's monthly percent consumed, reset date, per-service breakdown, and top-up wallet when present.

#### Arguments

| Name | Required | Purpose |
|---|---|---|
| `[user]` | no | User identifier (name or email prefix). Omit to show the logged-in user's own usage; pass one (admin path) to see another user's. |

#### Options

| Long | Value | Default | Description |
|---|---|---|---|
| `--organization` | account-id | session default | Organization account GUID. |

#### Examples

```bash
uip platform users usage get
uip platform users usage get "jane.doe@example.com"
```

#### Data shape (--output json)

```json
{
  "Code": "UserUsage",
  "Data": {
    "userId": "11111111-1111-1111-1111-111111111111",
    "consumables": [
      {
        "entitlement": "AgenticPool",
        "monthlyPercentConsumed": 64,
        "resetsOn": "2026-08-01T00:00:00.000Z",
        "services": [
          { "service": "AgentDevelopment", "serviceName": "Agent Development", "percentOfPool": 40 }
        ],
        "topUpWallet": {
          "monthlyPercentConsumed": 20,
          "topups": 2,
          "firstGrantedOn": "2026-07-10T09:00:00.000Z",
          "services": [],
          "topupCountPerMonth": [
            { "month": "2026-07-01T00:00:00.000Z", "topupCount": 2 }
          ]
        }
      }
    ]
  }
}
```

## Exit codes

See [Exit codes](./exit-codes.md). No verb-specific overrides.

## Related commands

- [`uip platform groups`](./uip-platform-groups.md) — group rules that lease bundles to many users at once (these appear with `source: "group"` in `users licenses get`).
- [`uip platform tenants`](./uip-platform-tenants.md) — tenant-level runtime and consumable allocation.

## See also

- [Global options](./global-options.md).
