Is it possible to run a FLOW as a specific user?

Suggy
Giga Sage

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.

4 REPLIES 4

Mark Roethof
Tera Patron
Tera Patron

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

LinkedIn

Sandeep Rajput
Tera Patron
Tera Patron

@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.

Hi Sandeep, how to call it in a flow?

Ravi Chandra_K
Kilo Patron
Kilo Patron

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.