Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

show list of active users apart from logged in user

Somasekhar6
Tera Contributor

Hi team, I have one  Reference field on catalog  form labeled as Approver which refers to sys_user table it's show the all active users . it's showing logged in user as well in that approver  field . I want to show All users apart from logged in user in Approval field. How can I achieve that.

 

Thanks for your Time and support.

 

6 REPLIES 6

Utpal Dutta
Tera Guru
Tera Guru

Hi there,

I found an article here which might help you. Please take a look and let me know if you need any more help.

 

If my answer is helpful then please mark it correct!

 

Thanks,

Utpal

Hasan6
ServiceNow Employee
ServiceNow Employee

Hi Somasekhar6,

I think you should be taking this via client script rather than reference qualifier. But a reference qualifier is still possible with this:

Hasan6_0-1700492379342.png

active=true^user_name!=javascript:gs.getUserName()^EQ

 

Best

Hasan