1

The search result does not show when an anonymous user searches in SP 2019 on-premises modern site. Site is fully anonymous access enabled. I have done this literally 100s of times for classic. And it works for anonymous user if he searches from classic search page but the only problem comes when he searches from modern page.

UPDATE

Console errors before clicking in search text box on home page enter image description here

Console errors after clicking in search text box on home page enter image description here

0

Search results are security trimmed, you need to ensure that anonymous users have at least read access to the file or item.

9
  • I have a SharePoint server 2019 (on-premises) Communication site (Modern UI). I have set anonymous access. Anonymous users can view all pages. when redirecting to the search page it shows a blank page, even it does not show search control. On the other hand, I just have to check the results in a classic search. And the results show up for anonymous users. So, I think it is not an access issue. Any idea what's wrong with modern search 2019 on-premises.
    – AHP
    Feb 10 at 5:39
  • Are there any errors in the console when an anonymous user loads the search page? I'm guessing they don't have access to specific client side assets that the modern page relies on. Feb 10 at 9:33
  • I am facing the similar problem. There is no access issue. It's just that if it is searched from modern UI -> no results, nothing. If on the same site, searched from classic UI -> works great.
    – Aks
    Feb 10 at 10:16
  • Have you confirmed that there are no errors in the console when viewed as an anonymous user? As mentioned previously, it's possible that anonymous users do not have access to the JavaScript assets required for the modern search page to work. Feb 10 at 18:54
  • @CallumCrowley, yes, there are errors about failing to load the resources (search js files) gyazo.com/9a371346de0e6a96887b7372f259a895 gyazo.com/38bba91e38918af0ea9b3f92d5efd07b What can be done to resolve this?
    – Aks
    Feb 12 at 5:27

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.