> For the complete documentation index, see [llms.txt](https://docs.visdom.virtuslab.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.visdom.virtuslab.com/visdom-control-plane/permissions/permission-model.md). Agents can also search and read this documentation through its [MCP server](https://docs.visdom.virtuslab.com/~gitbook/mcp).

# The permission model

Apps, roles and scopes for the whole Visdom suite: the catalogue, how a decision is made, who is an admin, and how grants behave.

The Control Plane keeps one permission model for every Visdom product. Each product is an **app** with a **sign-in access** key and a set of **roles**; each role has a fixed **scope**, the workspace or a project. A person gets a role through a **grant**, and every product asks the Control Plane what a person may do through the same [effective permissions](https://docs.visdom.virtuslab.com/visdom-control-plane/integrating-a-product/effective-permissions.md) API. Nothing is allowed until it is granted.

## Terms

| Term           | Meaning                                                                                                                                       |
| -------------- | --------------------------------------------------------------------------------------------------------------------------------------------- |
| Workspace      | The whole installation. There is one workspace per installation.                                                                              |
| Project        | The unit every product works in, addressed by its slug.                                                                                       |
| App            | One product in the catalogue: Orchestrator, Tracing (AI Tracing), Context Fabric, AI Gateway, Control Plane.                                  |
| Sign-in access | The app's own key, with no dot (`orchestrator`, `tracevault`, …). Always workspace-scoped. Without it, every other role in that app is inert. |
| Role           | A key under the app (`orchestrator.viewer`, …) with a fixed scope.                                                                            |
| Grant          | One key given to one user, at the workspace or on one project.                                                                                |

## The catalogue

Labels and descriptions as the Control Plane serves them (`GET /api/v1/permissions/catalog`) and shows them under **Settings › Users & access**.

| Key                                    | Label                    | Scope     | What it allows                                                                                                                                                   |
| -------------------------------------- | ------------------------ | --------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `orchestrator`                         | Orchestrator             | Workspace | Access the Orchestrator application                                                                                                                              |
| `orchestrator.viewer`                  | Viewer                   | Project   | Read that project's runs, schedules, approvals, chats, memory, cost, flows, agents and tasks                                                                     |
| `orchestrator.operator`                | Operator                 | Project   | Viewer, plus running and cancelling, deciding approvals, answering input requests, creating and using chats, and managing that project's flows, agents and tasks |
| `orchestrator.buildingBlocks.viewer`   | Building blocks viewer   | Workspace | View the workspace Containers, MCPs and Skills libraries                                                                                                         |
| `orchestrator.buildingBlocks.operator` | Building blocks operator | Workspace | Create, edit and archive Containers, MCPs and Skills                                                                                                             |
| `orchestrator.admin`                   | Admin                    | Workspace | Full control over every project and every user in Orchestrator                                                                                                   |
| `tracevault`                           | Tracing                  | Workspace | Sign in to Tracing                                                                                                                                               |
| `tracevault.viewer`                    | Viewer                   | Project   | Read that project's traces, sessions, analytics, dashboards, flows, member repos and source                                                                      |
| `tracevault.operator`                  | Operator                 | Project   | Viewer, plus managing that project's data and using its features: ingest, policies, re-sync, chain re-verify, AI assistant                                       |
| `tracevault.admin`                     | Admin                    | Workspace | Full authority over every project and user in Tracing                                                                                                            |
| `context-fabric`                       | Context Fabric           | Workspace | Access the Context Fabric application                                                                                                                            |
| `context-fabric.viewer`                | Viewer                   | Project   | Read the project's context, wiki, knowledge and runs                                                                                                             |
| `context-fabric.operator`              | Operator                 | Project   | Viewer, plus configure repositories and modules, refresh, and add knowledge for that project                                                                     |
| `context-fabric.admin`                 | Administrator            | Workspace | Everything in every project: project lifecycle, git credentials, sync, workspace fragments                                                                       |
| `ai-gateway`                           | AI Gateway               | Workspace | Sign in to AI Gateway                                                                                                                                            |
| `ai-gateway.viewer`                    | Viewer                   | Project   | Read that project's gateway setup and activity: virtual keys, models, budgets and request logs                                                                   |
| `ai-gateway.operator`                  | Operator                 | Project   | Viewer, plus managing that project's virtual keys, model access, budgets and guardrails                                                                          |
| `ai-gateway.admin`                     | Admin                    | Workspace | Full authority over every project and user in AI Gateway                                                                                                         |
| `control-plane`                        | Control Plane            | Workspace | Access the Control Plane application                                                                                                                             |
| `control-plane.viewer`                 | Viewer                   | Workspace | View all users, every user's permissions, and all projects and their secrets                                                                                     |
| `control-plane.operator`               | Operator                 | Project   | Configure that project and manage its secrets and repositories                                                                                                   |
| `control-plane.admin`                  | Admin                    | Workspace | Full control over every project and every user in Control Plane                                                                                                  |

The Control Plane stores and serves these grants; each product decides what its own keys mean in its own screens. A project-scoped key cannot be granted at the workspace scope ("all projects"); grant it on each project.

## How a decision is made

1. **An admin is allowed everything.**
2. **A role needs its app's sign-in access.** `tracevault.viewer` counts only together with `tracevault`.
3. **A project role applies only in that project.**
4. **Everything else is denied.**

## Who is an admin

A **workspace admin** of the Control Plane is either:

* a person or service account with the Keycloak realm role `control-plane-admin`, or
* a person granted both `control-plane` and `control-plane.admin`.

A realm-role admin holds the whole catalogue. The realm roles `orchestrator-admin`, `context-admin`, `ai-tracing-admin` and `ai-gateway-admin` make someone a *suite admin*: they see every project in `GET /projects`, and nothing else in the Control Plane follows from them.

{% hint style="info" %}
The effective permissions API returns stored grants. A realm-role admin's status comes from their token and is not in that answer; a product that honours realm roles reads them from the token itself.
{% endhint %}

## What each Control Plane role allows

| Action                                        | Viewer (`control-plane.viewer`) | Operator (`control-plane.operator`, per project) | Admin                       |
| --------------------------------------------- | ------------------------------- | ------------------------------------------------ | --------------------------- |
| See all users and their grants                | Yes                             | —                                                | Yes                         |
| See every project, archived included          | Yes                             | Their projects                                   | Yes                         |
| Create or archive a project                   | —                               | —                                                | Yes                         |
| Rename or change the description of a project | —                               | That project                                     | Yes                         |
| Add, change or delete repositories            | —                               | That project                                     | Yes                         |
| List secrets                                  | Workspace and every project     | That project                                     | Yes                         |
| Create, replace, delete secrets               | —                               | That project                                     | Workspace and every project |
| Set up Slack, LLM and Atlassian integrations  | —                               | That project                                     | Workspace and every project |
| Give and take away grants, disable users      | —                               | —                                                | Yes                         |
| Change the workspace timezone                 | —                               | —                                                | Yes                         |

Each of these also needs `control-plane` (sign-in access). Without any Control Plane role a person who has `control-plane` sees **My access**: their own grants, read-only.

## Grants

Every grant records who gave it (`granted_by`) and when (`granted_at`). The API refuses a grant when:

| Refusal                                               | Code                            |
| ----------------------------------------------------- | ------------------------------- |
| The key is not in the catalogue                       | `permission.unknown_key`        |
| The scope does not match the key's scope              | `permission.scope_mismatch`     |
| The project is archived                               | `permission.project_archived`   |
| The person does not yet have the app's sign-in access | `permission.missing_app_access` |
| The same grant exists                                 | 409                             |

**Grant sets.** For a project-scoped role, `PUT /api/v1/permissions/grants/set` replaces the whole set of projects a person holds that role on in one step. This is what **Configure** does in the UI.

**Taking away sign-in access.** Revoking an app's sign-in key also removes that person's workspace roles in the app. Their project roles stay, but dormant: they appear nowhere — not in effective permissions, not in `/me` — until sign-in access is granted again, and then they apply as before.

**Disabled users.** A disabled user is refused on every request and their effective permissions are empty. Their grants are kept. Disabling is available through the API only (`POST /api/v1/users/{id}/disable`, admins).

How to give and take away grants in the UI is in [Users and access](https://docs.visdom.virtuslab.com/visdom-control-plane/using-the-control-plane/users-and-access.md).
