ServiceNow Learning 42: Functionality of "run as" in Flow Designer (Interesting to know)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-04-2023 02:59 AM
Hi All,
We have very good feature of run as in Flow Designer. We can use run as feature for running the flow by user who initiates the session or the system user.
1. Run as (system user): This means system runs the flow designer with system user who has all the required access to run the flow.
2. Run as (who initiates the session): This user could be anyone ITIL, no ITIL,admin,ITIL admin or with any role so if you set this you flow might not work for some tables which has role restriction so if you have any issues so you have to set the run as system user.
Problem Statement:
How to run a flow as user and still create a SC task record and display variables in the variable editor.
Helpful article: How to run a flow as user and still create a SC task record and display variables in the variable ed...
Solution Proposed:
- Add the catalog_admin role as role to the flow. See Create a flow with roles.
- Change the flow to Run As "System"
- or modify the above ACL so users without catalog_admin can create [sc_task] records, in this case itil
- alternatively, you can add the role to the SC flow, starting in Paris set the flow to run as user, and add a role (in this case itil) to the flow
- if you're setting your roles on flow, to display variables you will need to add a create & write ACL on the table [sc_item_variables_task] with the required role (in this case itil)
Hope this helps you.
I hope this article helpful. Please mark it as helpful and bookmark if you like it.
Thanks,
Shamma