Skip to content

TF30063: You are not authorized to access (401) Unauthorized. #1996

Answered by MrHinsh
Stischu asked this question in Q&A
Discussion options

You must be logged in to vote

The (401) Unauthorized error is coming from the server. This is not something we can control.

Here are the reasons that you would get a 401 from a PAT:

  1. PAT is not "full access" - full access is required by the Object Model.
  2. PAT is invalid or has expired - if it's in the wild, it will be auto expired
  3. PAT are disabled/restricted on your environment
  4. Something is wrong with your account or the org.

If none of those things are true then you may need to raise a support request with Microsoft to resolve the issue with your account!

Things to try:

  • Test a token from a different user
  • Test a token with a different org.

Replies: 1 comment 19 replies

Comment options

You must be logged in to vote
19 replies
@MrHinsh
Comment options

@MrHinsh
Comment options

@NotAwar
Comment options

@NotAwar
Comment options

@MrHinsh
Comment options

Answer selected by MrHinsh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
4 participants