Sharepoint Forum

 
Home » Forum » Sharepoint       Ask a questionRSS Feeds

Exclude AD accounts from People Results

  Asked By: Katlyn Sykes         Date: Jul 21, 2008      Category: Sharepoint      Views: 852
 

I am trying to exclude an AD group from ANY search for People Results.
Has anyone ran into this problem/have a solution? It's an AD group that
have an account for internet usage, but aren't part of the staff. When
I try to search for joe user, some of these people are showing up and I
was wondering if there was a way for me to either remove them from the
user import or from the results.

Tagged:            

 

5 Answers Found

 
Answer #1       Answered By: Miranda Scott          Answered On: Jul 21, 2008       

Depending on how your AD directory is organized, you might be able to
filter using the "peoplepicker-searchadcustomquery" application property.

See
blogs.msdn.com/.../multi-forest-cross-forest-people-\
picker-peoplepicker-searchadcustomquery.aspx

for more info on the various properties you can use to customize the
people picker.

 
Answer #2       Answered By: Deirdre Macias          Answered On: Jul 21, 2008       

Isn't there a variable that I can put in under SSP>User Profiles and
Properties>View import  Connections>Edit Properties of SSP>under the
User Filter field. I thought that this would be a valid place to put
a command/variable to exclude  this AD group(s) from being imported.

Does that make sense?

 
Answer #3       Answered By: Kala Solomon          Answered On: Jul 21, 2008       

I know how to *include them*, maybe you can take this and figure
out how not to? I didn't think it imported them by default, thus the
reason we tracked down the below originally.

(|(&(objectCategory=person)(objectClass=user))(&(objectCategory=group)
(o
bjectClass=group)))

 
Answer #4       Answered By: Madison Clark          Answered On: Jul 21, 2008       

To exclude  the group  simply add a "!" in front of the group element. For
example:

(&(objectCategory=Person)(objectClass=User)(!memberOf=cn=contractors,ou=
External Users,dc=mydomain,dc=com))

Would exclude users who were a member of the group Contractors in the
External Users OU of mydomain.com.

 
Answer #5       Answered By: Dhanraj Saxsena          Answered On: Jul 21, 2008       

Thank you guys very much. I'd been looking for that statement for
over a month!

 
Didn't find what you were looking for? Find more on Exclude AD accounts from People Results Or get search suggestion and latest updates.


Your Answer
  • Answer should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].