Suddenly all Azure DevOps APIs giving 401 error

Copper Contributor

Hello team,

 

Suddenly all Azure DevOps APIs are throwing 401 Unauthorized errors. Please do needful.

It is working fine with old organizations. It is not working which organizations are created after 4th February 2022. 

 

Here is the repro steps:

1) Create Azure DevOps Application using vso.graph vso.work_full scopes.

2) Try to get projects and other information using rest API.

Here is the project API: https://docs.microsoft.com/en-us/rest/api/azure/devops/core/projects/list?view=azure-devops-rest-6.0

 

Here is the response: 

heenachauhan_0-1644043324265.png

 

1 Reply

Hello team, Now this is fixed. The issue is in new organization the third party OAuth is disabled.

 

heenachauhan_0-1644055928437.png

To access any data need to On the Third party access via OAuth.

 

After that it is working fine.