0

I've created connection filters that should filter out any service accounts from being imported from AD. It's worked for all service accounts except for the Sharepoint search and Sharepoint service accounts. I've created a basic search site that appends contentclass:spspeople to queries in order to make a corporate directory. Is there some way that I can modify that search? I've tried everything else that I could find in google results including: creating a new user property and managed property then creating an exclude rule for the managed property on the People scope, connection filters, and I've excluded the OU that contains these service accounts from profile synchronization. Nothing has worked.

1
  • Why are you trying to filter out service accounts? Any user can discover them via ADUC/LDP/etc. unless you have removed the ACL that is present on OUs by default.
    – user6024
    May 4, 2013 at 3:15

1 Answer 1

0

Probably because you used Google, if you use Bing (:-)) you'll find references to Keyword Query Language, KQL. (You did not mention the SharePoint version but KQL is supported in 2010 and 2013) You can append an exclusion for those accounts like "and (-AccountName:srv_sp_farm -AccountName:srv_sp_crawl)" You can play with it in your search center and then apply what works to your directory.

One Question though, why not just use the People Search page rather than reinvent the wheel?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.