Announcements
Best regards, Valantis
✅ If this helped solve your issue, please Accept as Solution so others can find it quickly. ❤️ If it didn’t fully solve it but was still useful, please click “Yes” on “Was this reply helpful?” or leave a Like :). 🏷️ For follow-ups @Valantis. 📝 https://valantisond365.com/
💼 LinkedIn
▶️ YouTube
Trigger Context vs. Run-Only User
If the flow is manually triggered by a user, the trigger context usually contains the user who started it.
However, if the flow is run by another user on behalf of someone else (e.g., a co-owner or co-creator running the flow manually), the flow’s context may reflect the person who actually triggered the run, not the original intended user.
Run-Only Users and Shared Flows
When flows are shared, the "Run-only user" permissions and connections can affect who the flow sees as the executor.
If a co-creator runs the flow, the flow’s triggerOutputs()?['headers']['x-ms-user-name'] or similar user context may show the co-creator, not the original user.
triggerOutputs()?['headers']['x-ms-user-name']
Using the Wrong User Property
Sometimes flows use dynamic content like "Created By" or "Modified By" from a SharePoint item or other data source, which may not correspond to the current flow runner.
To notify the user who triggered the flow, you should use the trigger’s user context (e.g., triggerOutputs()?['headers']['x-ms-user-name'] or triggerBody()?['user'] depending on the trigger).
triggerBody()?['user']
Delegated vs. App Permissions
If the flow uses connections with delegated permissions, the user context is preserved.
If it uses app-only permissions or service accounts, the flow may run under a different identity.
Possible Fix:
User()
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.
Jump in, show your community spirit, and win prizes!
Expanding mentorship, skilling, and AI innovation
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Valantis 427
Vish WR 316
David_MA 260 Super User 2026 Season 1