web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id : 1+B0Ha49m+gPsGz0ltCISh
Power Automate - Building Flows
Unanswered

HTTP Request to Azure Dev Ops Always Returns Unautorized

Like (0) ShareShare
ReportReport
Posted on 24 Jun 2024 19:25:20 by 31

Hi I have a flow in which I'm trying to run an API call against Azure Dev Ops and I keep getting a 401 unauthorized response error back even though I know I have access to this. 

 

Documentation referenced: https://learn.microsoft.com/en-us/rest/api/azure/devops/memberentitlementmanagement/user-entitlement-summary/get?view=azure-devops-rest-7.1

 

BriH_0-1719256916153.png

 

Things I've tried to resolve this issue

 

I have the same question (0)
  • Expiscornovus Profile Picture
    32,209 Most Valuable Professional on 24 Jun 2024 at 21:47:48
    Re: HTTP Request to Azure Dev Ops Always Returns Unautorized

    Hi @BriH,

     

    This is a known limitation of this action, not all resources/scopes from the Azure DevOps REST API are allowed to be used in this action. Have a look at the list of scopes in the docs:

    https://learn.microsoft.com/en-us/connectors/visualstudioteamservices/#known-issues-and-limitations

     

    It looks like the one your are using (vso.memberentitlementmanagement) is not listed in the allowed scopes. As a workaround you can use a HTTP action with a personal access token instead (PAT).

     

    3. Action Send an HTTP request to Azure DevOps has a limited set of scopes which control what resources can be accessed by the action and what operations the action is allowed to perform on those resources.

    Scopes:

    • vso.agentpools_manage
    • vso.build_execute
    • vso.chat_manage
    • vso.code_manage
    • vso.code_status
    • vso.connected_server
    • vso.dashboards_manage
    • vso.entitlements
    • vso.extension.data_write
    • vso.extension_manage
    • vso.identity
    • vso.loadtest_write
    • vso.packaging_manage
    • vso.project_manage
    • vso.release_manage
    • vso.test_write
    • vso.work_write

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Telen Wang – Community Spotlight

We are honored to recognize Telen Wang as our August 2025 Community…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Tomac Profile Picture

Tomac 786 Moderator

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 724 Super User 2025 Season 2

#3
stampcoin Profile Picture

stampcoin 290 Super User 2025 Season 2

Last 30 days Overall leaderboard