Showing results for 
Search instead for 
Did you mean: 
Not applicable

SharePoint "For Selected File" HTTP Request Trigger - Get Current User Logged into SharePoint

Good morning,


Is there a way to return the current user who initiates a flow manually from a SharePoint Library or List? I am trying to build a flow that will validate if the user currently logged in is the same as a Person listed in a library column.


Use case screenshot:

1. Document is selected in SP Library.

2. Flow is selected from menu.

3. appropriate flow is selected (in red).

What I would like is for the flow to validate if the user logged in (upper yellow) is the same as the Document Owner specified in the column data (lower yellow)





The flow I have set up so far is as follows:



The problem is that "Get My Profile" only applies to the user who created the flow step (or is otherwise statically assigned within the flow) and is not dynamic to the user who initiates the flow. I played with "Get User Profile" but the I can't find how to capture the user ID at the time of flow initiate and pass that along as a parameter.


I feel like there should be a simple, straightforward solution, but I've spent several days scouring forums and articles and can't find anything.


Does anyone have a solution for this? Thanks in advance!

Level 8

Re: SharePoint "For Selected File" HTTP Request Trigger - Get Current User Logged into Sha

I thought that For Selected File is not available to use so far, isn;t it?

Not applicable

Re: SharePoint "For Selected File" HTTP Request Trigger - Get Current User Logged into Sha

No, it's available and I'm using it successfully in several flows. It's the functionality outlined in red in my screenshots, and is working just fine. It's the part in orange that I'm asking about.

Helpful resources


Microsoft Business Applications Virtual Launch Event

Watch the event on demand for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.


Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 Release Wave 2 Plan

Power Platform 2019 Release Wave 2 Plan

Features releasing from October 2019 through March 2020.


Flow Community User Group Member Badge

Fill out a quick form to claim your user group badge now!


Microsoft Learn

Learn how to build the business apps that you need.


Power Platform World Tour

Find out where you can attend!


Webinars & Video Gallery

Watch & learn from the Flow Community Video Gallery!

Top Kudoed Authors
Users Online
Currently online: 58 members 3,534 guests
Please welcome our newest community members: