Skip to main content
Version: 3.0.0-preview

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.

  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.

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.

Test Metadata​

FieldValue
Test IDAZDO.1032
SeverityHigh
SuiteMaester
CategoryAzure DevOps
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
TagsAZDO, AZDO.1032

Source​