Knowledge Base

How to import active users from Active Directory to a SharePoint list?

When you sync users from Active Directory to a SharePoint list, you may want to ignore those disabled users and just sync the active users.

In this article, we will demonstrate how to use AD Information Sync to import only the active users to a SharePoint list.

WHAT YOU'LL GET

The three active users are imported to the Active Users list from Active Directory

WHAT YOU'LL NEED

The sample data we use for this case

And there are three active users in the Active Directory as following.

Import active users from Active Directory to a SharePoint list

  1. Download the trial version of AD Information Sync and install it to your SharePoint server.

  2. Navigate to the site in which the Active Users list is located.

  3. In the upper right corner, click Settings and then click Site Settings.

  4. On the Site Settings page, click AD Information Sync settings under BoostSolutions Software section in the bottom right corner of the page.

  5. On the AD Information Sync Settings page, click Create Profile to create a new profile, specify a unique name for it.

  6. In the List section, select the SharePoint list to which we will synchronize the information from Active Directory. Select Active Users from the dropdown list.

  7. In the Active Directory section, specify a domain server and user credentials to connect to the domain server (Ensure the user account you specify has the appropriate permissions to access the domain server). Then click Connect. If everything goes right, it will show Connection attempt successful under the Connect button. If things went wrong, please check the user account you specified, make sure it has the permissions required.

  8. In the Filter section, specify the information you want to synchronize. Specify the object type as User.

    Check the checkbox of Enable Query to further filter items; then the configure panel will appear below, select Enter LDAP Query and type the following LDAP query in the textbox.

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

  9. In the Column Mapping section, map the AD attributes to the list columns as following.

  10. Keep other settings as default and click OK to save the settings for the profile.

  11. On the AD Information Sync Settings page, click Sync Now for the profile we created.

  12. A confirmation message will appear to remind you that the synchronization will modify data in Active Directory or the SharePoint list of this profile. Click OK to start the synchronization.

  13. Wait for a few seconds for the synchronization to be completed.

    Navigate to the Active Users list and you will find that those three active users in the Active Directory have been imported to the SharePoint list as following.

Login