Forum Discussion

gopakumar sivaraman's avatar
gopakumar sivaraman
Copper Contributor
Apr 01, 2017

SP 2013 People Search Exclude Farm Service Accounts

Environment  :   SP2013 with SP1 With CU of Jan 2017

We have sync the OU's for people search but not all OU's in AD..Our farm service accounts are not in Sync OU's ,but still people search showing those accounts eg:farm admin account.Have tried custom filtering in people search and applied crawl rule to exclude those but no luck.Deleted the profile but after a full crawl those are coming back

Any idea of get those accounts hidden in people search.

Thanks & Regards

Gops

 

1 Reply

  • JaredMatfess's avatar
    JaredMatfess
    Iron Contributor

    The solution that I'm working on for a client involves the following.

     

    1. Create a custom attribute in User Profile Service called "HideFromPeopleSearch"

    2. Set this value to true for a few of the service accounts

    3. Create new Managed Property to map that new property to.

    3a. Make sure to follow Mikael Svenson's advice on this new property:

    http://www.techmikael.com/2014/11/how-to-make-sure-user-profile.html

    4. On your People Search page, set a filter to HideFromPeopleSearch=no or something like that to indicate it should only return users who don't have that attribute set

     

Resources