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

# Role-Based Access Control (RBAC)

> Control who can see and change automations, Studio projects, connections, and settings with roles, teams, and scopes.

## Overview

Access in CrewAI AMP is made of **grants**. A grant answers three questions:

* **Who** gets access: a person, a team, or a service account.
* **What** they can do: a role, such as **Automation Operator**.
* **Where** it applies: the whole organization, or one specific resource.

For example, "the Support team is an **Automation Operator** on the *Ticket Triage* automation" is one grant.
A person can hold any number of grants, and they also get every grant held by the teams they belong to.

> [!NOTE]
>
> This page describes RBAC v2. If your organization used the older role system (Owner, Member, and custom
> roles with Manage / Read / No access per feature), see [Moving to RBAC v2](https://docs-platform.crewai.com/platform/en/features/rbac-migration.md)
> to learn how your setup was carried over and how the old terms map to the new ones.

## Key concepts

| Concept | What it means |
| :- | :- |
| **Principal** | Anyone who can hold access: a **user**, a **team**, or a **service account**. |
| **Team** | A group of people and service accounts. Everyone on a team gets the team's access. |
| **Role** | A named set of actions on one kind of resource, for example **Studio Project Editor**. CrewAI maintains the list of roles. |
| **Scope** | Where a grant applies. **Organization** scope covers every resource of that kind, including ones created later. A **resource** scope covers only that one resource. |
| **Grant** | One principal + one role + one scope. Grants can be added and removed at any time. |

## How access is decided

* **Access adds up.** What you can do is everything granted to you directly, plus everything granted to each team you belong to.
* **Organization scope includes the future.** A role granted at Organization scope covers every resource of that kind, including resources created after the grant.
* **There are no "deny" rules.** To take access away, remove the grant that gives it, or remove the person from the team that holds it. If the person still has the same access from another grant or team, they keep it.
* **Creators become admins.** When you create an automation, Studio project, LLM connection, environment variable, tool, skill, agent, Git repository, or application connection, you automatically get the **Admin** role on that one resource.
* **Deleting a resource removes its grants.** When a resource is deleted, every grant on it ends.
* **New members start with no access.** Inviting someone to the organization does not give them any role. Add them to a team, or give them a role, after they join. If your organization uses SSO, [group mappings](https://docs-platform.crewai.com/platform/en/features/jit-sso.md) can add people to teams automatically.

## Roles

You cannot create or edit roles. Instead, you choose which roles to grant, to whom, and where.

### Role levels

Most resources share the same set of roles. Each level includes everything in the level below it.

| Level | What it allows | Can be granted on |
| :- | :- | :- |
| **Viewer** | See the resource. | Organization or one resource |
| **Operator** | Viewer, plus use it: run an automation, use a connection in a crew, and so on. | Organization or one resource |
| **Editor** | Operator, plus change its settings. | Organization or one resource |
| **Admin** | Editor, plus share it with others and delete it. | Organization or one resource |
| **Creator** | Create new resources of this kind. | Organization only |

> [!TIP]
>
> **Creator** is separate from the other levels. It lets someone create new resources, and they become **Admin**
> on what they create. It does not give access to resources that other people created.

### Roles by area

| Area | Roles |
| :- | :- |
| Automations | Automation Operator, Editor, Admin, Creator |
| Crew Studio projects | Studio Project Viewer, Operator, Editor, Admin, Creator |
| Agent Repository | Agent Viewer, Operator, Editor, Admin, Creator |
| Skills Repository | Skill Viewer, Operator, Editor, Admin, Creator |
| Tool Repository | Tool Viewer, Operator, Editor, Admin, Creator |
| LLM Connections | LLM Connection Viewer, Operator, Editor, Admin, Creator |
| Environment Variables | Environment Variable Viewer, Operator, Editor, Admin, Creator |
| Applications (connections) | Application Connection Viewer, Operator, Editor, Admin, Creator |
| Git Repositories | Git Repository Operator, Admin, Creator |
| Agent Control Plane | Agent Control Plane Viewer |
| Agent Control Plane policies | ACP Policy Viewer, Editor, Admin, Creator |
| Traces | Traces Viewer |
| Discovery | Discovery Operator |
| Teams | Team Admin, Team Creator |

> [!NOTE]
>
> Automations have no Viewer role. **Automation Operator** is the lowest automation role: it lets someone see an
> automation, run it, view its traces, and answer human-in-the-loop requests.

### Organization roles

These roles only apply at Organization scope. Each one opens a separate part of **Settings**, so you can give
someone billing access without giving them access to members, for example.

| Role | What it allows |
| :- | :- |
| **Organization Admin** | Organization settings: name, Integrations, Theme, Crew Studio settings, application access policies, and similar organization-wide configuration. |
| **Identity and Access Admin** | Members, teams' roles, invitations, service accounts, secret providers, and workload identity. This role can give roles to other people. |
| **Usage and Billing Admin** | Usage dashboards and the Billing page. |

> [!WARNING]
>
> **Identity and Access Admin** can give any role to anyone, including to themselves. Treat it like an
> administrator role and give it only to people you trust with full access.

## Teams

A team groups people and service accounts so you can give them access once instead of one person at a time.
Manage teams in **Settings → Teams**.

There are two kinds of teams:

* **Custom teams** are teams you create. You choose their name, members, and roles.
* **CrewAI-managed teams** are created for every organization. You can change who belongs to them, but you
  cannot rename them, delete them, or change their roles.

| Managed team | Roles (Organization scope) | Use it for |
| :- | :- | :- |
| **Administrators** | Full access to everything in the organization | Organization owners and anyone who needs full control. |
| **Automation Builders** | Automation Creator, Automation Editor | People who build, deploy, and change automations. |
| **Automation Operators** | Automation Operator | People who run and monitor automations. |

> [!WARNING]
>
> The **Administrators** team is how organization owners get full access. If you remove someone from this team,
> they lose that access, even if they own the organization.

### Adding people to a team

People can join a team in two ways:

* **Directly**: someone adds them in **Settings → Teams**.
* **Through SSO**: an identity-provider group is mapped to the team. See
  [Just-in-Time SSO provisioning](https://docs-platform.crewai.com/platform/en/features/jit-sso.md).

When someone joins a team, they start getting everything the team grants. Access given to them directly is not
affected. When they leave the team, they lose only what the team gave them.

**1. Open Teams**

Go to **Settings → Teams**.

**2. Create or open a team**

Click **Create team** to start a new one, or select an existing team. A new team starts empty and grants
no access.

**3. Add members**

Click **Add member** and choose a person or a service account.

**4. Give the team roles**

In the **Access** section, click **Edit roles**. Choose a role and a scope (the whole organization
or one resource). Repeat for each role the team needs.

## Giving access

There are two places to give access.

### From Settings

Use Settings to give organization-wide roles, or to give a role on a specific resource to a person, team, or
service account. You need the **Identity and Access Admin** role.

| To give a role to | Go to |
| :- | :- |
| A person | **Settings → Members**, then add a role in the person's row |
| A team | **Settings → Teams**, open the team, then **Edit roles** |
| A service account | **Settings → Service Accounts**, then add a role to the service account |

For each role, choose a **scope**: the Organization, or one resource. Only scopes that fit the role are offered.
For example, a Creator role can only be granted at Organization scope.

### From a resource (sharing)

Use the **Share** button on a resource to give someone access to just that resource. You need the **Admin**
role on the resource (or organization-wide access that includes sharing).

You can share these resources:

* Automations
* Crew Studio projects
* LLM connections
* Environment variables (organization-level variables only)
* Tools
* Git repositories
* Shared application connections

**1. Open Share**

On the resource, click **Share**. The dialog lists everyone who has access.

**2. Add a person, team, or service account**

Search for who you want to add and choose a role, such as **Operator** or **Editor**.

**3. Change or remove access**

Pick a different role for an entry, or remove it. Each person, team, or service account has one role per
resource in the Share dialog.

Some entries in the Share dialog come from the organization, such as a team with an Organization-scoped role.
You cannot change those entries from the Share dialog. Change them in **Settings** instead.

> [!NOTE]
>
> CrewAI-managed teams cannot be added from the Share dialog, because their roles cannot be changed.
> Use a custom team instead.

## Service accounts

Service accounts are identities for scripts and integrations that call the CrewAI API. They hold grants just like
people do. Give them roles in **Settings → Service Accounts**, or add them to a team.

API endpoints that manage people and access, such as inviting users or changing roles, require the service account
to have the **Identity and Access Admin** role.

## Managing access with the API

The API uses the same model. You can list, add, and remove roles for:

* users: `/api/v1/users/{id}/granted-roles`
* teams: `/api/v1/teams/{id}/granted-roles`
* service accounts: `/api/v1/service-accounts/{id}/granted-roles`
* shareable resources, for example `/api/v1/automations/{id}/granted-roles`

Each grant names a role and a scope. The API accepts service account tokens; see
[Service accounts](https://docs-platform.crewai.com/api/service-account.md) for how to get one. To change the roles of users, teams, or service
accounts, the service account needs the **Identity and Access Admin** role. To change who can access a resource,
it needs the **Admin** role on that resource, or **Identity and Access Admin**.

## Common setups

These examples show how to build typical access patterns with teams and roles.

### Developers

People who build and deploy automations, but do not manage the organization.

Create a **Developers** team and give it these roles at Organization scope:

| Role | Why |
| :- | :- |
| Automation Creator + Automation Editor | Create, deploy, and change automations. (Or add people to the managed **Automation Builders** team.) |
| Studio Project Creator | Create Studio projects. |
| Tool Creator, Agent Creator, Skill Creator | Publish to the repositories. |
| LLM Connection Operator | Use the organization's LLM connections. |
| Environment Variable Creator | Create their own environment variables. |
| Git Repository Operator | Deploy from connected repositories. |

### Stakeholders

People who only need to watch automations and see results.

* Add them to the managed **Automation Operators** team to see and run every automation, **or**
* Share specific automations with them as **Operator**, so they see only those.

### Platform administrators

People who run the platform but don't build agents.

Create a **Platform Admins** team and give it **Organization Admin**, **Identity and Access Admin**, and
**Usage and Billing Admin** at Organization scope. For full control of everything, add them to the
**Administrators** team instead.

### One project team

A group that should only see its own work.

Create a team for the group. Share the automations, Studio projects, and connections they use with that team.
Don't give the team any Organization-scoped roles for those areas, so they don't see other teams' work.

***

> [card] [Need Help?](mailto:support@crewai.com)
>
> Contact our support team for assistance with RBAC questions.


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