Sub topic 16
Roles, permissions and governance
This chapter assumes you have a DevOps Center project with a pipeline and connected environments, and that you know Git branch protection and Salesforce permission sets. It covers who can do what in a release, and where each control is enforced.
Two layers of control
DevOps Center does not hold all the rules itself. Access is controlled in two places:
- Salesforce: permission sets decide who can open DevOps Center, create projects and work with work items. Org-level profiles and permissions decide what a person can do in each environment.
- Git provider: repository permissions and branch protection decide who can push, who must approve a pull request, and who can merge into a stage branch.
A person needs both. A developer with the right permission set still cannot merge into main if the repository blocks it.
Typical role split
Teams usually separate three duties. Exact permission set names depend on your release, so check Setup for the ones installed with DevOps Center.
| Role | Typical duties | Where limits apply |
|---|---|---|
| Administrator | Creates projects, pipelines and environment connections | DevOps Center permission set, Git admin rights |
| Developer | Creates work items, makes and commits changes, opens pull requests | Work item access, write access to work item branches |
| Release manager | Approves pull requests, promotes work items, watches test results | Merge rights on stage branches, deploy rights in target orgs |
Keep the person who writes a change separate from the person who approves it. Enforce this in Git with required reviewers, because DevOps Center does not replace that check.
Authentication and audit
Each user authenticates to the environments and to the Git provider with their own identity. Deployments and commits therefore show who acted. Avoid shared accounts: they remove this audit trail and make access reviews meaningless.
Production is the strictest stage. Limit who can promote into it, and give only that group deploy rights in the production org.
Common errors
- A user can see a project but cannot act on it. The permission set is assigned, but the Git or org connection is missing or has expired. Reconnect with that user's own credentials.
- A promotion fails although the pull request was approved. The authenticated user lacks deploy permission in the target org.
- Reviews are skipped. Branch protection is not enabled on the stage branches.
Exercise
A developer can create work items and commit changes, but their pull request into the UAT branch will not merge even though tests pass. Name two places to check, one in Salesforce and one in Git.
Show answer
In Git, check branch protection on the UAT branch for a required approving review or merge restriction. In Salesforce, check that the person doing the promotion has the permission set and deploy rights in the UAT org. Either missing control can block the change.