Forum Discussion
Microsoft Search - does not respect hidden user accounts!
So this morning (Monday 9am NZ time) about 36 hours after I posted this message, and ... yes Microsoft Search now respects msExchHideFromAddressLists = true flag.
- Internal sharepoint online ALL vertical search doesn't return the Careers user
- Bing Work vertical doesn't return the Careers user
I doubt anything has changed on the M365 side, my guess is that the change I made to On Premise Active Directory just took longer than the documented time to flow through the system.
This makes sense because as I understand it search makes use of , search results not the actual setting on the actual item at the time the user does the search. So effectively search caches the state of that item until search re-indexes the item.
>>> Lesson for me <<< and hopefully useful to you.
Wait for a while.
Does anyone have a general rule about how long this type of change takes to flow through ?
NOTE - the one thing I did do after posting my original message, was edit the user's on Premise MailExchangeNickName (I added a hyphen, saved, applied the change, then removed it and saved and applied the change). This may have made a difference ?
- VladilenJul 07, 2023Brass Contributor
In my experience - Setting “ShowInAddressList” Azure AD User object property to “false” is the most effective way to hide an account from m365 search. Exchange property "HiddenFromAddressListsEnabled" and SharePoint User Profile property "SPS-HideFromAddressLists" are synchronized with “ShowInAddressList” Azure AD User object property .
Here is my research: https://vladilen.com/sharepoint/hide-non-personal-account-from-microsoft-365-search