Is it possible to run a FLOW as a specific user?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-23-2024 06:58 AM
Is it possible to run a FLOW as a specific user instead of OOB methods which is
Run as (system user)
Run as (who initiates the session)
My use case is - Based on a certain condition, I want certain set of records to be udpated by a specific user and other set of records to be updated by another specific user. This way it should also reflect that user name in AUDIT history.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-23-2024 09:12 AM - edited 06-23-2024 09:14 AM
Hi there,
I do understand your use case, and I kinda see value in it to do so, though... just not possible in a normal way.
You could think of weird workarounds like create a Scheduled Job from your flow which has a specific Run as and executes the desired creation/update, though that's more a weird workaround and creating technical depth.
Kind regards,
Mark Roethof
Independent ServiceNow Consultant
10x ServiceNow MVP
---
~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-23-2024 10:30 AM
@Suggy See if you can use GlideImpersonate in a custom flow action https://developer.servicenow.com/dev.do#!/reference/api/washingtondc/server_legacy/GlideImpersonateA... and impersonate the specific user.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2024 09:30 PM
Hi Sandeep, how to call it in a flow?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2024 09:36 PM
Hello @Suggy
Here's workaround that comes to my mind
You can try calling the flow from Script (any UI action script).
The script can contain the impersonation part followed by calling the flow part.
Please mark this answer as helpful and correct if helped
Kind Regards,
Ravi Chandra.