Forum Discussion
Anonymous
Jun 23, 2017Microsoft Flow - Get executing user
Hi, We are trying to use Microsoft Flow for different scenarios - and we came across the need to get "current user" - meaning the user, who starts the flow manually - and not the user, who publis...
Jun 23, 2017
The user who starts a flow is not known to the flow service unless the trigger provides it.
You mention manually starting a trigger. Assuming that means a flow button, you can get the User email and User name properties from the "Manually Trigger a Flow" trigger. When displaying the dynamic content, scroll to the bottom of the list for the trigger.
- AnonymousJun 24, 2017The specific case is when a user manually starts a flow tied to a SharePoint List Item. But as you said, the options lies in the trigger itself. The Flow buttons, approval and others due offer the executing user, but SharePoint OnSelectedItem triggers appearently doesn't.
Any idea to work around it?- Jun 27, 2017
The SharePoint item triggers provide the Created By and Modified By properties.
- AnonymousJun 28, 2017
Hi Poul,
Well - that does reflect who originally created or modified the ListItem (or document) - not the user, who selects a Listitem or document in SharePoint and choosing a flow to start manually, like this: