I fail to access Azure devops from my logic app.

Mellin, Jonas 21 Reputation points
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.
3,322 questions
0 comments No comments
{count} votes

Accepted answer
  1. MayankBargali-MSFT 70,801 Reputation points
    2022-09-14T06:09:37.787+00:00

    @Mellin, Jonas 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

    2 people found this answer helpful.
    0 comments No comments

1 additional answer

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

    Hi @Mellin, Jonas

    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


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.