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!!!

Community Center | Not monitored
{count} votes

Your answer

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