Skip to content
3.0 preview2.3.0 stable

These docs describe the preview. Pick the version you run and every page marks what it doesn't have yet. Get the preview →
Maester 2.x docs (archived) →

Sponsor

(Tenant) Restrict creation of global Personal Access Tokens

AZDO.1032HighAzure DevOpsSecurity policiesPreview 3.0

Part of Maester · Azure DevOps · Security policies · All checks

Run this check
Invoke-Maester -TestId AZDO.1032

Restrict creation of global Personal Access Tokens (PATs) should be enabled.

  • Your organization must be linked to a Microsoft Entra tenant.
  • You must be an Azure DevOps Administrator to configure tenant policies.

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.

Enable the tenant policy to stop creation of global PATs.

  1. Sign in to your organization (https://dev.azure.com/{Your_Organization}).
  2. Select Organization settings (gear icon).
  3. Select Microsoft Entra, locate the “Restrict global personal access token creation” policy.
  4. Move the toggle to On.
  • 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.

Every attribute of this check
FieldValue
Test IDAZDO.1032
SeverityHigh
SuiteMaester
ProductAzure DevOps
FeatureSecurity policies
AreaAuthentication
Resource typeTenant
User impactLow
Implementation costLow
MITRE ATT&CKT1528 Steal Application Access Token, T1550.001 Application Access Token
Supports controlsnist-800-53-r5:IA-5
PowerShell testTest-AzdoDisableGlobalPATCreation
ServicesAzureDevOps
Learn morehttps://learn.microsoft.com/azure/devops/organizations/accounts/manage-pats-with-policies-for-administrators?view=azure-devops#restrict-creation-of-global-pats-tenant-policy