
# tdx users

Manage people and their role assignments.

List, show, change a role in one place, disable and enable people. Removal is explicitly unavailable; there is no DELETE user route. See [People and role commands](/cli/reference#people-and-role-commands).

Every command also takes the [global flags](/cli/reference#global-flags) and reads the [environment variables](/cli/reference#environment-variables) that the command reference lists once.

## Commands

| Command | Description | Type |
|---|---|---|
| [tdx users list](/cli/reference/users#tdx-users-list) | List people. | Read |
| [tdx users show](/cli/reference/users#tdx-users-show) | Read a person. | Read |
| [tdx users enable](/cli/reference/users#tdx-users-enable) | Enable a person. | Write |
| [tdx users disable](/cli/reference/users#tdx-users-disable) | Disable a person. | Write |
| [tdx users role](/cli/reference/users#tdx-users-role) | Replace roles in one place with a role. | Write |
| [tdx users remove](/cli/reference/users#tdx-users-remove) | Unavailable: offboarding requires an interactive session. | Not available yet |

## tdx users list

List people.

**Reads**

Requires users.read. Read one gateway page; hasMore and nextCursor expose truncation without automatic pagination. See [People and role commands](/cli/reference#people-and-role-commands).

```bash
# GET /control/v1/users
tdx users list [flags]
```

**Output fields** (inside `data`)

| Field | Type | Description |
|---|---|---|
| `users` | masked-route-data | Gateway data after mandatory CLI masking; █ marks masked values. |
| `hasMore` | masked-route-data | Gateway data after mandatory CLI masking; █ marks masked values. |
| `nextCursor` | masked-route-data | Gateway data after mandatory CLI masking; █ marks masked values. |
| `notice` | string | Present instead of data when masking withholds the entire result. |

## tdx users show

Read a person.

**Reads**

Requires users.read or self visibility (your own user). See [People and role commands](/cli/reference#people-and-role-commands).

```bash
# GET /control/v1/users/:userId
tdx users show --id <string> [flags]
```

**Required flags**

| Flag | Type | Default | Description |
|---|---|---|---|
| `--id` | string |  | Public resource id; never a credential. |

**Output fields** (inside `data`)

| Field | Type | Description |
|---|---|---|
| `user` | masked-route-data | Gateway data after mandatory CLI masking; █ marks masked values. |
| `notice` | string | Present instead of data when masking withholds the entire result. |

## tdx users enable

Enable a person.

**Writes**

Requires install-wide users.manage. See [People and role commands](/cli/reference#people-and-role-commands).

```bash
# POST /control/v1/users/:userId/enable
tdx users enable --id <string> [flags]
```

**Required flags**

| Flag | Type | Default | Description |
|---|---|---|---|
| `--id` | string |  | Public resource id; never a credential. |

**Output fields** (inside `data`)

| Field | Type | Description |
|---|---|---|
| `user` | masked-route-data | Gateway data after mandatory CLI masking; █ marks masked values. |
| `preview` | write-preview\|null | Requested method, path and body only, with no diff and unchecked by the gateway; null after execution. |
| `notice` | string | Present instead of data when masking withholds the entire result. |

## tdx users disable

Disable a person.

**Writes**

Requires install-wide users.manage. See [People and role commands](/cli/reference#people-and-role-commands).

```bash
# POST /control/v1/users/:userId/disable
tdx users disable --id <string> [flags]
```

**Required flags**

| Flag | Type | Default | Description |
|---|---|---|---|
| `--id` | string |  | Public resource id; never a credential. |

**Output fields** (inside `data`)

| Field | Type | Description |
|---|---|---|
| `user` | masked-route-data | Gateway data after mandatory CLI masking; █ marks masked values. |
| `preview` | write-preview\|null | Requested method, path and body only, with no diff and unchecked by the gateway; null after execution. |
| `notice` | string | Present instead of data when masking withholds the entire result. |

## tdx users role

Replace roles in one place with a role.

**Writes**

Requires users.manage in the selected place. PUT sends one assignment and explicitly names its place (install scope by default, or --workspace-id). This replaces the caller-managed roles IN THAT PLACE, not roles elsewhere; IdP-managed roles and server subset/last-owner rules remain in force. No concurrency precondition or current-state diff is inferred. See [People and role commands](/cli/reference#people-and-role-commands).

```bash
# PUT /control/v1/users/:userId/role-assignments
tdx users role --id <string> --role-id <string> [flags]
```

**Required flags**

| Flag | Type | Default | Description |
|---|---|---|---|
| `--id` | string |  | Public resource id; never a credential. |
| `--role-id` | string |  | Public role id from the gateway. |

**Optional flags**

| Flag | Type | Default | Description |
|---|---|---|---|
| `--workspace-id` | string |  | Limit replacement to this workspace; omitted means install scope. |

**Output fields** (inside `data`)

| Field | Type | Description |
|---|---|---|
| `user` | masked-route-data | Gateway data after mandatory CLI masking; █ marks masked values. |
| `preview` | write-preview\|null | Requested method, path and body only, with no diff and unchecked by the gateway; null after execution. |
| `notice` | string | Present instead of data when masking withholds the entire result. |

## tdx users remove

Unavailable: offboarding requires an interactive session.

**Not available yet.** Running it exits 7 with `NOT_IMPLEMENTED`.

There is NO DELETE user route. Removal is terminal POST deprovision from a reviewed offboarding plan, session-only with step-up and possible one-shot credential transfers. This CLI cannot execute it. Use the dashboard; no request, authentication or profile read is attempted. Dry-run shows only the route with body null (the required reviewed decisions are unavailable), never a fake deletion. See [People and role commands](/cli/reference#people-and-role-commands).

```bash
# GET /control/v1/users/:userId/offboarding
# POST /control/v1/users/:userId/deprovision
tdx users remove --id <string> [flags]
```

**Required flags**

| Flag | Type | Default | Description |
|---|---|---|---|
| `--id` | string |  | Public resource id; never a credential. |

**Output fields** (inside `data`)

| Field | Type | Description |
|---|---|---|
| `preview` | write-preview\|null | Requested method, path and body only, with no diff and unchecked by the gateway; null after execution. |
| `notice` | string | Present instead of data when masking withholds the entire result. |
