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

# Users & Groups

> Manage organization members, user groups, and tool connections from the CLI

## Users

Listing users needs **Analytics · View** or **Configuration · View**; listing groups needs **Policies · View**. Creating, updating or deleting a group needs **Policies · Edit** - a role at View is refused. Roles are assigned in the dashboard, not from the CLI. `users effective-policies <id>` also works for a Manager (for themselves and anyone who reports to them) and for a Member (for themselves); `user-groups effective-policies` needs Policies · View.

```bash theme={null}
unbound users list                        # ID, email, first and last name for every member
unbound users effective-policies <id>     # View effective policies for a specific user
```

***

## User groups

Groups let you scope policies to specific teams or roles. Policy changes apply automatically to all group members.

```bash theme={null}
unbound user-groups list                              # List all groups (alias: unbound groups list)
unbound user-groups get <id>                          # View a group and its members
unbound user-groups create --name "Security Team" --no-all-org-users --user-ids 42,57
unbound user-groups update <id> --name "New Name"
unbound user-groups delete <id>                       # Prompts for confirmation (skip with --yes)
unbound user-groups effective-policies <id>           # Effective policies applied to a group
```

### Membership flags on create / update

`create` and `update` accept the same membership flags:

| Flag | Purpose |
| - | - |
| `--all-org-users` | Include every current member of the organization in the group |
| `--no-all-org-users` | Explicit opt-out; useful on `update` to clear a previously org-wide group |
| `--user-ids` | Comma-separated **numeric** user IDs, as shown in the `ID` column of `unbound users list`. Replaces the current membership on `update`. A non-numeric value is silently dropped rather than rejected |

> [!WARNING]
>
> **`create` includes the whole organization by default.** On `create`, `--user-ids` only takes effect alongside `--no-all-org-users` — pass it on its own and you get an org-wide group, with the IDs ignored. Scope a policy to that group and the policy applies to everyone. `update` has no such default.

A group synced from your directory cannot be renamed, re-membered or deleted here; change it in the directory. `create` also fails if the name is already taken.

```bash theme={null}
# A group of three people:
unbound user-groups create --name "Reviewers" --no-all-org-users --user-ids 42,57,103

# Seed a group from the whole org:
unbound user-groups create --name "Everyone" --all-org-users

# Replace membership on update:
unbound user-groups update <id> --user-ids 42,57,103
```

***

## Tool connections

View which AI tools are connected to Unbound, and manage approved tool types. A role with Organization scope sees everyone; other roles see only themselves. `--json` also lists every tool per person (`connected_tools`). `tools connect` is open to every role and returns the caller's own key; `tools approved` needs **Configuration · View**.

```bash theme={null}
unbound tools list                        # One row per person: primary tool, status, monthly cost, connection date
unbound tools connect <tool-type>         # Get the API key and connection details for a tool type
unbound tools approved                    # List approved tool types and whether restrictions are enforced
```

You get one API key per person, not one per tool — connecting a second tool type returns the same key. If your organization restricts tools to an approved list, `connect` is refused for anything not on it; `unbound tools approved` shows the list and whether the restriction is switched on.

> [!WARNING]
>
> `unbound tools connect <TOOL_TYPE>` prints your API key in plaintext. Treat that output as a secret and redact it before pasting it into a ticket or a chat.
>
> **Re-running `connect` returns the same key — it does not rotate.** If a key is exposed, rotate it from the dashboard's **Configure → Rotate API Keys** dialog, which invalidates the member's existing key immediately. There is no CLI path for it.

Tool types `connect` accepts: `CLAUDE_CODE`, `CURSOR`, `COPILOT`, `AUGMENT_CODE`, `ROO_CODE`, `CLINE`, `GEMINI_CLI`, `CODEX`, `KILO_CODE`, `CUSTOM_ACCESS`.

***

`users list`, `users effective-policies`, `user-groups list`, `user-groups get`, `user-groups effective-policies`, `tools list`, `tools connect` and `tools approved` support `--json`. `user-groups create`, `update` and `delete` don't.


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