Give a person, an invitation or a private key editor or viewer access to one or several projects, and nothing else in the workspace
Scoped access gives someone a role on one or more projects instead of the whole workspace. It reaches every computer and database in those projects, including ones added later. Grants are per project, so to share a single computer or database, put it in a project of its own.
You need the workspace's admin role. The examples use the
CLI and a project named agent-evals. In the
console, open Access.
Give a person access
Pick editor or viewer, and repeat --project for each project:
nevia access add [email protected] --project agent-evals --role editorSomeone who has already signed in gets access at once. Any other email gets an invitation that takes effect on their first sign-in. In the console, add the person on Access and choose projects in place of Whole workspace.
Give a script or agent access
A private key can be scoped the same way. Create
the key, then choose its projects on Access in the console. Over the API,
send projects with the key request to POST /v1/workspaces/{ws}/access. The
CLI gives a new key a workspace role and doesn't take --project with
--private-key.
What scoped access allows
An editor creates, changes, runs commands on and deletes computers and
databases in the projects. A viewer lists and inspects them. Neither can see
the rest of the workspace, its secrets and variables, its operations or its
members. They also can't move a resource out of its project.
nevia whoami lists their projects, and the CLI picks their workspace on its
own when all their projects are in one. An API caller names that workspace by
ID.
Change or remove access
To change the projects, edit them on Access in the console. To give the whole workspace instead, set a workspace role, which replaces the project grants:
nevia access set [email protected] --role editornevia access rm [email protected] removes all their access to the workspace,
the projects along with it. Deleting a project removes every grant on it.