RBAC and permissions
Reference for Artifact Registry roles and permissions, covering built-in roles, permission actions, scope rules, and pipeline access constraints.
Artifact Registry uses the Harness role-based access control (RBAC) model. Access is controlled by combining a role (what someone can do) with a resource group (which registries they can do it on) and assigning that combination to a principal (a user, user group, or service account) at a specific scope (account, org, or project).
Go to Harness platform RBAC for the full platform-level model. This page covers what is specific to Artifact Registry: built-in roles, the permissions they grant, scope rules that affect pipeline access, and common assignment patterns.
Built-in roles
Artifact Registry ships with three built-in roles. Assign them at the scope where the registry lives.
Viewer
View registry configuration; download (pull) artifacts
Contributor
Everything in Viewer, plus upload (push) artifacts
Admin
Everything in Contributor, plus create and edit registries, delete registries, delete artifacts, and quarantine artifacts
Permissions reference
All Artifact Registry permissions belong to the Artifact Registry resource under the Artifact Management module.
artifact_artregistry_view
View
View registry details, configuration, and artifact lists. Required for all other operations.
artifact_artregistry_edit
Create / Edit
Create a new registry or edit an existing registry's configuration.
artifact_artregistry_delete
Delete Registry
Permanently delete a registry and all its artifacts.
artifact_artregistry_uploadartifact
Upload (push)
Push an artifact or image to the registry.
artifact_artregistry_downloadartifact
Download (pull)
Pull an artifact or image from the registry.
artifact_artregistry_deleteartifact
Delete Artifact
Delete a specific artifact version from the registry.
artifact_artregistry_quarantineartifact
Quarantine
Place an artifact version in quarantine or release it.
Firewall Exceptions permission
The Firewall Exceptions resource has a separate permission, also under the Artifact Management module:
artifact_firewallexceptions_approve
Approve
Approve or reject a request to exempt an artifact from a Dependency Firewall violation.
Go to Manage exceptions for the exception review workflow.
Role-to-permission mapping
View
✓
✓
✓
Download
✓
✓
✓
Upload
✓
✓
Create / Edit registry
✓
Delete registry
✓
Delete artifact
✓
Quarantine artifact
✓
Scope and pipeline access
Scope hierarchy
Registries are created at account, org, or project scope. Permissions are inherited downward; a role assigned at the account scope covers registries at all org and project scopes within it. The reverse is not true: a project-scoped role does not grant access to registries in a parent scope.
Account
All orgs and projects in the account
Org
All projects within the org
Project
That project only
Pipeline access constraints
A pipeline running inside a project can push to and pull from registries in its own project and in parent scopes (org and account). It cannot access registries in sibling projects, even if the executing principal has permissions on those registries.
Registry name uniqueness
Registry identifiers are globally unique across your entire Harness account, regardless of scope. You cannot have two registries named docker-prod at different scopes; the name must be unique account-wide.
Assign roles
Assign a role in the Harness UI:
Go to Account Settings (or Org Settings / Project Settings, depending on the scope where the registry lives).
Select Access Control.
Select the Users, User Groups, or Service Accounts tab.
Find the principal and select Manage Roles.
Select Add, choose the role (Viewer, Contributor, or Admin), and select a resource group.
Save.
For a resource group that covers only specific registries, select Named Resources and add the registry identifiers individually. For broad access, use All Resources of type Artifact Registry.
Service accounts for automation
CI/CD pipelines, the Harness CLI, and automation tools should authenticate using a service account rather than a personal user account.
A service account token does not expire with a user's session and can be scoped to exactly the permissions the pipeline needs.
Recommended setup for a CI pipeline that only pushes artifacts:
Create a service account under Project Settings > Access Control > Service Accounts.
Generate an API key and token for the service account.
Assign the Contributor role scoped to the target registry (or the entire project if the pipeline pushes to multiple registries).
Set the token as a secret in the pipeline (
$HARNESS_API_KEY).
Recommended setup for a read-only deployment pipeline:
Create a separate service account for the deployment stage.
Assign the Viewer role.
Use a resource group that covers only the registries the deployment stage needs to pull from.
Common role assignment patterns
Read-only access for auditors or external consumers
Assign the Viewer role with a resource group that covers all registries at the appropriate scope. The principal can browse artifact lists, view registry configuration, and pull artifacts, but cannot push or modify anything.
CI pipeline: push only
A build pipeline needs to push artifacts but should not be able to modify registry configuration or delete artifacts.
Platform team: registry administration
A platform team manages the registries but individual developers should not be able to delete them.
Dependency Firewall exception approver
A security engineer needs to review and approve exception requests when the Dependency Firewall blocks a package. This requires only the Firewall Exceptions permission, not full Admin on the registry.
Troubleshooting
Next steps
Last updated
Was this helpful?