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

Notifications

Announcements

Community site session details

Community site session details

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

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
    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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard