Run as a specific user for a 'Daily' triggered flow in flow designer

Minso2
Kilo Expert

We are having a flow in Flow Designer which needs to be run 'Daily'. We gave the trigger condition as 'Daily'.

This flow is used to fetch data from a third party tool.

And we would want this to be 'Run As' a specific user which we have created in the user table.

But the only option I am finding is 'Run As' - User who initiates the session.

 

Like how we have an option in 'Scheduled Data Import' to select the specific user.

Is the same possible in Flow Designer ?

 

1 ACCEPTED SOLUTION

venkatachinthag
Giga Contributor

Hi,

 

In Flow designer if you choose the Trigger as Daily, Weekly, Monthly and activated,there will be a scheduled job created automatically in the back end with name starting 'Trigger:<sys_id of flow>'.

 

So you can simply create the flow from Flow designer as you want.

And then go to Scheduled jobs and update 'Run As' field.

 

 

Thank you

Venkat

 

 

View solution in original post

14 REPLIES 14

Hitoshi Ozawa
Giga Sage
Giga Sage

Just for information, in the Paris release, it is now possible to specify roles to run the flow.

Create a flow with rolesCreate flows and subflows that run with specific roles. Assigning roles enables you to create user-initiated flows that run with their own roles rather than the user's roles.

https://docs.servicenow.com/bundle/paris-servicenow-platform/page/administer/flow-designer/task/crea...

venkatachinthag
Giga Contributor

Hi,

 

In Flow designer if you choose the Trigger as Daily, Weekly, Monthly and activated,there will be a scheduled job created automatically in the back end with name starting 'Trigger:<sys_id of flow>'.

 

So you can simply create the flow from Flow designer as you want.

And then go to Scheduled jobs and update 'Run As' field.

 

 

Thank you

Venkat

 

 

Thank you for this information Venkat! 

Ronald Martin1
Tera Contributor

I just tried to create a scheduled flow and it does indeed appear in the list of scheduled jobs.  And as mentionned with the name: Trigger:ed0fa8620752201056c7fa7f7c1ed0b1

However, this is quite a meaningless name when I am monitoring the upcoming scheduled jobs.  Is there a way around this to show the flow name instead?

Joey Alain1
Tera Contributor

Old thread, but just adding here in case others read.

 

An updated answer here until we have a way to specify the user we want the flow to run as is to impersonate the desired user, from within your flow. If you don't have a built in action from a spoke to do that then you can build one yourself and reuse that. Once impersonated, every triggered sub-flow, action, or just flow step from that point forward will be under the impersonation of that user.