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.

Is it possible to restrict an indexed search source(ai search source) by role?

siddhi sawant
Tera Contributor

Hi Everyone,

Global Search returns results only if the user has the correct ACL permissions, but I want to confirm whether index search sources (ais_search_source) themselves can be restricted by role.

Any guidance or best practices would be appreciated!

Thank you.

siddhisawant_0-1763475710932.png

 

3 REPLIES 3

rpriyadarshy
Giga Guru

Please quote your Problem Statement/Use Case then Solution Mapping or Best Practice can be  suggested?

 

Regards

RP

Use Case / Problem Statement :

External users currently have access to 4 Catalog Items.
Because these items are visible to them, they also appear in Global Search results.
Any cases raised from these Catalog Items also become visible in search for the external user.

I want to confirm whether search sources (ais_search_source) can be restricted by (snc_external)role, so that external users do not search Catalog Items at all, even if those items are visible on the portal.

Is this restriction possible at the search-source level, or can it only be controlled through ACLs?

qprinsloo
Mega Sage

Catalog items and knowledge articles should instead each be restricted using user criteria. AI search will then honor those restrictions. Just because something isn't being indexed and then presented in search results doesn't mean its not accessible. So it is therefore best practice to instead manage what search results are displayed AND who can access items using user criteria on the items themselves. Set the appropriate user criteria on your 4 catalog items and then AI search will respect this. The items won't show in search results for users who don't have the role set in your user criteria and then in turn will be displayed for those who do.