> ## Documentation Index
> Fetch the complete documentation index at: https://docs.joystream.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# jstm admin

> User administration for self-hosted operators.

<Warning>
  These commands require a `service_role_key` in your `config.toml`. They act directly on the identity provider and bypass the normal invitation flow. They are intended for operators running their own JoyStream instance, not for day-to-day team management.
</Warning>

For adding people to an organization or a workspace, use [`jstm org invite`](/cli/org) and [`jstm workspace member-add`](/cli/workspace) instead.

## `admin create-user`

```bash theme={null}
jstm admin create-user --email dana@acme.com --password
```

| Option             | Description                     |
| ------------------ | ------------------------------- |
| `--email`, `-e`    | Required. User email            |
| `--password`, `-p` | Required. Prompted without echo |
| `--json`           | Emit as JSON                    |

## `admin delete-user`

```bash theme={null}
jstm admin delete-user --email dana@acme.com --yes
```

| Option          | Description                           |
| --------------- | ------------------------------------- |
| `--email`, `-e` | Required. Email of the user to delete |
| `--yes`, `-y`   | Skip the confirmation                 |
| `--json`        | Emit as JSON                          |

## Configuring the key

Add it to the `[supabase]` section of your `config.toml`:

```toml theme={null}
[supabase]
service_role_key = "..."
```

Without it, both commands fail. See [Configuration](/cli/configuration).
