Can a user with ITIL roles or Fulfiller users execute a UI Action which calls a flow action

Anubhav24
Mega Sage
Mega Sage

Hi All,

 

I have a user with ITIL roles , my setup is I have a Flow Action which is getting triggered from a UI Action and this UI Action is presented to the itil/fulfiller user on RITM form. Now when I execute this UI Action as an admin it works fine but for itil users / fulfiller users in my case , it looks like that it does not have access to the sn_fd.FlowAPI and it fails to execute the Flow action getting triggered from the UI Action. I get the error of : "Method failed with code 403 : Forbidden username/password combo" is it the right error or the third party system is not behaving properly?

 

Is there a workaround for this scenario?

 

I can not write this action inside a flow as this flow action needs to be called repeatedly for the same record and it is making a call to a third party system to send some data. If I write this flow action inside a flow there will be multiple instances of this flow getting triggered or  may face the error of flow already executing for this record.

 

Can I use some API to set the user as system user and write this inside my UI Action before the flow action is called ? I saw it somewhere but I am not sure about the function call. Also will it be a good practice ?

 

And if we need to assign roles , what are the specific roles to make it work for fulfiller/itil users?

 

Thanks in advance.

 

11 REPLIES 11

SanjivMeher
Kilo Patron
Kilo Patron

In your Flow, set the Run As to System User.

SanjivMeher_0-1746044270932.png

 


Please mark this response as correct or helpful if it assisted you with your question.

Hi @SanjivMeher ,

I am calling my flow action from a UI Action using sn_fd.Flow_api can this be run as a system user or not ? or is there a workaround for this ?

@Anubhav24 

The flow/subflow/action which you are triggering from UI action ensure it's configured as Run as -> System User

This should work for you

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Hi @Ankur Bawiskar How to configure a Flow action to run as a system user , I have only created a flow action and calling it in my script.