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 / Prevent non-uploader o...
Power Automate
Answered

Prevent non-uploader of starting a workflow

(0) ShareShare
ReportReport
Posted on by 427

Hello,

 

I was wondering if the following requirement is possible. I have a Sharepoint Document Library where users can upload their documents and submit it for approval. However it seems that if user A uploads a document, user B can press on the button to start the workflow. 

 

I was thinking of implementing the following:

DJanssen_1-1702566981664.png

After the get File Properties action that comes after the trigger I want to create a condition that checks if the CreatedBy Email with a field that could determine which user triggered the flow. Does somebody know which action to use?

 

But ideally I would like to catch this behaviour in the Sharepoint Document Library. Is there any way to do this outside of the Power Automate workflow?

 

Thanks in advance 🙂 

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

    This wouldn't be outside the flow, but you could try adding a trigger condition to the flow trigger that prevents it from firing if the person triggering the flow isn't the author.  the trigger condition would look something like this

    @equals(triggerOutputs()['headers']['x-ms-user-email-encoded'], 'triggerBody()['Editor']['Email']')
  • DJanssen Profile Picture
    427 on at

    Hi @Pstork1 ,

    Thanks for the reply this is nice food for thoughts! Do you perhaps also know if it's possible to compare those values in the if condition? I could then notify the user who clicked on the button that this document was not meant to send for him/her. 

    I'll discuss with my client what is preferred; a non responsive button or a notification. 

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

    Yes, you should be able to do that in a condition action inside the flow.  Its just comparing two values available in the trigger.

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 355

#2
11manish Profile Picture

11manish 336 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 308

Last 30 days Overall leaderboard