# Manage team access

Invite members, give them roles, and create access tokens for the CLI and CI.

## Owners and members

Every user in an organization is an owner or a member.

- **Owners** have full access. Only owners invite and remove members, make owners and create access tokens.
- **Members** can do only what their roles allow. A member without a role can't access anything.

The last owner can't be removed or demoted.

## Missing dashboard actions

The dashboard shows actions your role allows. If an expected action is missing, ask an owner to check your role and app scope. Plan changes and BYOC environment registration or retirement require an owner.

## Invite a member

1. Open **Users → Members**.
2. Enter their email and choose a role. If the list is empty, [create a role](<#create-a-role>) first.
3. Click **Send invite** and approve with your passkey.

To change a member's roles later, open **Roles** next to their name.

## Create a role

Open **Users → Roles → New role** and set what the role can do. Anything not allowed is denied.

| Area | Grants |
| --- | --- |
| **Apps** | **Read**: apps, deployments, history and attestations. **Write**: also create, deploy, rename and delete apps, and download their enclave images. |
| **Go live** | **On**: switch which deployment is live. |
| **BYOC** | **Read**: the AWS accounts used for BYOC deploys. **Write**: also add and remove them, and pick the default. |
| **Secrets** | **Read**: quorum bundles and who can hold them. **Write**: also create, edit and delete them. |
| **Billing** | **Read**: usage, invoices, credits and the plan. **Write**: also buy and redeem credits and manage payment methods. Plan changes stay with owners. |
| **Team** | **Read**: the organization, its members and its roles. |

**Presets** fill in common roles: **Viewer**, **Developer** (deploys but can't go live), **Release manager** (goes live) and **Billing**.

**Which apps** limits Apps and Go live to the apps you pick. Creating apps and deploying need **All apps**.

**Individual rules** (Advanced) lists the exact rules and adds allow or deny rules on a method and route. The lowest priority number wins and deny wins a tie. Areas use priority 100; your rules default to 50, so they take precedence.

## Passkeys

Creating, editing or deleting roles, giving or taking roles, inviting, making owners and creating tokens need a passkey. Revoking a token, removing a member and cancelling an invite don't, so you can cut access quickly.

## Deactivation and organization deletion

Deactivation blocks login and SSH access for the affected user or organization. Organization tokens continue to work when only a user is deactivated. Revoke any organization tokens that the user could access.

Only an owner can delete an organization. Before deletion, destroy its apps (including failed apps with remaining resources), retire its BYOC environments, cancel subscriptions, and resolve outstanding checkouts. Deletion revokes invitations and removes memberships. Members keep their individual accounts.

## Access tokens

Access tokens let the CLI and CI act for your organization, limited to the roles you pick.

1. Open **Users → Access tokens → Create token**.
2. Name it, keep an expiry (default 90 days) and pick its roles. Roles can't be changed later.
3. Copy the token. It is shown once.

```sh
export CAUTION_ACCESS_TOKEN=caut_oat_...
caution apps list
caution apps switch <app-id> -d <deployment-id> --force
```

Tokens never ask for a passkey, so a token with **Go live** switches without one. Tokens never get owner access. They can't `git push`, use billing, or manage members, roles or tokens.

To rotate a token, create a new one and revoke the old one. Revoking is immediate.
