'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

@Rahman4 This is where we typically see the System user used to execute the flow. 


Regards,

Mike

It seems like the System user uses the global admin role to run. Without adding the scoped application administrator role to admin I cannot grant group membership within a flow if those groups contain scoped roles. 
Docs say that the System user bypasses security rules, but that does not seem to be the case within Flow Designer.