AI Search for unauthenticated users

Oleksandra Guzo
Tera Contributor

We have a custom portal and would like to enable AI search. The portal will be accessed by both logged in and unauthenticated users. AI Search works fine for logged in users, but not for guests (search field does not display any suggestions). Has anyone had a similar requirement and implemented this?

3 REPLIES 3

Justin Wood
ServiceNow Employee
ServiceNow Employee

We had a similar use case and were able to solve it with additional table level ACLs.  AI search is going to honor the table level ACLs in the system.  If you want unauthenticate users to be able to see the suggestions, you need to add public read ACLs that match your search sources.  Refer to this article for details on the ACL setup:  Allow Public Users to View a Single Column on a Table Using ACL 

SaurabhGidwani
Tera Contributor

Hi @Justin Wood  I have the same problem statement, Which system table are you referring here to?
@Oleksandra Guzo  were you able to solve the problem

Justin Wood
ServiceNow Employee
ServiceNow Employee

@SaurabhGidwani The table will depend on your indexed source configuration (ais_datasource).  Each indexed field that you want to be searchable will require a field level read ACL with the public role.