Skip to content

Bulk Import Active Directory Users from CSV

This guide shows you how to bulk import Active Directory users from a csv file using the AD Pro Toolkit.

Resources

Step 1: Download the CSV Template

  1. Download the “User Import CSV Template” from the Resources section at the top.

    • This CSV includes an example of two user accounts.
    • The CSV template includes 33 user attributes. This covers the most common attributes for creating new accounts.
    • Additional attributes can be added to the template (see the section Add Additional Attributes for details)
  2. Open the CSV template and enter your account details. The below columns are required, all other fields are optional. You can delete the columns you don’t need.

    1. SamAccountName = This will be the users logon name.
    2. password = users password. Make sure it meets your password requirements.
    3. givenName = First name
    4. sn = Last name

Example screenshot of the included csv template.

my image

Step 2. Open the Bulk Create Users Tool

At this point you should have a csv file filled out with your user details. Now you are ready to start the bulk import process.

  1. Click on User Management > Bulk Create Users

  2. Click “Browse” and select your CSV file.

    my image

  3. Enable or disable any of the following options:

    my image

  • Enable: This will enable or disable the account when it is created (enabled by default)
  • User must change password at next logon: This option will require users to change their password at first logon.
  • FirstName LastName: Sets the name format to FirstName + LastName
  • LastName, FirstName: Sets the name format to LastName, + FirstName
  • Same as user logon name: Sets the name format to logon name (samaccountname)

Step 3. Click Run to Start the Import

To start the import click the “Run” button. Logs will be displayed at the bottom of the screen. When it is completed it will show how many accounts where imported.

my image

Step 4. Verify Import of AD Users

To verify the accounts where imported and the account details where configured (according to your CSV file) follow these steps.

  1. Click on “User Reports” > All Users
  2. Select the OU you imported the accounts into.
  3. Click “Columns” to add user properties that you want to verify.
  4. Click “Run”.

my image

You can also open Active Directory Users and Computers to check if the accounts where imported.

my image

The advantage to using the AD Pro Toolkit is you can easily verify multiple account attributes at once.

Add Additional User Attributes

You can add additional user attributes to the CSV file, you just need to know the LDAP name. You can find the LDAP name by opening the attribute editor in Active Directory Users and Computers. You could also use PowerShell to list all user account properties.

To see the attribute editor you first need to enable the advanced features in Active Directory Users and Computer

Click view from the top menu then select advanced features.

my image

Now when you open an account you will see the attribute editor tab.

my image

The attribute editor screen will show you all the user LDAP properties.

Now just find the attribute name and add it to the CSV. For example, I want to add information to the other Home telephone section for users.

my image

In the attribute editor, I see the name is “otherHomePhone”. I will add this to the CSV.

my image

All done. That is how you add additional attributes to the CSV file to import with new accounts.