title: How to determine if given Azure DevOps PAT token is valid for all accessible organizations?
body: <p>When creating a new personal access token on Azure DevOps, one can select its <code>Organization</code> to be <code>All accessible organizations</code>. How can I programmatically determine if a PAT token (a string) is valid for all accessible organizations, or only for one?</p>
  
  <p>Most relevant Azure DevOps documentation I could find: <a href="https://docs.microsoft.com/en-us/azure/devops/organizations/accounts/use-personal-access-tokens-to-authenticate?view=vsts" rel="nofollow noreferrer">Authenticate access with personal access tokens for Azure DevOps Services and TFS</a>.</p>
  
  <p>Source which might be relevant: <a href="https://github.com/Microsoft/Git-Credential-Manager-for-Windows/blob/71f76428dc1efd48078809e89c7539fe4ae4d851/Microsoft.Alm.Authentication/Src/Token.cs" rel="nofollow noreferrer">Git-Credential-Manager-for-Windows/Microsoft.Alm.Authentication/Src/Token.cs
  </a></p>