AZDO.1032 - (Tenant) Restrict creation of global Personal Access Tokens.
Overviewβ
Restrict creation of global Personal Access Tokens (PATs) should be enabled.
Prerequisitesβ
- Your organization must be linked to a Microsoft Entra tenant.
- You must be an Azure DevOps Administrator to configure tenant policies.
Rationaleβ
Global PATs can be used across all accessible organizations. Restricting their creation ensures tokens are confined to a single org, enforcing least privilege and reducing cross-org exposure risk.
Remediation actionβ
Enable the tenant policy to stop creation of global PATs.
- Sign in to your organization (
https://dev.azure.com/{Your_Organization}). - Select Organization settings (gear icon).
- Select Microsoft Entra, locate the "Restrict global personal access token creation" policy.
- Move the toggle to On.
Allowlist and exceptionsβ
- Add Microsoft Entra users or groups to the allowlist to exempt them from the restriction.
- Prefer groups over individual users to avoid identity residency problems.
Existing PATs:
Existing global PATs remain valid until they expire; the policy affects only newly created tokens.
Results:
When enabled, new PATs must be associated with a single Azure DevOps organization. Users not on the allowlist cannot create global tokens.
Related linksβ
Test Metadataβ
| Field | Value |
|---|---|
| Test ID | AZDO.1032 |
| Severity | High |
| Suite | Maester |
| Category | Azure DevOps |
| PowerShell test | Test-AzdoDisableGlobalPATCreation |
| Services | AzureDevOps |
| Learn more | https://learn.microsoft.com/azure/devops/organizations/accounts/manage-pats-with-policies-for-administrators?view=azure-devops#restrict-creation-of-global-pats-tenant-policy |
| Tags | AZDO, AZDO.1032 |
Sourceβ
- Test:
tests/Maester/AzureDevOps/Test.AZDO.1032.ps1 - Documentation:
tests/Maester/AzureDevOps/Test.AZDO.1032.md
