1

I have a People Finder page which uses the Search Results webpart, I'm wanting to exclude all service accounts from the search results, how can I achieve this without manually inputting all the accounts into the search query ({searchboxquery} -0182 –SA0092 –SA0036 etc).

*I'm not very experienced with search, so you may have to simplify your answer slightly.

3
  • 1
    Are these service accounts in a dedicated OU of the AD? Also: do they have a common property the norml user accounts don't? e.g. they don't have an email address, while all users do have one.
    – Evariste
    Dec 10, 2015 at 14:57
  • Active Directory
    – Haz
    Dec 10, 2015 at 15:01
  • Unfortunately we don't have this information as it's for a client, we don't have access to their AD.
    – Haz
    Dec 10, 2015 at 15:07

1 Answer 1

2

My colleague and I found a solution to our problem:

In the 'Search Results' webpart > 'Change Query' > in the 'Query Text' box add {searchboxquery} -Firstname="0*" -Firstname="SA0*"> OK

*Our service accounts all began with a 0 or SA0.

Your Answer

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

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