'sn_hr_le.admin' role is not available in the "Run with roles" property of Flow Designer

leesha jain
Tera Contributor

'sn_hr_le.admin' role is not available in the "Run with roles" property of Flow Designer in ServiceNow.
We have a catalog item that allowed the addition of users to groups, accompanied by an approval flow. But it dont work for a XYZ group having 'sn_hr_core.basic' role. Upon review, we adjusted the flow properties to run as "User who initiates the session" and added the role 'sn_hr_core.manager', and it works as it was Assignable by for 'sn_hr_core.basic' role.
But now there are some new roles added in that XYZ group like -  sn_hr_le.case_reader and sn_hr_le.case_writer  and these roles Assignable is -'sn_hr_le.admin'. So when we are trying to add it in roles under flow properties, it is not visible to add.
Can anyone please let us know, why it is so or how can we add that role in flow properties.

leeshajain_0-1729677081230.png

 

6 REPLIES 6

michaelj_sherid
ServiceNow Employee
ServiceNow Employee

Hi @leesha jain you will not be able to run as the scoped admin role in the Flow "Run with roles". The best option is to Setup a staging record and use a scheduled job to add the users to the group (typically we see other customers have an approval in the process before the user is added to the staging record.

 

If my answer has helped with your question, please mark my answer as an accepted solution and give a thumbs up.

Regards,

Mike

Hi @michaelj_sherid , is this configureable via a system property or something? How is that field populated? Because I can't see Admin role there as well.

 

Many thanks

@Rahman4 You cannot select the (Scoped) admin roles from that field.

I guess makes sense not to be able to select hr_admin etc but "admin" role? Why is that considered as scoped?