Logic App Unauthorized to Send HTTPS request to DevOps

Andre 45 Reputation points
2023-07-06T19:10:04.28+00:00

I am trying to setup a recurring logic app that gets a snapshot of our DevOps wiki and saves it into our Storage Container. When I trigger the Logic app to run it fails when trying to send an HTTP Request to the Azure DevOps API.

The error is...

{
  "status": 401,
  "message": "TF400813: The user 'aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa' is not authorized to access this resource.\r\nAzure DevOps ActivityId: 21840274-6bb7-4422-a630-286ead7d9440\r\nDetails: {\"$id\":\"1\",\"innerException\":null,\"message\":\"TF400813: The user 'aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa' is not authorized to access this resource.\",\"typeName\":\"Microsoft.TeamFoundation.Framework.Server.UnauthorizedRequestException, Microsoft.TeamFoundation.Framework.Server\",\"typeKey\":\"UnauthorizedRequestException\",\"errorCode\":0,\"eventId\":3000}\r\nclientRequestId: 1b08f899-0332-4658-9387-73e9762a7f03",
  "error": {
    "message": "TF400813: The user 'aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa' is not authorized to access this resource.\r\nAzure DevOps ActivityId: 21840274-6bb7-4422-a630-286ead7d9440\r\nDetails: {\"$id\":\"1\",\"innerException\":null,\"message\":\"TF400813: The user 'aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa' is not authorized to access this resource.\",\"typeName\":\"Microsoft.TeamFoundation.Framework.Server.UnauthorizedRequestException, Microsoft.TeamFoundation.Framework.Server\",\"typeKey\":\"UnauthorizedRequestException\",\"errorCode\":0,\"eventId\":3000}"
  },
  "source": "vsts-eus2.azconn-eus2-004.p.azurewebsites.net"
}

I feeel like I have everything setup correctly. The basic auth in the header is the PAT in base64. Any ideas?

User's image

User's image

send an http req to azure devops step

Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
{count} vote

Answer accepted by question author
  1. Pramod Valavala 20,656 Reputation points Microsoft Employee Moderator
    2023-07-06T20:09:41.8966667+00:00

    UPDATE: There is a limitation in the connector as mentioned in the docs for the Send an HTTP request to Azure DevOps action which prevents it from working with the Wiki APIs.

    @Andre Could you confirm if the user, for whom you've created the person access token, can access the wiki?

    Instead, you should directly use the HTTP Action if you would like to use a PAT instead of the connector. If so, make sure the user for whom you've created the PAT for has access to the wiki.

    If you are using a different account for the logic app, check the wiki permissions to ensure this user has access.


0 additional answers

Sort by: Most 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.