# Permissions and access

> For AI agents: the complete documentation index is at https://buddy.works/llms.txt

Grant pipelines and sandboxes Read-only, Read-write or Manage access to a Buddy artifact, and control what people can do with the Artifacts module in a role.

Pipeline and sandbox permissions are configured on the artifact's Permissions tab. User permissions are determined by the **Artifacts** module in the assigned project role. A pipeline without the required artifact permissions cannot download or publish versions, even when executed by an administrator.

Access to files from outside Buddy, from a browser or with `curl`, is set in a separate **Access control** field, described in [Access control](https://buddy.works/docs/artifacts/access-control.md).

## Pipeline permission levels

A pipeline has one of four access levels to an artifact: **Deny**, **Read-only**, **Read-write** or **Manage**. Each higher level includes the permissions of the lower one.

| Level | Download Artifact Version, artifact trigger, registry image in an action | Publish Artifact Version | Artifact Cleanup |
| :--- | :--- | :--- | :--- |
| **Deny** | No | No | No |
| **Read-only** | Yes | No | No |
| **Read-write** | Yes | Yes | No |
| **Manage** | Yes | Yes | Yes |

Read-only is enough for a pipeline started by the [On artifact event](https://buddy.works/docs/pipelines/introduction/triggering-pipelines/on-artifact-event.md) trigger and for an action that uses an image from the artifact registry as its environment ([Container images in actions](https://buddy.works/docs/artifacts/using-artifact-images.md)).

## Pipeline permission configuration

You grant access in the artifact's **Permissions** tab, in the **Pipeline** section: either to all pipelines at once in the **All pipelines** row, or to selected pipelines with the **+** button.

![Permissions tab of an artifact](https://buddy.works/docs/artifacts/artifact-permissions-tab.png)

1. Open the artifact and go to the **Permissions** tab.
2. In the **Pipeline** section, check the level in the **All pipelines** row. If it is **Deny** and every pipeline should have access, raise the level in this row.
3. To give access only to selected pipelines, click **+**. The **Assign Pipelines** window lists the project's pipelines with a search box. The list is limited to 50 items, so narrow a longer list by searching.
4. Set the level for the added pipeline and save.

![Assign Pipelines window with access levels set for selected pipelines](https://buddy.works/docs/artifacts/artifacts-assign-pipelines.png)

Individual pipeline permissions take precedence over the **All pipelines** setting, regardless of whether the assigned permission level is higher or lower. For example, a pipeline with **Read-only** permissions can download artifact versions even if **All pipelines** is set to **Deny**. Conversely, the same pipeline cannot publish versions even if **All pipelines** is set to **Manage**. The **Publish Artifact Version** action fails with `Pipeline is not allowed to publish artifact`.

![Pipeline entry with its own access level while All pipelines is set to Deny](https://buddy.works/docs/artifacts/artifacts-permissions-pipeline.png)

Setting access through the REST API is described in the [API reference](https://buddy.works/docs/api/artifacts/update.md).

### Granting permissions from a failed run

If an action fails due to insufficient artifact permissions, the error window displays a **Grant permissions** button. Clicking the button assigns the pipeline the permission level required by the action, such as **Read-write** for **Publish Artifact Version**. Click **Retry** to retry the failed action. The button is available only to users authorized to modify artifact permissions.

![Grant permissions button in a failed run](https://buddy.works/docs/artifacts/artifact-run-grant-permissions.png)

## Sandbox permission configuration

You grant access to sandboxes the same way as to pipelines: in the artifact's **Permissions** tab, in the **Sandbox** section, in the **All sandboxes** row or for a selected sandbox. Read-only allows downloading a version, Read-write also allows publishing new versions, and Manage allows deleting versions.

A sandbox with access downloads a version without a token or login, as described in [Artifacts in Sandboxes](https://buddy.works/docs/artifacts/sandboxes.md). In the REST API, access is set with the `sandboxes_access_level` and `allowed_sandboxes` fields.

## Permissions tab sections

| Section | Who it grants an access level to |
| :--- | :--- |
| **Member** | Selected users |
| **Bud** | The Bud AI agent |
| **Group** | User groups. Administrators and Project Managers have **Manage**, and the **Others** row has **Project role**, which is the level from the project role |
| **Pipeline** | All pipelines or selected ones |
| **Sandbox** | All sandboxes or selected ones |
| **Environment** | Selected environments |

The **Permissions** and **Settings** tabs are available only with the **Manage** level.

## Project roles and the Artifacts module

The **Artifacts** module in a project role controls what a user can do with artifacts in the UI, but it does not change the access of the pipelines the user runs. You define roles in the workspace (**Members, Groups & Roles** → **Roles**).

![Artifacts module access levels in a project role](https://buddy.works/docs/artifacts/artifacts-role-module.png)

| Role level | What the user can do |
| :--- | :--- |
| **None (Deny)** | No access to project artifacts. Direct artifact URLs return an HTTP `404 Not Found` response |
| **Read-only** | Listing artifacts and versions, browsing artifact contents on the Browse tab, downloading files (**Download**, **Raw**), opening versions in a browser (**Open in browser**), and selecting versions as pipeline context (**Use as pipeline context**) |
| **Read-write** | All Read-only permissions, plus creating versions (**New version**), uploading files, and copying versions (**Copy**) |
| **Manage** | All Read-write permissions, plus deleting versions (**Delete**) and accessing the artifact's Permissions and Settings tabs |

> **Warning**
>
> **The None (Deny) permission level in a project role restricts access to Project-scoped artifacts only.** Workspace-scoped artifacts remain visible and accessible when the **Scope: Any** or **Workspace** filter is selected. Access to Workspace-scoped artifacts must be restricted through individual artifact permissions. See [Scopes](https://buddy.works/docs/artifacts/scopes.md).

With **None (Deny)**, the **Artifacts** item stays in the project menu, and the list with the **Scope: Project** filter shows `Nothing yet`, with no message about missing permissions. Creating roles and the other modules are described in [User roles](https://buddy.works/docs/basics/collaboration/roles.md).

See also:

- [Scopes](https://buddy.works/docs/artifacts/scopes.md) - Workspace, Project and Environment scope
- [Access control](https://buddy.works/docs/artifacts/access-control.md) - Buddy Auth, HTTP BA and Public for access from outside Buddy
- [Artifacts in pipelines](https://buddy.works/docs/artifacts/pipelines.md) - Publish and Download actions and `BUDDY_ARTIFACT_*` variables
- [Cleanup and retention](https://buddy.works/docs/artifacts/cleanup-and-retention.md) - the Artifact Cleanup action, which requires Manage
- [Sandbox permissions and security](https://buddy.works/docs/sandboxes/permissions-and-security.md) - sandbox access to repositories and artifacts
- [Troubleshooting](https://buddy.works/docs/artifacts/troubleshooting.md) - access error messages and how to fix them


---
Original source: https://buddy.works/docs/artifacts/permissions-and-access