Forum Discussion
Gurdev Singh
Dec 22, 2022Iron Contributor
Guests in SharePoint search vs Microsoft Search
I wanted to confirm the visibility of guest accounts when using SharePoint search vs Microsoft Search.
Microsoft search
As per my testing the default search box that appears at top is using Microsoft search and the behaviour is "Guest accounts do not appear in search results".
SharePoint search
Custom search-based solutions such as 'PnP Search Webparts', can be built using REST APIs that target SharePoint search e.g. https://<tenant URL>/_api/search/query. In that case, guests are included in search results.
Hence, in summary, guests are Excluded when doing people search using Microsoft Search whereas Included when using SharePoint search.,
Hello Gurdev Singh
but you can axclude guests in the query, see also: https://microsoft-search.github.io/pnp-modern-search/scenarios/Create-a-useful-People-Search/
Best, Dave