Wednesday, June 22, 2011

SharePoint 2010 User Profile Import–How to filter only Enabled Accounts

When you create a User Profile Synchronization Connection in SharePoint, by default it will import all accounts in the containers you specify enabled and disabled.  If you only want to import enabled accounts, then after your connection is created add the following filter.

  1. Logon to Central Administration with a Farm Administrator account.
  2. Click on Manage Service Applications.
  3. Scroll down to and click on User Profile Service Application.
  4. On the Manage Profile Service page, click Configure Synchronization Connections.
  5. On the Synchronization Connections page, click the Active Directory connection that you want to edit, and then click Edit Connection Filters.
  6. On the Edit Connection Filters page, follow these steps:
    1. In Exclusion Filter for Users, change the Attribute drop-down to userAccountControl.
    2. In Exclusion Filter for Users, change the Operator drop-down to Bit on equals.
    3. In the Exclusion Filter for Users, select Filter box typeto 2.
    4. Click Add.
  7. Click OK.

No comments:

Post a Comment