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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Send an HTTP request t...
Power Automate
Answered

Send an HTTP request to Azure DevOps, User Entitlements - Add. TF400813: The user is not authorized to access this resource.

(0) ShareShare
ReportReport
Posted on by 14

Hi Community,

 

Currently testing a requirement to automate Azure DevOps project creation with Microsoft Forms and Approvals.

 

FlowFlowCreate DevOps ProjectCreate DevOps Project

 

Built a simple test flow, which collects form response and creates a DevOps project with the details. Creating the project works fine with the DevOps HTTP Connector. When attempting to add users to the Organization, assign licenses and permission the flow fails with the following error.

 

TF400813: The user is not authorized to access this resource.
Azure DevOps ActivityId: a9b72cc1-5fc0-4e96-8b1e-aa2ecfb08a25
Details: {"$id":"1","innerException":null,"message":"TF400813: The user is not authorized to access this resource. ","typeName":"Microsoft.TeamFoundation.Framework.Server.InvalidIdentityException, Microsoft.TeamFoundation.Framework.Server","typeKey":"InvalidIdentityException","errorCode":0,"eventId":3000}
clientRequestId: bf5e8e96-0b36-4ebb-88a2-2f2aa7cfd748

 

Add UsersAdd Users

 

I can perform all the actions manually from the DevOps portal with no issue. I have also enabled Third Party Application Access via OAuth.
User Entitlements - Add - REST API (Azure DevOps Member Entitlement Management) | Microsoft Learn

 

I find it strange that I can create a project, but not add any users. Any suggestions would be highly appreciated!


Categories:
I have the same question (0)
  • Verified answer
    v-xiaochen-msft Profile Picture
    Microsoft Employee on at

    Hi @JustLearning ,

     

    At my knowledge, not all apis are available in this out of box action.

    So I suggest you create a pat in azure devops and use http action in flow to call the api.

     

    vxiaochenmsft_0-1667445254471.png

     

    Best Regards,

    Wearsky

  • JustLearning Profile Picture
    14 on at

    Hi @v-xiaochen-msft,

     

    Thank you for this. I originally attempted this method, but was denied by the organizations Azure AD Conditional Access Policies.

     

    After negotiating with security I can confirm that PAT and HTTP action works like a charm.

     

    Sincerely appreciate your response!

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 1,027

#2
Valantis Profile Picture

Valantis 815

#3
Haque Profile Picture

Haque 630

Last 30 days Overall leaderboard