# Per-project access

Source: https://openpanel.sh/docs/members/per-project-access

Give one member more, less or no access to one project, in place of what their organization role gives, and take it back.

A member's role gives them a level of access in every project the whole organization sees: **admin** for the Owner and Admins, **deploy** for **Can deploy**, **view** for **Can view**. For one project, you can give a member a level of their own instead, higher or lower, or **none** to hide the project from them. See [Roles](/docs/members/roles#access-to-projects) for what each level allows.

| Level | In this project, the member can |
|---|---|
| **admin** | Do everything, including renaming and deleting it and choosing who can reach it |
| **deploy** | Change services, variables and domains, and deploy |
| **view** | See it, but change nothing |
| **none** | Not see it at all: it is missing from their list, and reaching it by its ID answers "not found" |

You need **admin** access to the project. The Owner's access cannot be changed: the Owner always has admin access to every project.

In the console, open the project's **Project settings** and go to **Access**: every member is listed with their organization **Role** and their access to this project. The [CLI](/docs/cli), the [API](/docs/api) and [MCP](/docs/ai) do the same.

## See who can reach a project [#see-who-can-reach-a-project]

<Tabs items={["Console","CLI","API"]}>
<Tab value="Console">
The **Access** card in the project's settings lists every member. **From role** means they have no access of their own here, so their role decides; the level their role gives is shown beside it.
</Tab>

<Tab value="CLI">
```sh
openpanel projects access shop
```

```text
NAME          EMAIL                 ROLE    PROJECT ACCESS
Rūta Invitee  invitee@example.test  member  (role)
Test Owner    owner@example.test    owner   admin
```

**(role)** means the member has no access of their own here, so their role decides. In the **ROLE** column, `member` is **Can deploy** and `viewer` is **Can view**.
</Tab>

<Tab value="API">
```sh
curl https://openpanel.sh/api/v1/projects/$PROJECT_ID/access \
  -H "Authorization: Bearer $OPENPANEL_TOKEN"
```

Each member in `data` has their `userId`, `name`, `email`, organization `role`, and `access`: their own level in this project, or `null` when their role decides.
</Tab>
</Tabs>

Every member of the organization is listed, with the access they have of their own.

## Give a member their own access [#give-a-member-their-own-access]

<Tabs items={["Console","CLI","API"]}>
<Tab value="Console">
In the **Access** card, choose a level in the member's row: **Admin**, **Can deploy**, **Can view** or **No access**. It is saved at once.
</Tab>

<Tab value="CLI">
```sh
openpanel projects access shop ruta@example.com view
```

The member is named by their email address or their user ID; the level is `none`, `view`, `deploy` or `admin`.
</Tab>

<Tab value="API">
```sh
curl -X PUT https://openpanel.sh/api/v1/projects/$PROJECT_ID/access/$USER_ID \
  -H "Authorization: Bearer $OPENPANEL_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"access": "view"}'
```

`access` is `"none"`, `"view"`, `"deploy"` or `"admin"`. The answer is `204` with no body. Find a member's user ID with `GET /members`.
</Tab>
</Tabs>

The new level applies at once, to the member's API keys and CLI sign-in too.

## Take it back [#take-it-back]

To let the member's role decide again:

<Tabs items={["Console","CLI","API"]}>
<Tab value="Console">
In the **Access** card, choose **From role** in the member's row.
</Tab>

<Tab value="CLI">
```sh
openpanel projects access shop ruta@example.com role
```
</Tab>

<Tab value="API">
```sh
curl -X PUT https://openpanel.sh/api/v1/projects/$PROJECT_ID/access/$USER_ID \
  -H "Authorization: Bearer $OPENPANEL_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"access": null}'
```
</Tab>
</Tabs>

In a [private project](/docs/members/private-projects), taking someone's access back takes them out of the project, since a private project gives nothing by role.

## Good to know [#good-to-know]

- **Access never goes beyond the organization.** Only members of the organization can be given access; someone who leaves or is removed loses their own access to every project at once.
- **An API key is capped too.** A key acts as the person who made it, never with more than their access in a project, and never with more than its own scope. See [Authentication](/docs/api/authentication#api-keys).
- **Every change is in the audit log**, as `project.access`, with the level before and after. See [Audit log](/docs/monitoring/audit-log).

## What can go wrong [#what-can-go-wrong]

| Message | What it means |
|---|---|
| "The owner always has admin access to every project." | The Owner's access cannot be changed. |
| "… is not a member of the organization." | The email or ID names nobody in the organization (CLI). |
| "This needs admin access, and you have deploy." | Only someone with admin access to the project chooses who can reach it. |