Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I would like to remove all the Admin accounts from People Search results. I have seen several ways to do it. I didn't want to add a new field in the AD to indicate whether the account is an admin account or not. I created a SharePoint List that contains all the Admin accounts to be excluded. I created a metadata that pointed to that list.
I created a new scope to exclude the admin users from the people search result.

Can I do this? 1. Select Scopes. 2. Select People. 3. Select new rule. 4. Select Property Query 5. Select AccountName = AdminAcct 6. Select Exclude

Question: Can I Compare a Property query AccountName with another Property query called AdminAcct?

AccountName is populated from User Profile for AccountName. AdminAcct is new metadata that populates from SharePoint list.

I would really appreciate any suggestions.

share|improve this question
1  
AD is supposed to be the repository for as much user information as is needed to support that user in their daily activities and is the proper place for such a flag to be placed. By creating your own list of admins, you are now creating a dual maintenance condition where a separate (and likely soon forgotten) list has to be updated any time a new admin account is added. –  Dave Wise Mar 29 '13 at 15:14
    
What version of SharePoint? Why not put your admin accounts in a separate OU and then set your connection so they do not import? –  Matthew McDermott Mar 30 '13 at 11:50

1 Answer 1

up vote 0 down vote accepted

I would either define a property within the SharePoint User Profiles that can be used to identify which are admin accounts or use a standard field in AD to designate it. Once the user profiles are in SharePoint, you can then modify the search scope to add an additional rule that excludes those accounts from People Search.

share|improve this answer
    
Thanks Mike. I have seen the suggestion where you add a new field to the AD, and reference back to a metadata, and exclude it from the scope. I'm NOT a server admin. It's hard to get new fields being added to AD. It would be easy for SharePoint admin to use the SharePoint list concept to exclude the selected users from People search or Employee Directory. –  user751119 Apr 1 '13 at 18:25
    
My recommendation was to add it to the SharePoint user profile, not to AD. That would still require access to the SP Central Admin and User Profiles to do. You will not be able to filter people search from a SharePoint list. –  Mike Oryszak Apr 1 '13 at 19:24
    
Thanks Mike. I will give it a try. –  user751119 Apr 2 '13 at 12:07
    
I followed your suggestion to use an existing SharePoint user profile or create a new user profile. Bring up the profile and edit the value. Crawl the content. I was able to search for it. Thank you for your suggestion. –  user751119 Apr 2 '13 at 15:06

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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