Designing Permissions and Security Groups in Azure DevOps
This lesson explains default groups, permission resolution and pipeline resource security.
Learning outcomes
After completing this lesson, you will be able to:
- Describe the default security groups.
- Explain how permissions resolve.
- Identify object-level security settings.
- Explain separation of duties.
Default security groups
Azure DevOps creates groups at two levels. Organization-level groups include Project Collection Administrators, who can do almost anything across an organization, Project Collection Service Accounts and Project Collection Valid Users. Project-level groups are created with each project.
| Group | Purpose |
|---|---|
| Project Administrators | Manage a project, including permissions and settings |
| Build Administrators | Manage build resources and permissions |
| Contributors | Add, change and delete code and work items |
| Readers | View project content |
| Project Valid Users | All members of the project, used for assigning common permissions |
| Release Administrators | Manage release pipelines, if created |
A new team also receives a group, named after the team, and it is a member of Contributors by default. Custom groups can be added. Microsoft Entra groups can be added to any of these groups, so that access follows joiner and leaver processes in Microsoft Entra ID, and this is usually the best approach.
Default groups in Azure DevOps
How permissions are resolved
Each permission has a state, and the effective result depends on the rules below. Users usually belong to several groups, which is why resolving them matters.
-
Explicit Deny
A Deny on a user or any of their groups wins over Allow, with few exceptions.
-
Explicit Allow
If nothing denies it, an Allow from any group grants the permission.
-
Inherited values
An object takes permissions from its parent, if inheritance is on.
-
Not set
With no Allow, access is implicitly denied.
Project Collection Administrators are an exception, because they have permissions that cannot be denied in practice. The security page of an object shows the effective value, and Why traces how it was reached.
The following diagram resolves a user's Contribute permission when one group allows it and another denies it.

Resolving a permission
Object-level security
Most project resources have their own security page, and inheritance lets a team set defaults and tighten them on sensitive objects. The following resources matter most in a delivery design.
- Repositories and branches: Contribute, Force push and Bypass policies.
- Pipelines: who may queue, edit, delete and retain runs. Permissions can be set for all pipelines, or within a pipeline folder.
- Environments: Creator, Reader, User and Administrator roles.
- Service connections: User and Administrator roles, with pipeline permissions.
- Agent pools: Reader, Service Account and Administrator, at organization and project level.
- Variable groups and secure files: Reader, User and Administrator, with pipeline permissions.
- Area paths: who can view or edit work items in a path.
Two separate questions apply to a pipeline resource. Users need a role on the resource to manage it. A pipeline needs permission to use it. A pipeline author with no rights on a service connection cannot authorize a pipeline to use it.
Roles on pipeline resources
Separation of duties
A classic control is that the person who writes code should not alone be able to deploy it to production. Azure DevOps can support this: pipeline authors are Contributors, with no administrator rights on the production environment, and a separate group approves through the environment's Approvals check, with the option preventing someone from approving their own run. Auditing is available under Organization settings > Auditing, and it can be streamed to Azure Monitor Logs. Events are retained for 90 days by default.
Separating authoring from deployment
Tracing a denied user
A user belongs to Contributors, which allows Contribute on a repository, and to a custom Auditors group, which denies Contribute. The user cannot push. Should you add an explicit Allow for the user?
An Allow would not work, since a Deny from a group takes precedence over an Allow. If the user should be able to push, the correct action is to remove them from the Auditors group, or to remove the Deny from the group, if no auditor should be blocked. Adding them to Project Administrators would give far more access than needed, and it may still not override the Deny.
A pipeline author has Contributor rights. Can they authorize a pipeline for a service connection that they have no role on?
Show answer
No. Authorizing needs a role on the resource, separate from pipeline authoring rights.
Exam Tips
Remember for the exam
- Project Collection Administrators have organization-wide control.
- Deny beats Allow, and Not set is effectively denied.
- Add Microsoft Entra groups to Azure DevOps groups.
- Pipeline resources need a user role and pipeline permission.
- Audit events are kept for 90 days unless streamed elsewhere.