Forum Discussion
Microsoft 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 published the flow.
We do have an action called "Office 365-users - Get current profile"-something, but it takes the user who published the flow...
Any help will be appreciated!
11 Replies
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.
- DeletedThe 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?The SharePoint item triggers provide the Created By and Modified By properties.