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

Marcel 6 Reputation points

Need to obtain the list of all tokens in organization.

Used the token to make a call to{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

    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 (more to be added later on).
    You can ask the experts in the dedicated forum over here:

    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

    any workaround

    0 comments No comments

  3. Shaik Abdul Basith 0 Reputation points

    Did anyone found solution for this?

    0 comments No comments