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

(Organization) Restrict Personal Access Token creation

AZDO.1037HighAzure DevOpsSecurity policiesPreview 3.0

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

Run this check
Invoke-Maester -TestId AZDO.1037

Personal Access Token creation should be restricted at the organization level.

Rationale: Restricting PAT creation reduces the risk of long-lived credentials being used to access your Azure DevOps organization. Existing personal access tokens remain valid until expiration when the policy is enabled.

Enable the policy to restrict Personal Access Token creation.

  1. Sign in to your organization.
  2. Choose Organization settings.
  3. Select Policies, locate the “Restrict personal access token (PAT) creation” policy and toggle it to on.

Results: With the policy enabled, users cannot create new Personal Access Tokens unless explicitly allowed through the allow list.

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