Turn off more accessible mode Blogs > Mark Eichenberger's SharePoint Blog
Sign In

Mark Eichenberger's SharePoint Blog

Go SearchAdvanced Search
Blog
About Me
Big List of Links

Categories
SharePoint
Web Parts
Security
Management
Training
Me
View in Web Browser/_layouts/images/ichtmxls.gif/blogs/MarkE/_layouts/xlviewer.aspx?listguid={ListId}&itemid={ItemId}&DefaultItemOpen=10x00x1FileTypexlsx255
View in Web Browser/_layouts/images/ichtmxls.gif/blogs/MarkE/_layouts/xlviewer.aspx?listguid={ListId}&itemid={ItemId}&DefaultItemOpen=10x00x1FileTypexlsb255
Snapshot in Excel/_layouts/images/ewr134.gif/blogs/MarkE/_layouts/xlviewer.aspx?listguid={ListId}&itemid={ItemId}&Snapshot=10x00x1FileTypexlsx256
Snapshot in Excel/_layouts/images/ewr134.gif/blogs/MarkE/_layouts/xlviewer.aspx?listguid={ListId}&itemid={ItemId}&Snapshot=10x00x1FileTypexlsb256
Other Blogs
Lawrence Liu's Report from the Inside
Microsoft SharePoint Products and Technologies Team Blog
View in Web Browser/_layouts/images/ichtmxls.gif/blogs/MarkE/_layouts/xlviewer.aspx?listguid={ListId}&itemid={ItemId}&DefaultItemOpen=10x00x1FileTypexlsx255
View in Web Browser/_layouts/images/ichtmxls.gif/blogs/MarkE/_layouts/xlviewer.aspx?listguid={ListId}&itemid={ItemId}&DefaultItemOpen=10x00x1FileTypexlsb255
Snapshot in Excel/_layouts/images/ewr134.gif/blogs/MarkE/_layouts/xlviewer.aspx?listguid={ListId}&itemid={ItemId}&Snapshot=10x00x1FileTypexlsx256
Snapshot in Excel/_layouts/images/ewr134.gif/blogs/MarkE/_layouts/xlviewer.aspx?listguid={ListId}&itemid={ItemId}&Snapshot=10x00x1FileTypexlsb256
Links
Photos
Archive
Archive (Calendar)
View in Web Browser/_layouts/images/ichtmxls.gif/blogs/MarkE/_layouts/xlviewer.aspx?listguid={ListId}&itemid={ItemId}&DefaultItemOpen=10x00x1FileTypexlsx255
View in Web Browser/_layouts/images/ichtmxls.gif/blogs/MarkE/_layouts/xlviewer.aspx?listguid={ListId}&itemid={ItemId}&DefaultItemOpen=10x00x1FileTypexlsb255
Snapshot in Excel/_layouts/images/ewr134.gif/blogs/MarkE/_layouts/xlviewer.aspx?listguid={ListId}&itemid={ItemId}&Snapshot=10x00x1FileTypexlsx256
Snapshot in Excel/_layouts/images/ewr134.gif/blogs/MarkE/_layouts/xlviewer.aspx?listguid={ListId}&itemid={ItemId}&Snapshot=10x00x1FileTypexlsb256
Mark Eichenberger's SharePoint Blog > Posts > Filtering out Disabled Accounts When Importing Profiles

3/19/2008

Filtering out Disabled Accounts When Importing Profiles

By default, MOSS uses the (&(objectCategory=person)(objectClass=user)) LDAP search filter when importing your user accounts from Active Directory. This filter imports all enabled and disabled user accounts to MOSS.

 

To restrict profiles to only “Active” or “Enabled” accounts, here is the filter string:

 (&(objectCategory=person)(objectClass=user)( !(userAccountControl:1.2.840.113556.1.4.803:=2)))

 

To get this into SharePoint, do the following steps

o   Go into Central Administration

o   Click on SharedServices1 on the left hand side of the page

o   Under User Profiles and My Sites, click the first link: User Profiles and Properties

o   Near the bottom of the page, click View Import Connections

o   Mouse over the only connection you have and click the down arrow and then click Edit

o   Scroll down to the Search Settings section.  There is a box titled User Filter in that section.  Paste in the filter string from above.

o   Click OK at the bottom of the page

o   In your navigation breadcrumbs near the top of the page, click on User Profile and Properties

o   Near the bottom are several bulleted links.  Click the 5th one, Start Full Import


This process will go through your existing profiles and mark any previous disabled accounts as inactive profiles and they will no longer be show or accessible in SharePoint.  Disabled accounts not previously imported by MOSS will be ignored and no profile will be created.

 

Posted at 2:50 PM by Mark Eichenberger | Category: SharePoint; Management | Permalink | Email this Post | Comments (2)
View in Web Browser/_layouts/images/ichtmxls.gif/blogs/MarkE/_layouts/xlviewer.aspx?listguid={ListId}&itemid={ItemId}&DefaultItemOpen=10x00x1FileTypexlsx255
View in Web Browser/_layouts/images/ichtmxls.gif/blogs/MarkE/_layouts/xlviewer.aspx?listguid={ListId}&itemid={ItemId}&DefaultItemOpen=10x00x1FileTypexlsb255
Snapshot in Excel/_layouts/images/ewr134.gif/blogs/MarkE/_layouts/xlviewer.aspx?listguid={ListId}&itemid={ItemId}&Snapshot=10x00x1FileTypexlsx256
Snapshot in Excel/_layouts/images/ewr134.gif/blogs/MarkE/_layouts/xlviewer.aspx?listguid={ListId}&itemid={ItemId}&Snapshot=10x00x1FileTypexlsb256

Comments

Re: Filtering out Disabled Accounts When Importing Profiles

Mark, I tried this but the disabled AD accounts are still showing up in people search. I did a full import as well. Any ideas?
at 4/9/2008 10:58 AM

Reply:Inactive accounts still showing up in search

I double-checked again today and everything worked as documented.  I posted this blog article in response to a customer request and it worked there as well.
 
Check your crawl logs and see what is happening to your inactive accounts.
 
My environment is MOSS 2007 with SP1.
 
Mark
Mark Eichenberger at 4/29/2008 12:45 PM

Add Comment

View in Web Browser/_layouts/images/ichtmxls.gif/blogs/MarkE/_layouts/xlviewer.aspx?listguid={ListId}&itemid={ItemId}&DefaultItemOpen=10x00x1FileTypexlsx255
View in Web Browser/_layouts/images/ichtmxls.gif/blogs/MarkE/_layouts/xlviewer.aspx?listguid={ListId}&itemid={ItemId}&DefaultItemOpen=10x00x1FileTypexlsb255
Snapshot in Excel/_layouts/images/ewr134.gif/blogs/MarkE/_layouts/xlviewer.aspx?listguid={ListId}&itemid={ItemId}&Snapshot=10x00x1FileTypexlsx256
Snapshot in Excel/_layouts/images/ewr134.gif/blogs/MarkE/_layouts/xlviewer.aspx?listguid={ListId}&itemid={ItemId}&Snapshot=10x00x1FileTypexlsb256
Items on this list require content approval. Your submission will not appear in public views until approved by someone with proper rights. More information on content approval.

Name (required) *


Subject


Body (required) *

Attachments
Use this page to add attachments to an item.
Name