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

# Organization members

> List, invite, remove, and change roles of organization members from the TPC CLI.

# Organization members

Manage the members of an organization with `tpc org members`. Every command takes `--scope <org-slug>` and identifies members by email.

```bash theme={null}
tpc org members list --scope prompting-co
tpc org members list --search dev --page 2 --scope prompting-co
tpc org members add dev@acme.com --role admin --scope prompting-co
tpc org members remove dev@acme.com --scope prompting-co
tpc org members set-role dev@acme.com member --scope prompting-co
```

| Command | What it does | Who can run it |
| - | - | - |
| `tpc org members list [--search <text>] [--page <n>]` | Prints a table of name, email, role, and join date, 10 members per page. `--format json` prints the members array. | Any member |
| `tpc org members add <email> [--role member\|admin\|owner]` | Sends an invitation email, the same as the dashboard invite form. Role defaults to `member`. | Administrators and owners. Only owners can invite with `--role owner`. |
| `tpc org members remove <email>` | Removes the member whose email matches exactly (case-insensitive). | Administrators and owners |
| `tpc org members set-role <email> <role>` | Changes a member's role to `member`, `admin`, or `owner`. | Administrators and owners |

`add` does not add a member directly. The invitee becomes a member only after accepting the invitation from their email. Personal and educational email domains are rejected.

`remove` and `set-role` fail with an error when no current member has that email. Server-side rules apply and their messages are shown as returned, for example that only an owner can remove or demote another owner, and that the last owner cannot be removed or demoted.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.