I fail to access Azure devops from my logic app.

Anonymous
2022-09-13T13:40:52.687+00:00

I have an extremely basic logic app that ONLY tries to list all the projects (one) in my own dummy organization (dev.azure.com/jonasmellin).
240614-image.png

I have also created a connection between logic apps and azure devops, as can be seen in the authorization in Azure devops: 240585-image.png

When I execute the logic app trying to obtain the list of projects, I get a 401.

"error": {
"message": "TF400813: The user 'aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa' is not authorized to access this resource.\r\nAzure DevOps ActivityId: \

Azure Logic Apps
Azure Logic Apps

An Azure service that automates the access and use of data across clouds without writing code.

0 comments No comments

Answer accepted by question author
MayankBargali-MSFT 71,021 Reputation points Moderator
2022-09-14T06:09:37.787+00:00

@Anonymous Please navigate to your project setting and under polices please make sure that the Third-party application access via OAuth is enabled. As this could be the other reason you will get the 401 error if the user has the right permission, and your organization doesn't restrict it.

240891-image.png

Was this answer helpful?

2 people found this answer helpful.
0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Bruno Lucas 4,516 Reputation points
    2022-09-14T05:34:46.96+00:00

    Hi @Anonymous

    What permissions the user you used to sign in the Devops connector has in Azure Devops?

    Did you see this windows when you signed in the Devops connector?:

    240845-image.png

    I notice your connection seems to have lost something:
    240807-image.png

    If you have high permissions in the Devops organization and click accept, the warning mark should go away and that should work

    Was this answer helpful?


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.