Restrict Global search for User whose department is Empty

Abc 26
Tera Expert

Hello Experts,

 

I want to restrict the global search for the user whose department is empty.

scenario 1:
Restrict the global search for the user for incident or problems table records whose department is empty and logged IN user country is not "US".

Can we do the scenario using the query business rule.


Please help how to implement the above.

@Ankur Bawiskar 

Regards,

Adi

  

4 REPLIES 4

Ravi Gaurav
Giga Sage
Giga Sage

Hi @Abc 26 

Below thread should work for your case :-

https://www.servicenow.com/community/developer-forum/restrict-records-from-global-search/m-p/2039594

--------------------------------------------------------------------------------------------------------------------------


If you found my response helpful, I would greatly appreciate it if you could mark it as "Accepted Solution" and "Helpful."
Your support not only benefits the community but also encourages me to continue assisting. Thank you so much!

Thanks and Regards
Ravi Gaurav | ServiceNow MVP 2025,2024 | ServiceNow Practice Lead | Solution Architect
CGI
M.Tech in Data Science & AI

 YouTube: https://www.youtube.com/@learnservicenowwithravi
 LinkedIn: https://www.linkedin.com/in/ravi-gaurav-a67542aa/

Hi Ravi,

can we achieve the above scenario with Query Business rule as the user will not notice  user restriction.  

Query BR is on the List view of the table but you need on Global Search correct??

--------------------------------------------------------------------------------------------------------------------------


If you found my response helpful, I would greatly appreciate it if you could mark it as "Accepted Solution" and "Helpful."
Your support not only benefits the community but also encourages me to continue assisting. Thank you so much!

Thanks and Regards
Ravi Gaurav | ServiceNow MVP 2025,2024 | ServiceNow Practice Lead | Solution Architect
CGI
M.Tech in Data Science & AI

 YouTube: https://www.youtube.com/@learnservicenowwithravi
 LinkedIn: https://www.linkedin.com/in/ravi-gaurav-a67542aa/

Hi @Ravi Gaurav ,

I want to restrict them from the list view as well as the "Global search" too.