> ## Documentation Index
> Fetch the complete documentation index at: https://wb-21fd5541-automation-updates-docs-2928-docs-2829.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Configure registry access

> Configure W&B Registry access by managing users and teams, assigning roles, and setting role-based permissions.

A registry admin can [configure registry roles](/models/registry/configure_registry/#configure-registry-roles), [add users](/models/registry/configure_registry/#add-a-user-or-a-team-to-a-registry), or [remove users](/models/registry/configure_registry/#remove-a-user-or-team-from-a-registry) from a registry by configuring the registry's settings.

## Manage users

### Add a user or a team

Registry admins can add individual users or entire teams to a registry. To add a user or team to a registry:

1. Navigate to the W\&B Registry.
2. Select the registry you want to add a user or team to.
3. Click on the gear icon on the upper right hand corner to access the registry settings.
4. In the **Registry access** section, click **Add access**.
5. Specify one or more user names, emails, or the team names to the **Include users and teams** field.
6. Click **Add access**.

Learn more about [configuring user roles in a registry](/models/registry/configure_registry/#configure-registry-roles), or [registry role permissions](/models/registry/configure_registry#role-permissions).

### Remove a user or team

A registry admin can remove individual users or entire teams from a registry. To remove a user or team from a registry:

1. Navigate to the W\&B Registry at [https://wandb.ai/registry/](https://wandb.ai/registry/).
2. Select the registry you want to remove a user from.
3. Click on the gear icon on the upper right hand corner to access the registry settings.
4. Navigate to the **Registry access** section and type in the username, email, or team you want to remove.
5. Click the **Delete** button.

<Note>
  Removing a user from a team also removes that user's access to the registry.
</Note>

### Change the owner of a registry

A registry admin can designate any member as a registry's owner, including a **Restricted Viewer** or a **Viewer**. Registry ownership is primarily for accountability purposes and does not confer any additional permissions beyond those granted by the user's assigned role.

To change the owner:

1. Navigate to the W\&B Registry at [https://wandb.ai/registry/](https://wandb.ai/registry/).
2. Select the registry you want to configure.
3. Click the gear icon on the upper right hand corner.
4. Scroll to the **Registry members and roles** section.
5. Hover over the row for a member.
6. Click the **action (<Icon icon="ellipsis" iconType="solid" />)** menu at the end of the row, then click **Make owner**.

## Configure Registry roles

This section shows how to configure roles for Registry members. For more information about Registry roles, including the cabilities of each role, order of precedence, defaults, and more, see [Details about Registry roles](#details-about-registry-roles).

1. Navigate to the W\&B Registry at [https://wandb.ai/registry/](https://wandb.ai/registry/).
2. Select the registry you want to configure.
3. Click the gear icon on the upper right hand corner.
4. Scroll to the **Registry members and roles** section.
5. Within the **Member** field, search for the user or team you want to edit permissions for.
6. In the **Registry role** column, click the user's role.
7. From the dropdown, select the role you want to assign to the user.

## Details about Registry roles

The following sections give more information about Registry roles.

<Note>
  A team's registry role is separate from each member's [team role](/platform/app/settings-page/teams/#team-roles-and-permissions). If you belong to a team that has been added to a registry, W\&B considers the team's assigned registry role, not your role within the team, when it calculates your effective registry role.
</Note>

### Role types

W\&B Registry has the following roles:

* **Restricted Viewer**: Provides read-only access to registry artifact metadata. Restricted Viewers can view artifact details, but they cannot access artifact file contents or create, update, or delete collections, automations, or other registry resources. [This role is available for Dedicated Cloud and Self-Managed Server v0.75.0 or newer](/models/registry/configure_registry#restricted-viewer-role-details).
* **Viewer**: Provides read-only access to registry artifacts with the ability to view collection details, view linked artifact details, download artifacts, and use artifacts with `wandb.Run.use_artifact()` in the W\&B SDK.
* **Member**: Provides permissions to create, update, and delete collections, automations, and other registry resources. Also provides read access to registry artifacts.
* **Admin**: Provides all permissions that a Member has, as well as permissions to manage registry settings and user roles.

See [Role permissions](#role-permissions) for more information about the permissions provided by each role.

### Role permissions

The following table lists each Registry role, along with the permissions provided by each role:

| Permission                                                                                           | Permission Group | Restricted Viewer<br />(Multi-tenant Cloud, by invitation) | Viewer | Member | Admin |
| ---------------------------------------------------------------------------------------------------- | ---------------- | ---------------------------------------------------------- | :----: | :----: | :---: |
| View a collection's details                                                                          | Read             | ✓                                                          |    ✓   |    ✓   |   ✓   |
| View a linked artifact's details                                                                     | Read             | ✓                                                          |    ✓   |    ✓   |   ✓   |
| Usage: Consume an artifact in a registry with use\_artifact                                          | Read             |                                                            |    ✓   |    ✓   |   ✓   |
| Download a linked artifact                                                                           | Read             |                                                            |    ✓   |    ✓   |   ✓   |
| Download files from an artifact's file viewer                                                        | Read             |                                                            |    ✓   |    ✓   |   ✓   |
| Search a registry                                                                                    | Read             | ✓                                                          |    ✓   |    ✓   |   ✓   |
| View a registry's settings and user list                                                             | Read             | ✓                                                          |    ✓   |    ✓   |   ✓   |
| Create a new automation for a collection                                                             | Create           |                                                            |        |    ✓   |   ✓   |
| Turn on Slack notifications for new version being added                                              | Create           |                                                            |        |    ✓   |   ✓   |
| Create a new collection                                                                              | Create           |                                                            |        |    ✓   |   ✓   |
| Create a new registry                                                                                | Create           |                                                            |        |    ✓   |   ✓   |
| Edit collection card (description)                                                                   | Update           |                                                            |        |    ✓   |   ✓   |
| Edit linked artifact description                                                                     | Update           |                                                            |        |    ✓   |   ✓   |
| Add or delete a collection's tag                                                                     | Update           |                                                            |        |    ✓   |   ✓   |
| Add or delete an alias from a linked artifact                                                        | Update           |                                                            |        |    ✓   |   ✓   |
| Add or delete a [protected alias](/models/registry/aliases#protected-aliases) from a linked artifact | Update           |                                                            |        |        |   ✓   |
| Create or delete a [protected alias](/models/registry/aliases#protected-aliases)                     | Update           |                                                            |        |        |   ✓   |
| Link a new artifact                                                                                  | Update           |                                                            |        |    ✓   |   ✓   |
| Edit allowed types list for a registry                                                               | Update           |                                                            |        |    ✓   |   ✓   |
| Edit registry name                                                                                   | Update           |                                                            |        |    ✓   |   ✓   |
| Delete a collection                                                                                  | Delete           |                                                            |        |    ✓   |   ✓   |
| Delete an automation                                                                                 | Delete           |                                                            |        |    ✓   |   ✓   |
| Unlink an artifact from a registry                                                                   | Delete           |                                                            |        |    ✓   |   ✓   |
| Edit accepted artifact types for a registry                                                          | Admin            |                                                            |        |        |   ✓   |
| Change registry visibility (Organization or Restricted)                                              | Admin            |                                                            |        |        |   ✓   |
| Add users to a registry                                                                              | Admin            |                                                            |        |        |   ✓   |
| Assign or change a user's role in a registry                                                         | Admin            |                                                            |        |        |   ✓   |

### Default roles

W\&B automatically assigns a default **registry role** to a user or team when they are added to a registry. The default role is the starting role that appears in the registry's role dropdown. It is not always the user's final, effective role.

The default role depends on the deployment type and the entity type:

| Entity                      | Default registry role<br />(Dedicated Cloud / Self-Managed)                 | Default registry role<br />(Multi-tenant Cloud)            |
| --------------------------- | --------------------------------------------------------------------------- | ---------------------------------------------------------- |
| Team                        | Restricted Viewer (Server v0.75.0+) <br />Viewer (Server v0.74.x and below) | Restricted Viewer                                          |
| User (non admin)            | Restricted Viewer (Server v0.75.0+) <br />Viewer (Server v0.74.x and below) | Restricted Viewer                                          |
| Service account (non admin) | Member<sup><a href="#service_account_footnote">1</a></sup>                  | Member<sup><a href="#service_account_footnote">1</a></sup> |
| Org admin                   | Admin                                                                       | Admin                                                      |

<a id="service_account_footnote">1</a>: Service accounts cannot have **Viewer** or **Restricted Viewer** roles. See [Service account access](#service-account-access) for how a service account's access is determined.

A registry admin can assign or modify roles for users and teams in the registry.
See [Configure user roles in a registry](/models/registry/configure_registry/#configure-registry-roles) for more information.

### Effective and inherited registry roles

A user's *effective registry role* is the role that determines what they can actually do in a registry. The registry's membership list shows this role in light gray next to the role dropdown in the user's row.

<Frame>
  <img src="https://mintcdn.com/wb-21fd5541-automation-updates-docs-2928-docs-2829/xMg6Nx59FYsskFIz/images/registry/role_conflict.png?fit=max&auto=format&n=xMg6Nx59FYsskFIz&q=85&s=6242cb53ab7df0eecfcdc88d15f4bb93" alt="Registry membership list showing the user's effective registry role" width="2286" height="598" data-path="images/registry/role_conflict.png" />
</Frame>

W\&B calculates the effective role by selecting the user's highest applicable role from these sources:

* The default registry role for the organization, if it is not a restricted registry.
* Their assigned role in the registry.
* The role(s) assigned in the registry to any team(s) they are a part of.

If a higher role comes from the default organization registry role or from a team that has been added to the registry, the user inherits that higher role. For example:

* A user with the **Viewer** role in a registry is effectively an **Admin** if they belong to a team that has the **Admin** role in that registry.
* A user with the **Viewer** role in a registry is effectively a **Member** if they belong to a team that has the **Member** role in that registry.
* A user with the **Member** role in a registry is effectively a **Member** even if they belong to a team that has the **Viewer** role in that registry.

In other words, the default or assigned registry role can be lower than the user's effective role.

<Note>
  Service accounts do not inherit elevated registry permissions from their teams. See [Service account access](#service-account-access) for more information.
</Note>

### Service account access

Service accounts are an exception to inherited registry roles. A service account does not inherit elevated registry permissions from its team. For example, if a team has **Admin** access to a registry, service accounts on that team receive only the automatic service account access level, not **Admin** access.

A registry admin can explicitly grant a service account higher access by [adding the service account to the registry with a Member or Admin role](/models/registry/configure_registry/#add-a-user-or-a-team-to-a-registry).

Automatic service account access depends on registry visibility:

* **Organization visibility**: A service account automatically has **Member** access.
* **Restricted visibility**: A service account automatically has **Member** access only if one of its teams has **Member** or **Admin** access to the registry. If all of the service account's teams have **Viewer** or **Restricted Viewer** access, the service account does not receive access automatically.

See [Visibility types](/models/registry/create_registry#visibility-types) for more information about registry visibility types.

### Restricted Viewer role details

The **Restricted Viewer** role is Generally Available (GA). For Dedicated Cloud and Self-Managed, Server v0.75.0 or newer is required.

This role provides read-only access to registry artifacts without the ability to create, update, or delete collections, automations, or other registry resources.

Unlike a **Viewer**, a **Restricted Viewer**:

* Cannot download artifact files or access file contents.
* Cannot use artifacts with `wandb.Run.use_artifact()` in the W\&B SDK.

#### SDK compatibility

<Note>
  **SDK version requirement**

  To use the W\&B SDK to access artifacts as a **Restricted Viewer**, you must use W\&B SDK version 0.19.9 or higher. Otherwise, some SDK commands will result in permission errors.
</Note>

When a **Restricted Viewer** uses the SDK, certain functions are not available or work differently.

The following methods are not available and result in permission errors:

* [`Run.use_artifact()`](/models/ref/python/experiments/run/#method-runuse_artifact)
* [`Artifact.download()`](/models/ref/python/experiments/artifact/#method-artifactdownload)
* [`Artifact.file()`](/models/ref/python/experiments/artifact/#method-artifactfile)
* [`Artifact.files()`](/models/ref/python/experiments/artifact/#method-artifactfiles)

The following methods are limited to artifact metadata:

* [`Artifact.get_entry()`](/models/ref/python/experiments/artifact/#method-artifactget_entry)
* [`Artifact.get_path()`](/models/ref/python/experiments/artifact/#method-artifactget_path)
* [`Artifact.get()`](/models/ref/python/experiments/artifact/#method-artifactget)
* [`Artifact.verify()`](/models/ref/python/experiments/artifact/#method-artifactverify)

### Cross-registry permissions

A user can have different roles in different registries. For example, a user can be a **Restricted Viewer** in Registry A and a **Viewer** in Registry B. In this case:

* The same artifact linked to both registries will have different access levels
* In Registry A, the user is a **Restricted Viewer** and cannot download files or use the artifact
* In Registry B, the user is a **Viewer** and can download files and use the artifact
* In other words, access is determined by the registry in which the artifact is accessed
