We have a simple Employee Directory built using the Out of the Box search center.


However, it is showing old employees that left months ago. Are these results bound to Active Directory? How do we clean it up?

  • Are you synchronizing accounts to Azure AD using AD connect or are they cloud only accounts? – sssreddy Nov 7 at 20:29
  • The are Cloud only accounts @sssreddy – Michael Colbs Nov 12 at 16:28

If those users are coming from local AD to SPO online thru the sync service - this is a known issue, for that we need to follow the below :

Need to change the profiles AD property “msExchHideFromAddressLists” to True Or Yes for all disabled users.

  set-adobject -Identity $someoneDisabledUser -replace @{msexchhidefromaddresslists="$true"}

And if the users are from office 365 not from local AD, then just restrict this in the search query, change the text from

  {searchboxquery} to {searchboxquery} AND -“SPS-HideFromAddressLists”:1

For detailed steps refer the below :


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.