
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
Things I've tried to resolve this issue
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: