Contextual Search - Search as user returns no results
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-23-2022 04:36 AM
I've never tried to use this feature before, but according to this article:
https://docs.servicenow.com/bundle/quebec-platform-administration/page/administer/contextual-search/...
I should be able to add this option so ITIL users can search knowledge articles as the caller, to filter out results from knowledge bases the caller doesn't have access to.
However, after setting it up, I get "No matching results found". No matter what the search term is.
If I impersonate that user and open the Incident and try it withing the My Results tab, then everything appears. So I know the user actually has access to the articles.
The config is nothing special, just Search as field set to Caller:
Edit:
So, it seems this feature actually starts an impersonation session (not quite sure), which for some reason resets elevated roles. This particular customer instance has an additional setting where even admin users needs to elevate roles to be able to actually get admin rights.
I have no idea why this happens, but it's obvious this is what breaks the thing.
- Labels:
-
Incident Management

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-23-2022 05:48 AM
Check read ACL on sys_user table ? if any role or any condition or script added remove it and check again
Regards,
Musab
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-23-2022 06:04 AM
I don't think ACL on sys_user would do anything. I did however notice that each time I open the tab for the user in question, the elevated roles are reset.
This particular instance has a setting where even admin users need to elevate roles to get admin.
I suspect this is the reason it doesn't work.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-23-2022 06:08 AM
Give a try by removing all conditions from read ACL for user table
Regards,
Musab
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-23-2022 06:13 AM
What do you mean? Why would the user table impact anything?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-23-2022 06:40 AM