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