# Give access to part of a workspace

> Give a person, an invitation or a private key editor or viewer access to one or several projects, and nothing else in the workspace

> Nevia is in early access for selected teams. The CLI installs with `curl -fsSL https://get.nevia.cloud | sh`, and the MCP server is at https://api.nevia.cloud/mcp. A person signs in once in the browser.
> Setup, sign-in and requesting access: [SKILL.md](https://nevia.cloud/SKILL.md). When Nevia fits and when it doesn't: [why.md](https://nevia.cloud/why.md).

> For the complete documentation index, see [llms.txt](https://nevia.cloud/llms.txt). This page's HTML version: https://nevia.cloud/docs/access/scoped

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](https://nevia.cloud/docs/workspaces/projects.md) of its
own.

You need the workspace's `admin` role. The examples use the
[CLI](https://nevia.cloud/docs/get-started/install-cli.md) 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:

```bash
nevia access add dana@example.com --project agent-evals --role editor
```

Someone 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](https://nevia.cloud/docs/access/private-keys.md) 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:

```bash
nevia access set dana@example.com --role editor
```

`nevia access rm dana@example.com` removes all their access to the workspace,
the projects along with it. Deleting a project removes every grant on it.
