Reference

Workspace permissions

What workspace and project roles allow, and how removing access works

Each member has one role per workspace: admin, editor or viewer. That role reaches the workspace and every computer and database in it. The same user can hold different roles in different workspaces. A principal that signs in with a private key is a member too, with editor or viewer. It is never an admin and cannot create workspaces.

Someone can instead hold a role on one or more projects, with no workspace role. A project editor or viewer reaches only the computers and databases in that project.

For the procedures, see Add and manage workspace members, Give access to part of a workspace, Give a script or agent access and Create or select a workspace.

Workspace roles

ActionAdminEditorViewer
View the workspace and list its membersYesYesYes
List and inspect computers, databases, computer checkpoints and operationsYesYesYes
Read computer logsYesYesYes
List secrets and variables, and read variable values (never secret values)YesYesYes
Create, replace or delete secrets and variablesYesYesNo
Create computers and databasesYesYesNo
Change settings, branch, sleep or wake computers and databasesYesYesNo
Run commands on computersYesYesNo
Retrieve database connection details, including passwordsYesYesNo
Create, restore or delete computer checkpointsYesYesNo
Delete computers and databasesYesYesNo
Reference variables in a computer's envYesYesYes
Reference secrets in a computer's envYesYesNo
Open an interactive session whose env references secretsYesYesNo
Open an interactive session whose env references only variablesYesYesYes
Create, rename or delete projects, and grant access on themYesNoNo
Rename or delete the workspaceYesNoNo
Add members, change roles or remove membersYesNoNo

Permissions do not bypass resource constraints such as deletion protection or checkpoints in use by another computer. See Computer lifecycle states and Sleep, wake and delete a database.

Project roles

A project role covers the computers and databases in that project, and nothing else in the workspace.

Action, on the project's resourcesProject editorProject viewer
List and inspect computers and databases, and a computer's checkpoints and logsYesYes
Create computers and databases in the projectYesNo
Change settings, branch, sleep, wake or delete themYesNo
Run commands and retrieve database connection detailsYesNo
Create, restore or delete computer checkpointsYesNo
Move a resource into another project they editYesNo

A project role alone never reaches the rest of the workspace:

  • Workspace secrets and variables stay out of reach, so a computer's env can use only literal values.
  • Moving a resource out of every project, or creating one in no project, needs a workspace editor role.
  • Listing members needs a workspace role. Changing anyone's access and managing projects need a workspace admin.

A request that needs a workspace role answers 403 forbidden and names the projects the caller can use. A resource outside those projects answers 404 not_found, the same as one that does not exist.

Creating a workspace

Any signed-in user can create a workspace and becomes its admin. Creation does not require an admin role in another workspace. An editor or viewer in one workspace can create and administer a separate workspace.

Choosing a workspace in the CLI changes the command's context. It does not grant membership or change a role.

Membership constraints

  • The person you add must already exist in Nevia. Signing in registers them. Use the email or principal ID shown by their nevia whoami.
  • Adding someone who is already a member fails. Change their existing role instead.
  • The API refuses to demote or remove the last admin. Make another member an admin first.
  • Removing someone takes all their access to the workspace: the workspace role and every project grant in it. It does not remove their account or their other workspaces.
  • Giving a project-scoped person a workspace role replaces their project grants. Narrowing a member to projects replaces their workspace role.
  • A workspace must have no live computers or databases before an admin can delete it.

A session needs edit on the computer as well. Secret references anywhere in the merged env, stored or from -e, require the workspace editor role, and variable-only references need any workspace role.

For secrets and variables, see Give computers secrets and variables.

For command syntax, see the generated workspace CLI reference and project CLI reference.

On this page