Recently came across an issue where there were 3 “David Hendry’s” appearing within people search on SharePoint 2013 / Office 365. So if a user searched for me, they would see 3 ‘identical’ people to choose from.
The accounts were:
* My main domain account
* My domain admin account
* My cloud admin account
The requirement was to hide cloud admin and domain admin accounts from the search results.
The resolution was to edit the People Search Core Results web part…
I modified the query (shown below) to include the domain name for internal accounts, remove any accounts containing adm_ and onmicrosoft.com.