how to filter opened_by belongs to a specific group

tshk
Giga Contributor

On filter condition builder, Is there a way i can extract a list of users who belongs to a specific group?

I want to extract a list of users from user based on their group and use it in the workflow if activity. I'm doing something like this below but no luck - I'm new to scripting.

find_real_file.png

1 ACCEPTED SOLUTION

sergiu_panaite
ServiceNow Employee
ServiceNow Employee

There is a scriptable class "GlideUserGroup" that has a method "getMembers" but you will still need a script include to get users Names rather than sys_id's. So one way or the other, still via a script include is the easiest way. Plus a script include can be used in other cases as well.


View solution in original post

7 REPLIES 7

sergiu_panaite
ServiceNow Employee
ServiceNow Employee

There is a scriptable class "GlideUserGroup" that has a method "getMembers" but you will still need a script include to get users Names rather than sys_id's. So one way or the other, still via a script include is the easiest way. Plus a script include can be used in other cases as well.


Got it Sergui, thanks for the info


sergiu_panaite
ServiceNow Employee
ServiceNow Employee

Can you mark my answer correct if it helped you solve the problem?