Working in SharePoint 2013, I am trying to configure the Search Results query, to exclude all generic accounts (i.e. System accounts, test users, etc.). Our AD has these users segregated into a separate OU, and I think I can use that exclude these users from the results of a People Search. But, I'm having trouble configuring the query in the Search Results web part, to do this.
There is an existing property in the User Profile called Distinguished Name
which includes the value OU=Users.Departmental
for these generic accounts:
I have configured a Managed Property called DistinguishedName
, that is mapped to this field:
When I go to the Search Results web part, I have created a query that uses:
{searchboxquery} -DistinguishedName:Users.Departmental
No matter what I do, I can't seem to get the query to exclude users that have Users.Departmental
in their Distinguished Name
field value. Any advice or suggestions on how to resolve this would be appreciated.