error 401 when getting own profile

Vincent FUCHS 1 Reputation point


I generated a PAT to be able to call some Azure Devops APIs, and it was working quite well so far, to fetch a list of repositories from a project, or a file in a repository.

Now, following , I need to retrieve my current user details . However, I get a 401.

I use the exact same config (with Postman for now) that works when fetching a file with this URL for instance :{orgName}/{ProjName}/_apis/git/repositories/{repoName}/items?path=pom.xml&versionDescriptor.versionType=branch&versionDescriptor.version=main&api-version=7.1-preview.1&includeContentMetadata=true

same headers, same basic authentication with the PAT as username... it works to get a file, but not to get my profile, calling


Is there something obvious I am missing in the documentation or in my config ?

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
32,710 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. MayankBargali-MSFT 63,511 Reputation points

    Hi @VincentFUCHS-9136

    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