# `tartan user`

_For tartan 0.9.36._

## `tartan user add-device`

a one-time invite that adds a passkey and device to an existing person, in their home org; the device then waits for an approval

```
tartan user add-device --org <string> --user <string>
```

**Role:** viewer · **Writes:** yes · **Steps up:** always

**Person acts:** passkey prompt: the person approves this exact write with their passkey, after the CLI shows it in words; the person opens the one-time link on their new device and makes a passkey there; the device then waits for an approval

| Flag | Type | Required | What |
|---|---|---|---|
| `--org` | string | yes | org handle or id |
| `--user` | string | yes | the person's id (yourself, or anyone as an Admin) |

## `tartan user invite`

a one-time invitation to a role (shown once); the person's home org is this org; an invited Owner is bound by an existing Owner's passkey

```
tartan user invite --org <string> --role <string>
```

**Role:** admin · **Writes:** yes · **Steps up:** always

**Person acts:** passkey prompt: the person approves this exact write with their passkey, after the CLI shows it in words; the invited person opens the one-time link and makes their own passkey

| Flag | Type | Required | What |
|---|---|---|---|
| `--org` | string | yes | org handle or id |
| `--role` | string | yes | owner \| admin \| tech \| viewer |
| `--name` | string | no | the person's display name, locked once set (else their SSO name) |
| `--handle` | string | no | their unique, locked identifier (else their SSO email) |
| `--sso_issuer` | string | no | the SSO provider the join link names, when the org trusts several (default: the org's only one; an Owner's link names none) |
| `--approve_device` | bool | no | this invite approves the computer the person joins from (both its keys, one join; needs invite_v2 on). Default: on with SSO (with --upn) and for a Tech or Viewer; off for an Admin without SSO; never for an Owner |
| `--upn` | string | no | the person's work sign-in name (name@domain): their SSO sign-in must match it to join (needed to approve the computer in an org with SSO) |

## `tartan user invite list`

the org's open invites, join and add-device: id (12 characters of the code's hash), name, handle or person, role, minted by, when, expiry; never the code or link (--all: used, expired and revoked ones too)

```
tartan user invite list --org <string>
```

**Role:** admin · **Writes:** no · **Steps up:** never

| Flag | Type | Required | What |
|---|---|---|---|
| `--org` | string | yes | org handle or id |
| `--all` | bool | no | also the used, expired and revoked invites |

## `tartan user invite renew`

a new link for an open invite (shown once), in one step: the old code and link stop working; the same role, name and handle (or person), a fresh expiry; who may and who hears, as user invite or user add-device

```
tartan user invite renew --org <string> --id <string>
```

**Role:** admin · **Writes:** yes · **Steps up:** always

**Person acts:** passkey prompt: the person approves this exact write with their passkey, after the CLI shows it in words

| Flag | Type | Required | What |
|---|---|---|---|
| `--org` | string | yes | org handle or id |
| `--id` | string | yes | the invite's id, as user invite list shows it |
| `--sso_issuer` | string | no | a join invite: the SSO provider the new link names, when the org trusts several (as user invite) |

## `tartan user invite revoke`

end an open invite now: its code and link stop working (an Owner invite only an Owner's; an add-device invite whoever could make it)

```
tartan user invite revoke --org <string> --id <string>
```

**Role:** admin · **Writes:** yes · **Steps up:** always · **Dry run:** `--dry-run` · **Batch:** may share one passkey prompt

**Person acts:** passkey prompt: the person approves this exact write with their passkey, after the CLI shows it in words; it can share one passkey prompt with other writes (tartan batch run)

| Flag | Type | Required | What |
|---|---|---|---|
| `--org` | string | yes | org handle or id |
| `--id` | string | yes | the invite's id, as user invite list shows it |

## `tartan user join list`

the org's invite joins below Owner (an Owner is bound by the signer, and the alert skips it too), newest first, as the Admins' join alert told them: who, role, when, invited by, the computer and its key, whether the invite approved it, whether it proved its TPM, and its devices' states now: approved, pending, revoked, dormant, denied, blocked (revoke with tech revoke --user and admin-device revoke)

```
tartan user join list --org <string>
```

**Role:** admin · **Writes:** no · **Steps up:** never

| Flag | Type | Required | What |
|---|---|---|---|
| `--org` | string | yes | org handle or id |
| `--since` | string | no | RFC 3339, inclusive (default: 7 days ago) |
| `--limit` | int | no | default 50, max 500 |

## `tartan user list`

the org's people: name, identifier, home org and roles (a partner's people are left out: see people list's rules)

```
tartan user list --org <string>
```

**Role:** admin · **Writes:** no · **Steps up:** never

| Flag | Type | Required | What |
|---|---|---|---|
| `--org` | string | yes | org handle or id |

## `tartan user passkey list`

a person's sign-in passkeys, in their home org: credential id, the device name it was registered from, when, and the orgs where it is their Owner passkey (yourself, or someone below you)

```
tartan user passkey list --org <string> --user <string>
```

**Role:** viewer · **Writes:** no · **Steps up:** never

| Flag | Type | Required | What |
|---|---|---|---|
| `--org` | string | yes | org handle or id |
| `--user` | string | yes | the person's id (yourself, or anyone below you as an Admin) |

## `tartan user passkey remove`

retire one sign-in passkey of a person, in their home org (yourself, or someone below you; an Owner's only by themselves): never an Owner passkey (that is owner rotate) and never their last; their sessions end (but yours, on your own); devices stay

```
tartan user passkey remove --org <string> --user <string> --credential <string>
```

**Role:** viewer · **Writes:** yes · **Steps up:** always

**Person acts:** passkey prompt: the person approves this exact write with their passkey, after the CLI shows it in words

| Flag | Type | Required | What |
|---|---|---|---|
| `--org` | string | yes | org handle or id |
| `--user` | string | yes | the person's id (yourself, or anyone below you as an Admin) |
| `--credential` | string | yes | the passkey's credential id, base64url, as user passkey list shows it |

## `tartan user remove`

remove a person from every org you administer in this session: roles, admin and tech devices; their credentials too when no role is left

```
tartan user remove --org <string> --user <string>
```

**Role:** admin · **Writes:** yes · **Steps up:** always

**Person acts:** passkey prompt: the person approves this exact write with their passkey, after the CLI shows it in words

| Flag | Type | Required | What |
|---|---|---|---|
| `--org` | string | yes | org handle or id |
| `--user` | string | yes | the person's id |
