Process and activity permissions and pipeline identity
Control who can create, view, edit, delete, and run releases, processes, and activities, and choose which identity runs pipelines from a release.
Release Orchestration lets you grant permissions on releases, processes, and activities separately, so you can give a team the ability to author processes without letting it run releases, or let operators run releases without editing the activities inside them. A second setting controls who runs a Harness pipeline when a release reaches a pipeline activity: either the person who started the release or the Release Management service.
Use this topic to set up granular permissions, migrate existing custom roles, and decide how pipelines authenticate when a release runs them.
What you will learn from this topic
By the end of this topic, you will be able to:
How to grant Create, View, Edit, Delete, and Execute permissions for releases, activities, and processes.
How to find the required permissions by action for a release or a process, and understand the activity execute permission validation that applies to the release initiator.
How to migrate existing custom roles that have Releases permissions to the new permissions.
How to choose the pipeline identity that runs a pipeline activity, either the release initiator or only the Release Management service.
Troubleshoot a release or pipeline execution that fails because of permissions.
Before you begin
Before you configure permissions for Release Orchestration, make sure you have the following:
Access Control permissions: Permission to create and edit roles and role bindings at the scope you manage. Go to Permissions reference to review how Harness permissions work.
Release Orchestration concepts: Understanding of processes, activities, and releases. Go to Key concepts to review them.
Permissions for releases, activities, and processes
In Access Control, a role has a Release Management section with one row for each of the following resources: Releases, Activities, and Processes. Each row has the following permissions: Create, View, Edit, Delete, and Execute.

Before process and activity permissions, this section included permissions for Releases only, which also applied to processes and activities. With the new permissions, you can grant access to each resource independently.
The following rules apply to the permissions:
Anyone with View on Releases automatically gets View on Activities and Processes. You must grant every other permission explicitly.
Other areas of Release Management, such as reports and webhooks, continue to use the Releases permissions.
Enabling the feature does not give new access to roles that never had Releases permissions.
Required permissions by action
The permissions you need depend on what you start. Use the following table to decide which permissions to grant.
Start a release
Execute on Releases, Processes, and Activities
Run a process directly
Execute on Processes and Activities
Author a process
Create, Edit, and Delete on Processes, as needed
Author an activity
Create, Edit, and Delete on Activities, as needed
Activity execute permission validation
Harness checks the Execute permission on Activities for the person who started the release (the initiator), not for the person who performs a later action on the release. This behavior has the following effects:
An operator who retries a failed step needs Execute on Releases and Processes, but the initiator must still have Execute on Activities.
A subprocess or a nested process run uses the initiator of the parent release.
Migrate existing custom roles
If you have custom roles with Releases permissions, Harness can automatically add the corresponding Processes and Activities permissions to those roles, so they continue to work with the new permissions.
The migration behaves as follows:
It adds a matching permission to a custom role only when the role already has the corresponding Releases permission.
It does not change Harness-managed roles.
It runs once for your account, in the background, after Harness rolls out the service version that includes this feature. You do not need to start it.
Perform the following steps to verify that your custom roles were migrated:
Pipeline identity
When a release runs a pipeline activity, Harness must decide which identity starts the pipeline. A project default setting controls this choice.
To find the setting, go to Project Settings -> Default Settings and open the Release Management group. The setting is Use Service Principal for Pipeline Authentication. You can set it at the account, organization, or project scope. A change is not applied immediately. Wait about 2 minutes after you save it before you start a release that depends on it.

Identity modes
The following modes control which identity runs a pipeline activity.
User and service
Use Service Principal for Pipeline Authentication is off
The Release Management service starts the pipeline on behalf of the initiator. The initiator must have Execute permission on the pipeline.
Service only
Use Service Principal for Pipeline Authentication is on
Only the Release Management service identity is used. Harness does not check Execute permission on the pipeline.
In the legacy behavior, the service runs the pipeline without forwarding a user identity, and Harness still checks the pipeline Execute permission.
If Harness cannot read the setting, it keeps the safer behavior and still checks the pipeline Execute permission.
Permissions by combination
Use the following table to see what the initiator needs for each combination of settings.
On
User and service
Execute on Activities and Execute on the pipeline
On
Service only
Execute on Activities only
Off
Service only
Execute on Activities is not enforced as a separate permission, because the Releases permissions apply. Harness does not check Execute on the pipeline. Use this combination only when that is acceptable for your account.
Example scenarios
The following scenarios show how the permissions apply to common roles.
Process author only: Grant Create, View, Edit, and Delete on Processes. They can build and change processes but cannot run them, because they lack Execute.
Activity author only: Grant Create, View, Edit, and Delete on Activities. They can maintain activities in the Activity Store but cannot run releases.
Operator who retries: Grant Execute on Releases and Processes. The operator can retry steps, but the release runs only if the initiator has Execute on Activities.
Pipelines show the human: Keep Use Service Principal for Pipeline Authentication off. The pipeline execution record shows the initiator, and the initiator needs pipeline Execute permission.
Pipelines run as the service: Turn on Use Service Principal for Pipeline Authentication. The pipeline runs as the Release Management service, and the initiator does not need pipeline Execute permission.
Subprocesses: A subprocess uses the initiator of the parent release, so you do not grant separate permissions for nested runs.
Troubleshooting
Next steps
Executing a release: Start a release and follow its execution.
Governance of a release - OPA policy: Enforce governance rules on releases and processes with OPA policies.
Key concepts: Review releases, processes, and activities.
Last updated
Was this helpful?