What is the user access right required to get PAT from Azure DevOps through API?

Punith V C (MS/EMT2-ETAS-VOS) 0 Reputation points
2024-03-21T05:26:26.0966667+00:00

I tried to get PAT from Azure DevOps using the API https://dev.azure.com/{organization}/_apis/tokenadministration/accesstokens , but getting 401 unauthorized error.

I am passing username and password as HttpBasicAuth in header.

Do we need any special user access rights to hit this API?

How to fix this? Please help!!!

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
39,708 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.