
Announcements
If you have admin access to Azure DevOps and still encounter the 'Unauthorized' error, the issue might be with the request configuration, credentials, or endpoint. Here's how you can debug the issue effectively using a Compose step and isolate the problem:
To identify the root cause, inspect the inputs and outputs of your HTTP request.
Before the HTTP Request:
After the HTTP Request:
outputs('Send_an_HTTP_request_to_Azure_DevOps')?['body']API Endpoint: Ensure the URL is correct.
Headers:
Authorization header is correct:
PAT (Personal Access Token):
Full Access or at least the required scopes (Work Items, Build, etc.).user:PAT) and include it in the Authorization header.Even with admin rights, the issue might relate to API-level permissions or endpoint misconfiguration. Use a condition to log access checks:
Add a Compose action before the HTTP request:
"Attempting HTTP request with URL: {Your_API_URL}"Add a Condition to verify access:
7.1-preview.3).After running the flow:
Let me know if you need help implementing or interpreting these steps!