# AZ-401: Project Repository and Team Access Boundaries

Configure existing Azure DevOps project and team membership and GitHub organization Project roles, then verify effective access and safely restore the original assignments.

Author: LearningPathX Editorial Team
Content version: 1.0
Published: 2026-12-04T02:14:35.012899+00:00
HTML: https://learningpathx.com/guide/AZ-401/az-401-project-repository-and-team-access-boundaries.html

## AZ-401: Project Repository and Team Access Boundaries

To configure scoped access in existing Azure DevOps Services projects and teams, add a recognized identity to the intended security group, confirm its team membership, and inspect the permissions it actually receives. For an existing GitHub.com organization Project, a project administrator assigns an eligible collaborator the required Project role. Verify both permitted and prohibited operations using the intended user's identity, then remove only the assignments introduced for the exercise. Membership alone is insufficient evidence: Azure DevOps feature access levels and effective permissions need separate checks, and GitHub Project roles must be assessed separately from repository authorization.

The following worked example uses existing resources and a nonproduction identity. It is an illustrative procedure, with expected outcomes to verify, rather than a report of live invitations or permission changes. It covers Azure DevOps Services and GitHub.com organization-level Projects; Azure DevOps Server and user-owned GitHub Projects have different procedures or conditions.

## Define the project repository and team access boundaries

Assume an existing Azure DevOps project named Delivery, its existing Platform team, an Azure Repos repository approved for this exercise, and an existing GitHub organization Project named Release Coordination. Sam is the example collaborator, using the appropriate account on each platform. GitHub users do not automatically receive Azure Pipelines access; matching names across the platforms are insufficient to establish an authorized identity.

Before changing membership, write an access specification containing the following:

* The precise organization, project, team and repository identifiers, plus the two actual accounts representing Sam.
* The work Sam needs to perform, the permitted scope, and a harmless item or disposable file on which to verify it.
* Sam's existing direct assignments, group-derived access, administrative roles and Azure DevOps access level.
* The GitHub Project's existing base role, Sam's individual and team assignments, and the administrator who can restore them.
* The changes authorized for this exercise and the expected state after cleanup.

For this example, the approved Azure DevOps outcome is ordinary contribution within Delivery and membership in Platform, without project administration. Confirm that the existing Platform security group's actual permissions fit that outcome. Team groups are normally included in Contributors; adding Sam can therefore grant more than access to a team's board. If that inheritance exposes repositories or operations outside the approved scope, stop and resolve the existing group choice with its owner before adding Sam.

On GitHub, the intended outcome is editing Release Coordination without administering collaborators. Repository access is a separate acceptance check. Do not use a Project role assignment as evidence that Sam can read a private repository, push code or merge changes.

## Check the administrator and identity prerequisites

Azure DevOps distinguishes the administrators of a team, project and organization. Adding or removing team members requires a Team Administrator or an appropriate administrative-group member; changing project membership requires Project Administrators membership. Organization user administration uses Project Collection Administrators. In a Microsoft Entra ID-connected organization, inviting new users through team or project administration also depends on the invitation policy. This example uses a recognized existing identity and does not initiate new-user onboarding.

For the GitHub organization Project, use a project administrator. An individual collaborator must already belong to the organization or be an outside collaborator on at least one repository in that organization. If Sam is ineligible, pause the exercise and return the identity decision to the organization owner; do not grant an unrelated repository permission solely to make the Project invitation possible.

Use an administrator account for configuration and Sam's account for verification. Testing only as the administrator can hide overbroad grants or bypass behavior. Keep a separate authorized administrator available throughout cleanup so the exercise cannot remove its own recovery path.

## Add the existing Azure DevOps project and team membership

Use one membership path and record the exact edge added. The project security-group route also supports selecting an existing team group:

1. Open Delivery's Project settings. In the Permissions interface, select the existing Platform team security group, then its Members tab. The documented current-interface variant labels the entry Security instead of Permissions; use the interface actually present.
2. Choose Add, resolve Sam's existing account in the picker, and save. Check the selected account before confirming; a display name alone is an inadequate identity check.
3. Open the selected team's Members list and refresh it. Confirm Sam appears through the intended membership path. For direct team membership, the supported entry is Project settings, Teams, the selected team, then Members; avoid adding the same person through a second route just to make a list look correct.

A refreshed list establishes a configured membership. Next inspect its access consequences. Azure DevOps access levels control portal feature availability; security permissions govern actions at organization, project and object scopes. A permissive group assignment cannot by itself remedy an insufficient feature access level.

For the selected repository and project actions, record the effective permission and the assignments that produced it. Use the permission's Why? information where available to trace inheritance. At the same scope, Deny generally wins over Allow. In an object hierarchy, an explicit child assignment can replace an inherited value for the same identity; applicable assignments from other groups still matter. Not set supplies neither a grant nor a denial and is not proof that an operation is blocked.

Do not change a shared group's permissions to force the expected result. Such a change affects its other members. If Sam's effective access disagrees with the specification, preserve the observation and identify the actual group or object assignment requiring an owner decision.

## Assign the GitHub organization Project role

Keep this change on Release Coordination; do not change the organization's defaults or broaden the Project's base role for one collaborator.

1. Open the Project menu, choose Settings, then Manage access.
2. Inspect the existing base role and collaborator list. Record any route already supplying Sam access.
3. Under Invite collaborators, select the eligible individual Sam or an already approved organization team. Choose Write for this example and select Invite. If Sam already has a collaborator entry, edit its role instead and retain its prior value.
4. Reopen the access list and confirm the intended account or team and role.

Read supports viewing the Project; Write supports viewing and editing it; Admin also permits adding collaborators. Base-role changes have wider reach and do not apply to organization owners or users with individual access in the same way. Therefore, a Write entry alone does not prove Sam lacks higher access through another route.

Treat repository checks as a separate column in the acceptance record. GitHub's Project-access documentation places its explicit repository-permission note in the user-level Project subsection. Do not turn that note into a promise about every organization Project operation or interface. For this organization-level exercise, independently inspect the relevant repository authorization and verify the required operation as Sam.

GitHub Apps also require their own actor analysis. An installation token attributes activity to the app, while an app user access token represents activity on behalf of a user. A successful integration action does not demonstrate that Sam's interactive account has the same access. Keep automation-identity configuration outside this membership exercise.

## Verify allowed and denied operations

The following matrix is the example's acceptance specification, not observed output. Use disposable content in the authorized scope. Record account, resource, operation, time, expected result, actual result and relevant permission evidence for each row. Inspect administrative controls without committing an administrative change merely to test a prohibition.

| Subject and operation | Expected result and required conditions | Evidence to retain |
| --- | --- | --- |
| Sam opens the selected Azure Repos repository | Allowed when its effective Read permission and feature access permit it | Actual account, repository and successful read, plus permission trace |
| Sam makes an ordinary contribution in the approved nonproduction scope | Allowed only when the relevant effective permissions, feature access and applicable controls permit the chosen operation | Disposable change and the exact operation result |
| Sam manages Delivery's project permissions | Denied under the example specification; confirm no other administrative assignment supplies access | Effective administrative permissions and available controls |
| Sam edits a disposable field in Release Coordination | Allowed with effective Project Write access | Actual edit and subsequent restoration |
| Sam adds a GitHub Project collaborator | Denied when Write is the highest applicable role and Sam has no independent administrative authority | Role/base-access inspection and unavailable administrative operation |
| Sam reads a repository intentionally outside the approved access scope | Denied only after independently confirming that repository's authorization excludes Sam | Read attempt in an authorized test context and its actual result; no guessed access from the Project role |

An unexpected allowance is as significant as an unexpected denial. Stop further changes, compare the actual identity and resource with the baseline, and trace other assignments. An unavailable feature can indicate access-level restrictions; a missing item can also reflect the wrong resource or account. Avoid turning every failure into a request for broader permissions.

Repository contribution and protected-branch admission require separate checks. Where GitHub branch protection is available and configured, reviews or status checks can block a merge despite repository write access. Administrative bypass can change the outcome. Use the actual rule and actor when evaluating a denial; this procedure does not configure or weaken branch enforcement.

## Restore only the access changes introduced here

Reverse the recorded membership edge or role edit, preserving prior assignments. In Azure DevOps, remove the direct team or security-group membership added for Sam, then inspect the team and permission traces again. For an inherited member, identify the supplying group instead of assuming that removing a visible row revokes every path. Preserve the team's existing administrators.

On GitHub, use the Project's Manage access list to restore the previous collaborator role or remove the collaborator introduced for the exercise. Restore the disposable Project edit as well. Leave the recorded base role and unrelated team or repository grants intact.

Repeat the matrix against the intended post-cleanup state. Sam may retain access through another group, a Project base role, an individual assignment or an administrative role. That residual access requires an explicit explanation; it does not establish that the direct removal failed. Keep before-and-after evidence so the owner can distinguish restoration of this exercise from a broader offboarding or incident-response task.

## Authoritative Sources

* [About permissions and security groups in Azure DevOps](https://learn.microsoft.com/en-us/azure/devops/organizations/security/about-permissions?view=azure-devops) — feature access, permission states and inheritance.
* [Add users or groups to a team or project](https://learn.microsoft.com/en-us/azure/devops/organizations/security/add-users-team-project?view=azure-devops) — administrator prerequisites, existing membership routes and removal.
* [Managing access to your projects](https://docs.github.com/en/issues/planning-and-tracking-with-projects/managing-your-project/managing-access-to-your-projects) — organization Project eligibility, base roles and collaborator management; repository note is separately under user-level Projects.
* [Build GitHub repositories with Azure Pipelines](https://learn.microsoft.com/en-us/azure/devops/pipelines/repos/github?view=azure-devops) — independent platform identities and repository access.
* [About authentication with a GitHub App](https://docs.github.com/en/apps/creating-github-apps/authenticating-with-a-github-app/about-authentication-with-a-github-app) — app installation and user actor attribution.
* [About protected branches](https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/managing-protected-branches/about-protected-branches) — conditional merge requirements and administrator bypass.

## Related Reading

* Related: [AZ-401: Pull Request Enforcement for Human and Copilot Changes](https://learningpathx.com/guide/az-401/az-401-pull-request-enforcement-for-human-and-copilot-changes.html)
* Related: [AZ-401: GitHub Apps Workflow Tokens and Personal Access Tokens](https://learningpathx.com/guide/az-401/az-401-github-apps-workflow-tokens-and-personal-access-tokens.html)
