# Project access and roles

> Control who can see a project, give people a project role, and look up what each role can do.

Share a project to control who can see it and what each person can change. Project visibility sets who can see the project. A project grant gives a user or a team a project role, which sets what they can change.

Only project administrators can change these settings. Workspace owners and administrators are project administrators on every project.

## Set the project visibility

A project is either **Private** or **Public**, and a new project starts as **Private**. **Public** means public inside your workspace, so people outside the workspace never see the project.

| Visibility | Who can see the project |
|---|---|
| **Private** | People with a project grant, and workspace owners and administrators. |
| **Public** | Every member of the workspace. A member without a project grant is a viewer. |

You can change the visibility at any time from the properties on the project overview:

1. Open the project overview.
2. In the **Project** properties, click the visibility value.
3. Select **Private** or **Public**. The change applies at once, and you can undo it from the message that shows.

Visibility controls reading only. To change anything in a project, a person needs a project grant with a high enough role, or the workspace **Owner** or **Admin** role.

## Project roles

Each project grant has one of four project roles, and each role can do everything that the role before it can do.

<Media id="roles-ladder" label="Four steps from Viewer to Contributor to Release manager to Admin, each step adding permissions to the one below." />

| Role | What it adds |
|---|---|
| **Viewer** | Can read the project overview and release history. |
| **Contributor** | Can update components and release candidates. |
| **Release manager** | Can promote releases for this project. |
| **Admin** | Can manage project grants, visibility and project settings. |

### What each role can do

Each tab lists the actions of one area and the lowest role that can do each of them.

<Tabs>
<Tab title="Read">

| Action | Lowest role |
|---|---|
| See the project, its components and its releases | **Viewer** |
| See the pull requests of a release | **Viewer** |
| Open the project settings (read only) | **Viewer** |

</Tab>
<Tab title="Components">

| Action | Lowest role |
|---|---|
| Add a component to the project | **Contributor** |
| Add, remove or restore components in an open candidate | **Contributor** |
| Add or remove components in Genesis before it is complete | **Contributor** |

</Tab>
<Tab title="Releases">

| Action | Lowest role |
|---|---|
| Start or complete Genesis | **Release manager** |
| Create a release or a new candidate | **Release manager** |
| Promote, demote or abandon a release | **Release manager** |
| Restore a superseded candidate as a new candidate | **Release manager** |

</Tab>
<Tab title="Administration">

| Action | Lowest role |
|---|---|
| Change the name, description, labels or visibility | **Admin** |
| Add, change or remove project grants | **Admin** |
| Change the **Digest** and **Sources** settings | **Admin** |
| Turn **Catalog sync** on or off, sync a source, or adopt a component | **Admin** |
| See the catalog findings of the project | **Admin** |
| Delete the project | **Admin** |

</Tab>
</Tabs>

## Give someone access

You can give access only to members of the workspace, because the **Add access** dialog lists no one else. To give access to someone outside the workspace, invite them to the workspace first, as [Manage workspace members](/workspace/members) explains.

1. Open the project and press `Cmd+K` (or `Ctrl+K`).
2. Select **Project settings**, and then click **Access**.
3. Click **Add access**.
4. Search by name or email, and then select the person.
5. Click **Done**. The person shows under **Users** with a new project grant that has the **Viewer** role.

## Change a role

To give a person or a team another role on the project:

1. In the **Access** list, open the menu at the end of the row.
2. Select **Change role**, and then select the new role.

## Remove access

To remove a project grant:

1. In the **Access** list, open the menu at the end of the row.
2. Select **Remove**.
3. In the **Revoke access?** dialog, click **Revoke**.

Revoking removes only the project grant. If the project is **Public**, the person can still see it as a member of the workspace. Workspace owners and administrators keep their administrator access.

## Teams

A project grant can go to a team of the workspace, and every member of the team then has the role of that grant. The **Access** list shows team grants under **Teams**.
A person can also have their own grant and the grants of their teams on one project, and Patchbay uses the strongest of these roles.

## Workspace roles

A workspace has three roles, **Owner**, **Admin** and **Member**, and each one affects projects in a different way. To manage them, see [Manage workspace members](/workspace/members).

| Workspace role | Effect on projects |
|---|---|
| **Owner** or **Admin** | Project administrator on every project, with or without a project grant. Can review project proposals and see the catalog findings of the workspace. |
| **Member** | Can create a project and becomes its project administrator. Other access comes from project grants and project visibility. |

## How Patchbay picks your role

The person who creates a project gets an **Admin** grant on it. After that, Patchbay checks these rules in order and stops at the first one that applies:

1. If you are a workspace owner or administrator, your role is **Admin**, so you cannot lose access to a project.
2. If you have project grants, your role is the strongest of them, which includes your own grant and the grants of your teams.
3. If the project is **Public** and you are a workspace member, your role is **Viewer**.
4. Otherwise you have no access, and the project does not show for you.

<Callout variant="note" title="Access is checked again for background work">
Some work, such as Genesis, runs in the background after you start it. Patchbay checks your role again before the work runs, and if you lost the required role in the meantime, the work stops.
</Callout>

Index of all pages: https://patchbay.unbrikd.com/docs/llms.txt
