# `tartan role`

_For tartan 0.9.36._

## `tartan role bind`

grant a user a direct role (admin, tech or viewer; an Owner comes by invite); making an Admin tells the org's Owners

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

**Role:** admin · **Writes:** yes · **Steps up:** always · **Dry run:** `--dry-run`

**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 | user id |
| `--role` | string | yes | admin \| tech \| viewer |

## `tartan role list`

role bindings (direct and from IdP rules; a partner's people are left out: people list counts them per rule)

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

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

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

## `tartan role unbind`

remove a direct role (an Admin removes Admins, never an Owner); removing an Admin tells the org's Owners

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

**Role:** admin · **Writes:** yes · **Steps up:** always · **Dry run:** `--dry-run`

**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 | user id |
| `--role` | string | yes | the direct role to remove: admin \| tech \| viewer |
