---
title: "Roles and permissions"
sidebar:
  icon: users
  label: "Roles and permissions"
description: "The six team roles, what each can do, and how protected environments change secret access."
---


<PageMeta />

Every team member has exactly one role. The role decides what they can do with secrets in each environment, whether they can manage the team, and whether they can handle billing. Pick the least-privileged role that covers someone's work: most people need **developer**, and many need only **operator** or **viewer**.

## The six roles

Who each role is for, and what it can do with secrets in non-protected and [protected](#protected-environments) environments:

<RoleAccess
  rowHeader="Role"
  detail={{
    Owner: 'The one person accountable for the team',
    Admin: 'People who manage members, tokens and production',
    Developer: 'Engineers who change configuration',
    Operator: 'On-call and support staff who need to see production but not change it',
    Viewer: 'People who need to see development configuration',
    Billing: 'Finance',
  }}
/>

"Write" covers creating, updating, deleting and rotating secrets, and rolling back an environment.

A viewer is also kept out of any environment whose slug is `production`, even if someone removes its protection. Viewers still see that protected environments exist; they cannot read the secrets in them.

## Permission matrix

### Team, projects and environments

<CapabilityMatrix
  columns={['Owner', 'Admin', 'Developer', 'Operator', 'Viewer', 'Billing']}
  rows={[
    {
      label: 'Create a project',
      levels: ['full', 'full', 'full', 'none', 'none', 'none'],
    },
    {
      label: 'Rename or delete a project',
      levels: ['full', 'full', 'none', 'none', 'none', 'none'],
    },
    {
      label: 'Create, edit or delete environments, and set protection',
      levels: ['full', 'full', 'none', 'none', 'none', 'none'],
    },
    {
      label: 'Manage environment keys for encrypted .env files',
      levels: ['full', 'full', 'none', 'none', 'none', 'none'],
    },
    {
      label: 'Manage members, invites and team settings',
      levels: ['full', 'full', 'none', 'none', 'none', 'none'],
    },
    {
      label: 'Create, rotate and revoke API tokens',
      levels: ['full', 'full', 'none', 'none', 'none', 'none'],
    },
    {
      label: 'Configure SSO (Team plan)',
      levels: ['full', 'full', 'none', 'none', 'none', 'none'],
    },
    {
      label: 'Read the audit log',
      levels: ['full', 'full', 'full', 'full', 'full', 'full'],
    },
    {
      label: 'Audit log exports and access reviews (Team plan)',
      levels: ['full', 'full', 'none', 'none', 'none', 'none'],
    },
    {
      label: 'Manage billing (checkout, portal, billing email)',
      levels: ['full', 'full', 'none', 'none', 'none', 'full'],
    },
    {
      label: 'Transfer team ownership',
      levels: ['full', 'none', 'none', 'none', 'none', 'none'],
    },
    { label: 'Delete the team', levels: ['full', 'none', 'none', 'none', 'none', 'none'] },
  ]}
  legend={{ full: 'Allowed', none: 'Not allowed' }}
/>

### AI agents

Any member can connect an AI agent over [MCP](/guides/mcp) and approve what it may do, up to their own role:

<CapabilityMatrix
  rowHeader="Agent scope"
  columns={['Owner', 'Admin', 'Developer', 'Operator', 'Viewer', 'Billing']}
  rows={[
    {
      label: 'Read secret names and values, inject secrets into a command',
      levels: ['full', 'full', 'full', 'full', 'none', 'none'],
    },
    { label: 'Change secrets', levels: ['full', 'full', 'full', 'none', 'none', 'none'] },
    { label: 'Read the audit log', levels: ['full', 'full', 'none', 'none', 'none', 'none'] },
    { label: 'List projects', levels: ['full', 'full', 'full', 'full', 'full', 'none'] },
  ]}
  legend={{ full: 'Can grant', none: 'Cannot grant' }}
/>

Viewers and billing members cannot give an agent any secret access. The agent's access is re-checked against the member's current role on every call, so a downgrade or removal applies to their agents at once. Each member manages only their own agent connections.

## Protected environments

Any environment can be marked **protected** in its settings, by an owner or admin. In a new project, **production is protected by default**.

Protection is about who may change an environment and who may see it:

- **Owner, admin**: read and write, as before
- **Developer**: keeps read access, loses write access
- **Operator**: unchanged, read-only
- **Viewer, billing**: no access to its secrets

Use protection for any environment where an accidental change reaches users.

:::note[API tokens and protection]
An [API token](/reference/api-tokens) has no role, so its scope decides instead: a write token changes a protected environment only when it was created for that environment. A token for all environments still reads protected environments but cannot change them.
:::

## Assigning roles

- Owners and admins choose a role when inviting someone (the dashboard suggests **developer**) and can change it later from the team page.
- **Owner is not assignable.** A team has exactly one owner. The assignable roles are admin, developer, operator, viewer and billing.
- **Changing someone's role revokes their CLI logins for the team, their agent connections and the API tokens they created.** They sign in again under the new role; rotate any pipeline token they had made first. An agent connection is revoked whole, including the other teams it covered, so they reconnect their agent to keep access to those.

### Ownership transfer

The owner can hand ownership to another member from the team settings. The previous owner becomes an admin, and the audit log records `team.ownership_transferred`.

## Deactivated members

Deactivating a member schedules it, with a **7-day grace period**:

| | During the 7-day grace period | After it |
| --- | --- | --- |
| **Access** | The member keeps working | They keep their role but lose all access (secrets, team management and billing) until an owner or admin reactivates them |
| **API tokens they created** | Keep working | Stop working |
| **Seat** | Still held: it counts toward your plan's member limit and is billed | Free: it no longer counts toward the limit or the bill, and you can invite, add or admit through SSO someone new into it |
| **Reactivating them** | Possible even when every seat is held, because they still hold their own | Needs a free seat, counted against the seats your plan pays for, paid Developer seats included |

Both steps are recorded in the audit log. The owner cannot be deactivated. To cut someone off immediately, remove them from the team instead.

## API tokens are not role-scoped

An [API token](/reference/api-tokens) carries no member role. It can:

<div class="vs-checks" data-tone="yes">

- Read the secrets of its team, within the projects and environments it is scoped to
- With write access, change them. It changes a protected environment only when it is scoped to that environment
- List the team's projects and environments

</div>

It cannot:

<div class="vs-checks" data-tone="no">

- Create projects or environments
- Manage members, keys or tokens
- Read the audit log

</div>

Only owners and admins create tokens, and a token stops working when its creator leaves the team or changes role.
