How to filter users based on a specific role?

nthumma
Giga Guru

I have user reference field and i want to filter the users with certain role.

I was trying to use   Advanced reference qualifier Reference Qualifiers - ServiceNow Wiki from this article   but it`s not working

javascript:"sys_idIN"+getRoledUsers("IN","itil_admin").join(",")



Capture.JPG

Mine is scoped Application with Fuji.

Thanks in advance

4 REPLIES 4

bernyalvarado
Mega Sage

Hi, I believe you have a period at the end of your Reference qual. Try changing it without the period:



javascript:"sys_idIN"+getRoledUsers("IN","itil_admin").join(",")


It shall make the trick! Have a good one.



Thanks,


Berny


Thanks man, you helped me out.

 

Hey nthumma, Please mark this answer correct.

You're welcome @Utpal Dutta ! 🙂

bernyalvarado
Mega Sage

Hi, do you believe you mark this response as correct so that we can close this thread?

Thanks,

Berny