Need to get user logged in the Flow designer "run as system user"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-04-2023 05:54 AM - edited ‎01-04-2023 05:59 AM
I have a flow that is running as system user, but I need to know who trigged the flow and the commands bellows doesn't return the user logged:
- gs.getUserID();
- fd_data.trigger.current.sys_updated_by;
Any tips?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-04-2023 06:32 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-04-2023 10:19 AM
Hi Mike,
New or Update record, but this record is created by system. I thought to get the sys_updated_by field, however didn't work because the record was created by system.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-12-2025 03:38 AM
Not sure I get the issue. You trigger the flow on 'new' or 'updated'. If the system user created the record, it is also the system user that is triggering flow, so you do get the user.
Running the flow as system, will make it possible to do things a user may not be allowed to, while the system is, so the output of the flow is done by the user the flow runs as.
What user are you expecting to see when the record is triggering the flow on creation by the system? There is no other user there.
Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-04-2023 10:59 AM
Hi,
Did you try to set the Flow to run as the user that invoked it?