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 / How to check who ran t...
Power Automate
Answered

How to check who ran the flow

(0) ShareShare
ReportReport
Posted on by 228

Hi,

 

Just today i came into a requirement where i need to check who ran the flow. If the user who ran the flow is not the assigned document owner on a custom field on my doc library then it will send a notification that they do not have permission to run flow.

 

I need to know if there is a way for us to check who run the flow.

Categories:
  • ScottShearer Profile Picture
    25,331 Most Valuable Professional on at

    @karl_oliverio :

    What trigger are you using to start the Flow?

     

  • karl_oliverio Profile Picture
    228 on at

    Hi @ScottShearer  ~ im currently using "For a Selected item" as my trigger

  • Verified answer
    ScottShearer Profile Picture
    25,331 Most Valuable Professional on at

    @karl_oliverio 

    My suggestion is, immediately after your Get file properties action, to compare the column in your SharePoint library against the user who started the Flow.  If they are not the same, exit the Flow (Control terminate action with success) and, optionally, send the email.  The email address, user ID and display name of the user who started to Flow is available from the Selected item trigger in Dynamic properties.

     

    Please let me know if this needs further explanation or a screen shot.

     

     

     

  • karl_oliverio Profile Picture
    228 on at

    Hi @ScottShearer ~ thanks for your help. I was able to track who ran the flow. The field User ID and User email from the action "for a selected item" are fields to determine who triggers the flow.


    @ScottShearer wrote:

    @karl_oliverio 

    My suggestion is, immediately after your Get file properties action, to compare the column in your SharePoint library against the user who started the Flow.  If they are not the same, exit the Flow (Control terminate action with success) and, optionally, send the email.  The email address, user ID and display name of the user who started to Flow is available from the Selected item trigger in Dynamic properties.

     

    Please let me know if this needs further explanation or a screen shot.

     

     

     



    @ScottShearer wrote:

    @karl_oliverio 

    My suggestion is, immediately after your Get file properties action, to compare the column in your SharePoint library against the user who started the Flow.  If they are not the same, exit the Flow (Control terminate action with success) and, optionally, send the email.  The email address, user ID and display name of the user who started to Flow is available from the Selected item trigger in Dynamic properties.

     

    Please let me know if this needs further explanation or a screen shot.

     

     

     


     

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