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 / Security for HTTP/API ...
Power Automate
Answered

Security for HTTP/API Trigger of the Flow

(1) ShareShare
ReportReport
Posted on by 115

Hello Everyone.

 

I am creating a flow. As its trigger I took,

When a HTTP Request is received.

 

I was really concerned about the authentication and security for it. 

 

If someone has the link to it, then anyone would be able to call the flow. 

 

Anyone here who knows something about this. I googled but was not able to find anything regarding it. 

 

@Pstork1 

@ScottShearer 

@Expiscornovus 

@abm 

@RezaDorrani 

@v-qiaqi-msft 

@v-yujincui-msft 

@v-liwei-msft 

@v-jefferni 

@v-chengfen-msft 

@v-dezhili-msft 

Categories:
  • wnzn Profile Picture
    168 on at

    Correct, it is a public web service endpoint. Revert to Logic Apps for network restrictions to control who can invoke or use an indirect method (such as Azure Queues or similar) to start your flow.

  • Pstork1 Profile Picture
    69,665 Most Valuable Professional on at

    Yes, anyone can call the flow. But since that is a manual trigger the flow will run in the security context of the user who invokes it.  So the actions in the flow won't be able to do anything that the user calling the flow doesn't have permissions to do.  For example, assume the flow uses Get Items to retrieve items from a list. If the user invoking the flow doesn't have permission to access the list then the flow will error out.

  • wnzn Profile Picture
    168 on at

    Depends on your set-up. If you set it to 'use this connection' then that does not hold true.
    Edit: this does not apply to flows with automated triggers.

  • Pstork1 Profile Picture
    69,665 Most Valuable Professional on at

    Not sure what you mean by "use this connection".  When an HTTP request is received is a manual trigger and uses the session information from whoever invokes the trigger by sending the HTTP request.

  • wnzn Profile Picture
    168 on at

    If you use a manual trigger, you can select "Run only users" and specify which connection should be used (the triggering user's or a specific one). When an HTTP request is received is an automated trigger and always uses the connection specified in the flow definition.

  • Pstork1 Profile Picture
    69,665 Most Valuable Professional on at

    Respectfully, I disagree.  As you can see from the screenshot below the When an HTTP request is received does not include a setting for Run Only users.  Nor is it triggered by an automated event.  It is triggered when an HTTP request is received from a specific user.  So it will use the security context of the person who invokes it, not the connection embedded in the flow.  At least that is my experience.

    image.png

  • Verified answer
    abm abm Profile Picture
    33,004 Most Valuable Professional on at

    Hi @Unknown123 

     

    Yes thats correct. Anyone can run that if you have the endpoint. There is no restriction in my knowledge. You need to custom implement it. You could consider publishing under Azure APIM to add more securities around it. 

     

    Here is a good article which describes about the concerns you raised.

     

    Securing HTTP triggered flow in Power Automate (linkedin.com)

     

    Thanks

  • wnzn Profile Picture
    168 on at

    Equally respectfully, I disagree.

     


    @Pstork1 wrote:

    Respectfully, I disagree.  As you can see from the screenshot below the When an HTTP request is received does not include a setting for Run Only users.  Nor is it triggered by an automated event.  It is triggered when an HTTP request is received from a specific user.  So it will use the security context of the person who invokes it, not the connection embedded in the flow.  At least that is my experience.


    That is quite frankly not true. If you use a 'When a HTTP request is received' trigger, it can be triggered by an anonymous POST call to the URL provided. Send a request to the URL using postman, you'll see it works without a user context and the actions are done using the connection provided in the flow definition. Note that this is NOT the same as the manual trigger you use in for instance child flows or calls from a Power App.

  • Unknown123 Profile Picture
    115 on at

    Thanks everyone @abm @wnzn @Pstork1 , this was quiet helpful. Mostly my posts become really controversial. hehe.

    I have now shifted to scheduled flow instead of When an HTTP Request is received.

    But I am still accepting @abm answer because that was I think I was looking for. 

    @wnzn and @Pstork1 , what are your opinions on the link he has given? 

    Sorry for the late reply. 

    But still thanks everyone. 🙂

  • wnzn Profile Picture
    168 on at

    The link is a good overview of your options. The most secure option is APIM.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 289

#2
11manish Profile Picture

11manish 282 Super User 2026 Season 2

#3
Henil Profile Picture

Henil 119

Last 30 days Overall leaderboard