decision control
Reference

Permissions

Built-in and custom roles, per-decision grants and restricted access.

Access is a set of permissions — decision.edit, decision.publish, decision.deploy, deploy.protected, review.approve, table.publish, execution.read, delivery.retry, audit.read, member.manage, … — PROJECT_PERMISSIONS in core.

The levels at a glance

  • Which levels are there? Three: platform (the installation and its /admin area), workspace (a tenant: its members, SSO, SCIM and logs) and project (where decisions, tables and executions live). Each has its own list of permissions.
  • How do I get access at a level? By belonging to it: a platform role, a workspace membership or a project membership. An API key carries its own project instead.
  • Does one level include another? No. A workspace owner who is not in a project cannot open it, and a platform administrator sees no tenant content. Levels are checked separately.
  • What is a role? A named bundle of permissions. The built-in roles are fixed; in a project you can also define custom roles.

Workspace and project roles

Roles exist at two levels, and they answer different questions. They are not the same role at two granularities, and neither is inherited from the other.

  • A workspace role (owner/admin/member) shapes the tenant itself: create projects, manage who belongs to the workspace and with what role, define the set of custom roles available, configure single sign-on and SCIM, and rename, archive or delete the workspace. It is a bundle of workspace permissions (WORKSPACE_PERMISSIONS: workspace.read, workspace.manage, workspace.member.manage, workspace.project.create, workspace.role.manage, workspace.sso.manage, workspace.scim.manage, workspace.logs.manage): a member holds workspace.read; admin and owner hold all of them.
  • A project role (owner/admin/editor/viewer, or a custom role) is what someone may do inside one project: decisions, tables, datasets, constants, executions, cases, the audit log, project members and invitations. This is the level that carries PROJECT_PERMISSIONS.
ConcernLevel
Create, rename, archive or delete a workspaceWorkspace
Add, change or remove workspace membersWorkspace
Define custom roles (the permission sets)Workspace
Single sign-on, SCIM tokens and group mappingsWorkspace
Create a project; list the projects you belong toWorkspace
Read, edit, publish, deploy decisions and tablesProject
Executions, cases, audit log, project members, invitationsProject
Grants and restricted access on a single decisionProject

A workspace role grants no project access. Access is membership, nothing else: a workspace admin who is not a member of a project is turned away exactly like anyone else, and a project owner works inside their project without any workspace elevation (they still need to be a workspace member to list projects). Project access is opt-in — a workspace member only sees the projects they belong to.

A few consequences worth knowing:

  • Creating a project makes only its creator the project owner; no other workspace admin is added.
  • An invitation grants both: a workspace membership with the fixed role member (you cannot invite your way into workspace administration) and the project membership with the invited role.
  • Single sign-on and SCIM provision a workspace membership as member; SCIM group mappings also grant project roles (and custom roles).
  • Custom roles are defined per workspace (by a workspace admin) but assigned per project membership, which is why they live at the workspace level yet take effect in one project.

Built-in roles

The built-in roles are fixed sets:

RoleWhat it can do
viewerReads the project, its executions and its cases.
editorBuilds, publishes, deploys to unprotected environments, approves publish requests and manages cases.
adminEverything in editor, plus members, integrations, environments, API keys and governance.
ownerThe same permissions as admin; a project always keeps at least one owner.

In permission terms (BUILT_IN_ROLE_PERMISSIONS in core):

  • viewer — execution.read, case.read.
  • editor — everything a viewer has, plus decision.edit, decision.simulate, decision.publish, decision.deploy, review.approve, table.edit, table.publish, dataset.edit, globals.edit, assistant.use, delivery.read, case.manage.
  • admin and owner — every PROJECT_PERMISSIONS entry.

admin and owner keep their permissions even when a custom role would override them. The console shows the same thing: each built-in role's permissions, and every member's effective set, under Settings → Members.

Custom roles

A workspace admin can define custom roles (Settings → Members) — an author who cannot publish, an approver who cannot edit, an operator who only retries deliveries — and assign one to any project membership. The custom role replaces the built-in role's permissions, except for admins and owners, who always keep theirs.

A role change applies on the next request, everywhere.

Per-decision access

A decision can also carry its own access (Access, on the decision):

  • Grants add decision permissions (edit, simulate, publish, deploy, approve) to one member.
  • Restricted — when on, the decision ignores the project role's decision permissions altogether, so only the people granted on it — and project admins — can change it. Everyone in the project can still read it.

One model, three scopes

Platform, workspace and project are scopes of the same model: each has a catalog of permissions, roles are named bundles of them, and the question "may they?" is always can(grants, permission) in @decision-control/core. Scopes never inherit from each other.

ScopeProved byCatalog
PlatformThe user's platform rolePLATFORM_PERMISSIONS
WorkspaceMembership of the workspaceWORKSPACE_PERMISSIONS
ProjectMembership of the project, or an API key's scopesPROJECT_PERMISSIONS (+ per-decision grants)

How a request is checked

  1. Find the policy. Every guarded route is listed in one table. A route with no policy is closed, for every method.
  2. Prove the scope. The policy says which level answers. The caller must belong to it, or the request is refused with NOT_A_MEMBER (platform: You are not a platform administrator).
  3. Check the permission. The permission the route needs must be among those the level grants the caller, or the request is refused with FORBIDDEN naming the permission. On a decision, its grants and restriction adjust the project permissions first.
  • What if a route needs no permission? Its policy says so explicitly (null): membership, or a signed-in session, is enough.
  • What can an API key do? It resolves to project permissions from its scopes, never to administration, and it cannot reach workspace or platform routes.
  • When does a change apply? On the next request: roles are read per request (with a short cache that a change invalidates).

Matrix

Generated from the catalog and the access table, so it cannot drift from the code. A permission with 0 routes is checked inside the handler instead, against the thing it acts on (deploy.protected against the target environment).

Platform

PermissionBuilt-in rolesRoutes
platform.overview.readSUPPORT, ADMIN2
platform.observability.readSUPPORT, ADMIN11
platform.logs.readSUPPORT, ADMIN8
platform.logs.manageADMIN2
platform.workers.manageADMIN9
platform.sessions.readSUPPORT, ADMIN2
platform.sessions.revokeSUPPORT, ADMIN2
platform.security.readSUPPORT, ADMIN4
platform.outbox.manageADMIN0
platform.jobs.readSUPPORT, ADMIN0
platform.jobs.manageADMIN0
platform.catalog.readSUPPORT, ADMIN0
platform.announcements.readSUPPORT, ADMIN2
platform.announcements.manageADMIN4
platform.invitations.readSUPPORT, ADMIN2
platform.invitations.manageADMIN2
platform.config.manageADMIN2
platform.limits.readSUPPORT, ADMIN3
platform.limits.manageADMIN3
user.readSUPPORT, ADMIN7
user.manageADMIN5
session.revokeSUPPORT, ADMIN2
platform.workspace.readSUPPORT, ADMIN12
platform.workspace.manageADMIN7
platform.project.readSUPPORT, ADMIN19
platform.project.manageADMIN7
execution.read.allSUPPORT, ADMIN5
audit.read.allSUPPORT, ADMIN7

Open to any member of the scope (no permission): 0 routes.

Workspace

PermissionBuilt-in rolesRoutes
workspace.readMEMBER, ADMIN, OWNER3
workspace.manageADMIN, OWNER5
workspace.member.manageADMIN, OWNER2
workspace.project.createADMIN, OWNER1
workspace.role.manageADMIN, OWNER3
workspace.sso.manageADMIN, OWNER4
workspace.scim.manageADMIN, OWNER5
workspace.logs.manageADMIN, OWNER6

Open to any member of the scope (no permission): 4 routes.

Project

PermissionBuilt-in rolesRoutes
decision.editEDITOR, ADMIN, OWNER14
decision.simulateEDITOR, ADMIN, OWNER4
decision.publishEDITOR, ADMIN, OWNER5
decision.deployEDITOR, ADMIN, OWNER5
deploy.protectedADMIN, OWNER0
review.approveEDITOR, ADMIN, OWNER2
table.editEDITOR, ADMIN, OWNER8
table.publishEDITOR, ADMIN, OWNER1
dataset.editEDITOR, ADMIN, OWNER4
globals.editEDITOR, ADMIN, OWNER3
assistant.useEDITOR, ADMIN, OWNER11
execution.readVIEWER, EDITOR, ADMIN, OWNER11
delivery.readEDITOR, ADMIN, OWNER4
delivery.retryADMIN, OWNER3
audit.readADMIN, OWNER5
case.readVIEWER, EDITOR, ADMIN, OWNER8
case.manageEDITOR, ADMIN, OWNER16
case.configureADMIN, OWNER4
environment.manageADMIN, OWNER3
integration.manageADMIN, OWNER30
schedule.manageADMIN, OWNER13
apikey.manageADMIN, OWNER4
member.manageADMIN, OWNER6
project.manageADMIN, OWNER8

Open to any member of the scope (no permission): 43 routes.

Routing

Every guarded route is mapped to the scope and permission it needs, by route pattern, in one table (apps/api/src/access/policies), enforced by a single middleware (authorize). A route the table does not list is closed for every method, and a test fails with its name. Routes outside the table (sign-in, SCIM, the machine surface behind an API key, the public form) are listed in that test with the reason.

Reading the project's API keys needs apikey.manage, and its webhooks integration.manage: a viewer or editor no longer lists them.

Someone who manages members without being an admin cannot hand out more than they hold: no admin or owner roles, no custom role with permissions they lack, no changes to themselves.

/auth/me returns the caller's permissions in every scope — user.platform_permissions, each workspace's permissions and each project's permissions — and a decision's detail returns the caller's permissions on it, so the console only offers what will work (useCan()).

On this page