Azure DevOps PAT API to be able to list all tokens in organization

Marcel 6 Reputation points
2022-04-07T08:03:55.057+00:00

Need to obtain the list of all tokens in organization.

Used the token to make a call to https://vssps.dev.azure.com/{organization}/_apis/tokens/pats?api-version=6.1-preview.1

My permission in DevOps are set as the Collection Administrator.

Received response was:

{“$id”:“1”,“innerException”:null,“message”:“The requested operation is not allowed.”,“typeName”:“Microsoft.TeamFoundation.Framework.Server.InvalidAccessException, Microsoft.TeamFoundation.Framework.Server”,“typeKey”:“InvalidAccessException”,“errorCode”:0,“eventId”:3000}

Is there some lack of permissions or do I need to set up something else to get list of tokens in organization?

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
37,103 questions
0 comments No comments
{count} vote

3 answers

Sort by: Most helpful
  1. MayankBargali-MSFT 69,926 Reputation points
    2022-04-07T08:56:51.06+00:00

    Hi @Marcel

    Welcome to Microsoft Q&A! Thanks for posting the question.

    DevOps is currently not supported in the Q&A forums, the supported products are listed over here https://learn.microsoft.com/en-us/answers/products (more to be added later on).
    You can ask the experts in the dedicated forum over here:
    https://stackoverflow.com/questions/tagged/devops
    https://developercommunity.visualstudio.com/spaces/21/index.html

    Please 'Accept as answer' and ‘Upvote’ if it helped so that it can help others in the community looking for help on similar topics.

    0 comments No comments

  2. Radhika Pather 1 Reputation point
    2022-08-26T09:15:29.463+00:00

    any workaround

    0 comments No comments

  3. Shaik Abdul Basith 0 Reputation points
    2023-08-01T14:24:18.8766667+00:00

    Did anyone found solution for this?

    0 comments No comments