How To: Import Users via CSV

A Comma-Separated Values file, or CSV, is a text file that contains values separated by commas and ends with the .csv extension. You can open these files in spreadsheet programs such as Microsoft Excel or Google Sheets. Admins can use a CSV file to add or update many Users at once. 

This article explains how to prepare a CSV file and import it from the Import Users page in the Admin Experience (AE).

In-Portal Imports vs Paid Imports

This article covers the in-portal User Import tool only, not the paid one-time or recurring imports managed by our Technical Services team. For more information on custom data imports, see Data Imports.

 

Before You Begin

Confirm that you have the required permissions and decide which Import Type fits your task before you prepare your file. The Import Type determines which fields are required and how the LMS treats each row.

 

Required Permissions

To use the User Import button and the Import Users page, your Admin Role must include the Add Users and Modify Users permissions, along with permission to work with files (Upload Files, or View Files and Modify Files, depending on your Portal's configuration). You can only assign Roles during an import that your own Admin Role allows you to grant.

For more information, see Admin Roles & Permissions.

 

Import Types

The Import Users page offers two Import Types. 

 

Choose carefully, since Update Existing Users replaces data on existing User profiles:

Selection

Description

Import New Users Creates a new User for every row in the file. Rows with a Username that already exists in the LMS fail validation. A Department must be selected in Additional Field Mapping.
Update Existing Users Matches each row to an existing User using the field you choose in Match spreadsheet to LMS using. Matched Users are updated. Rows that do not match an existing User, or that have a blank matching value, are created as new Users.

 

Preparing Your CSV File

A well-prepared file passes validation faster. The first row of your file must contain column headers, and each following row must contain one User record. The order of the columns does not matter. The following image shows a sample CSV file:

 

If you plan to reuse your file as a template for future imports, start with the minimum required fields and add columns gradually until the full scope of your data validates successfully.

 

File Requirements

Your file must meet the following requirements:

  • The file uses the .csv format. Other file types are rejected.
  • The file is no larger than 10 MB.
  • The file contains a header row and at least one data row. The View Format Guidelines link on the Import Users page recommends no more than 10,000 rows per file.
  • Each User record is on its own row.

 

Required Fields

Every row that creates a new User must include values for the following fields:

  • First Name
  • Last Name
  • Password

 

This applies to both Import Types. When you use Update Existing Users, rows that match an existing User do not need these values, but any row without a match is created as a new User and does. If your file only updates existing Users, you can remove the Password column.

When updating existing Users, a blank cell in a mapped column overwrites that User's current value. For example, blank First Name and Last Name cells replace the existing names. To leave a field unchanged, remove its column from the file or set it to Do Not Import in the Data Preview.

Password Note

You cannot set or update passwords for existing Users through the User Import. When you use Update Existing Users, values in the Password column are not applied to matched Users, even though the import may report the update as successful.

 

Available Fields

You can map the following fields from your CSV file. Column headers that match these field names are mapped automatically during the import:

  • Username
  • Password
  • First Name
  • Middle Name
  • Last Name
  • Gender
  • Language (see Language Codes for Absorb)
  • Address
  • Address 2
  • City
  • State/Province (requires Country)
  • Country
  • Postal Code
  • Phone
  • Employee Number
  • Location
  • Job Title
  • Notes
  • Email
  • Date Hired
  • Date Terminated
  • External Id
  • Custom Fields
Username Field

You cannot bulk update the Username field with the User Import. For consistency, format new Usernames the same way as your existing Users.

 

Unavailable Fields

The following fields cannot be imported from a CSV file:

  • Supervisor
  • Avatar
  • CC Email Addresses
  • Department

 

Update Supervisor, Avatar, and CC Email Addresses manually through the Users Report. Assign a Department in Additional Field Mapping during the import instead of in a CSV column.

 

Field Formatting Rules

The LMS checks the values in your file during validation. Rows with values that break the following rules fail validation and must be corrected before you can import.

 

Password Requirements

Each Password for a new User must meet your Portal's configured password strength requirements, the same rules that apply when a Password is set manually. The Password column cannot also be used to generate the LMS Username. Review your Portal's password policy before you prepare your file.

New Users also inherit your Portal's settings for forcing a password change on first login and for accepting terms and conditions.

 

Field Character Limits

Text values that exceed the following limits fail validation:

Field Character Limit
Address 4,000 characters
Address 2 4,000 characters
Notes 4,000 characters
All other text fields 255 characters

 

Date Format

Use the YYYY-MM-DD format for all dates. Other formats are not supported, and we cannot guarantee that an import using another format will complete successfully. Dates earlier than the year 1753 fail validation.

 

Email and Gender

Email and Gender are not required, but if your file includes either column, the LMS checks the format of every cell in it, and blank values fail. Email values must be valid email addresses, and Gender values must begin with M or F. If only some of your Users have values for these fields, split your data into separate files.

 

Country and State/Province

State/Province depends on Country. If your file includes a State/Province value, it must also include a Country value, or validation fails.

Use the two-letter Country code. Three-letter codes cause validation errors. Country codes mirror the ISO 3166-2 standard, and a list of accepted values is available in the Attachments section of this article. For more information about the standard, see ISO 3166-2 | Wikipedia.

Enter State/Province values as full names. For example:

  • Alberta instead of AB.
  • Ohio instead of OH.

 

Absorb manages Country codes manually and aims to keep up with international standard updates. If you notice outdated Country data, submit a support ticket or contact your client support representative.

 

Boolean Fields

Some Custom Fields accept a boolean (true/false) value. Use either of the following value pairs:

  • 0 or false
  • 1 or true

 

Use one syntax consistently. Don't mix 0/1 and false/true values in the same file.

 

File Encoding

Save your CSV file using UTF-8 encoding, which is the default in most spreadsheet applications. UTF-8 supports the widest range of characters and is the recommended choice for most User Imports.

Special Characters

If special or accented characters do not import correctly, save the file with Windows-1252 encoding (labeled ANSI in some applications) and import it again. For more troubleshooting steps, see Why Does My Imported User Data Contain Question Marks?

 

Importing Users from a CSV File

The Import Users page guides you through the import in a single view. Each section appears after you complete the one before it, and the LMS validates your data automatically as you make changes.

 

Open the Import Users Page

Follow these steps to open the Import Users page:

  1. In the Admin Experience, click Users Report in the left-hand menu.
    Users Report in the Admin Experience left-hand menu
     
  2. Click User Import in the Actions menu on the right side of the page.
    User Import button in the Users Report Actions menu

 

Select an Import Type

The Import Users page opens with the Import Type options. No other settings appear until you select one.

  1. Under Import Type, click Import New Users or Update Existing Users.

 

Upload the CSV File

After you select an Import Type, the Upload CSV field appears. To review the recommended file format, click View Format Guidelines.

  1. Under Upload CSV, click Choose File.
  2. Select your CSV file from your computer.

 

A loading indicator appears while the file is processed. When processing finishes, the Import settings, Data Preview, and Additional Field Mapping sections appear.

 

Configure Import Settings

The Import settings section controls how Usernames are generated, how rows match existing Users, and how new Users are set up.

  1. From the LMS Username dropdown, select the column used to generate Usernames, or select First Name + Last Name. If your file has a column named Username, it is selected automatically.
  2. If you selected Update Existing Users, select the column from your file under Match spreadsheet to LMS using.
  3. In the same row, select the LMS field to match that column to: Email Address, Employee Number, External Id, or Username.
  4. Under New Users, click the Set new users as active switch to turn it off if you want Users imported as Inactive. This switch is on by default.
  5. To email new Users, click the Send an email to new users switch to turn it on. This switch is off by default.

 

Import User Status

Users cannot log in to the LMS unless their Status is Active. Importing Users as Inactive is useful if you want to add them ahead of time or complete additional setup first.

When you use Update Existing Users, the Set new users as active switch also sets the Status of the existing Users being updated. Turning it off deactivates every matched User in the file.

Note: The Send an email to new users setting sends your Portal's New User Message Template to new Users only, and only when Set new users as active is also on. Updated Users do not receive it. The email includes a password reset link that expires after seven days.

 

Map Columns in the Data Preview

The Data Preview shows each column in your file with the first five rows of data. The LMS automatically maps columns whose headers match an LMS field, and the matching is not case-sensitive. Review each mapping before you import.

  1. Review the LMS field selected in the dropdown for each column.
  2. To change a mapping, select a different LMS field from the dropdown.
  3. To skip a column, select Do Not Import from the dropdown.

 

Each LMS field can be mapped to only one column. A column named Username cannot be remapped.

 

Set Default Values in Additional Field Mapping

Additional Field Mapping sets default values for fields that are not mapped from your file. These values apply to every User in the import. The section lists each available field with an Overwrite checkbox and an Imported Users Field where you enter the value.

The following fields are available:

  • Department
  • Roles
  • Learner
  • Admin
  • Instructor
  • Language
  • Country
  • State/Province (available after you select a Country)
  • City
  • Location
  • Job Title
  • Date Hired
  • Date Terminated
  • Notes
  • Custom Fields

 

Follow these steps to set a default value:

  1. Find the field's row in the Additional Field Mapping table.
  2. Enter or select the value in the Imported Users Field column. The Overwrite checkbox is selected automatically.

 

Default values apply only to fields with Overwrite selected. If a field is also mapped from your file, the default fills in only for Users whose value is empty. If the field is not mapped, the default replaces existing values.

 

Department

A Department is required when you select Import New Users. If your Portal has only one top-level Department, it is selected automatically. Keep the following in mind:

  • Each import assigns one Department. To import Users into several Departments, split your data into one file per Department, or change Departments after the import through the Users Report.
  • When you use Update Existing Users, a Department is applied to existing Users only if they have no Department or Overwrite is selected.
  • If your Portal uses a Blended Billing Model, a warning shows whether the selected Department uses Internal or External Billing. Confirm that the Department has the expected Billing Type.

 

Review Validation Results

The LMS validates your file automatically after upload and again whenever you change the LMS Username, a column mapping, the Import Type, the matching fields, or the Department, Country, or State/Province defaults. The results appear in an alert above the Upload CSV field. The Import button stays disabled until validation passes and an LMS Username is selected.

When validation passes, the alert reads Everything looks good! and shows how many Users will be imported and whether they will be Active or Inactive.

 

When validation fails, the alert reads One or more fields contains errors. Validation stops after 10 errors, so you may need to fix the reported errors and upload the file again to reveal any that remain. Follow these steps to resolve errors:

  1. Click Download Conflict Report to download a CSV file that lists the row number, Username, and error for each conflict.
  2. Correct the listed rows in your CSV file, or adjust your mappings.
  3. Under Upload CSV, click Choose File.
  4. Select the corrected file.

 

Important: The header row is not counted when the LMS reports error locations. Reported row numbers refer to data rows only, so each is one lower than the row's position in your spreadsheet.

 

Common Validation Errors

The following table describes errors you may see and how to resolve them:

Error Resolution
Username exists in LMS database A row in an Import New Users file uses a Username that already belongs to a User. Remove the row, or use Update Existing Users.
Duplicate Username The same Username appears more than once in your file. Make each Username unique.
Empty Username The column selected for LMS Username is blank in this row. Add a value, or select a different column.
Password does not meet minimum requirements Update the Password to meet your Portal's password strength requirements.
First Name, Last Name, and Password must all be provided for the new user The row creates a new User but is missing a required value. Add the missing values.
A department must be selected when importing new users. Select a Department in Additional Field Mapping.
Duplicate LMS Field The matching value belongs to more than one existing User. See the following callout.

 

Duplicate LMS Field Error

The Duplicate LMS Field error occurs when the selected unique identifier, such as an Employee Number, matches more than one User profile in the LMS. It does not indicate duplicates in your CSV file.

The conflicting profile is often Inactive and does not appear in the Users Report by default. Enable the Inactive filter in the Users Report to locate it, then edit, merge, or deactivate the duplicate before running the import again.

 

Run the Import

Once validation passes, you can start the import. To leave the page without importing, click Cancel instead.

  1. Click Import in the side menu.

 

The Import In Progress window opens and shows the import's Reference Number, a progress bar, and one of the following statuses: Pending, Import In Progress, Complete, or User Import Failed. When the import completes, the window shows how many Users were added and, for Update Existing Users, how many were updated.

 

Click View Users to open the Users Report filtered to the Users in this import, or click Close to return to the Users Report. The import continues in the background if you close the window. Note the Reference Number so you can filter the Users Report for this import later.

If an import fails, the LMS sends the User Import Error message to the Admin who ran it, including the Reference Number and file name. For more information, see Message Template Types.

Import Batching

Absorb groups large volumes of changes together and processes them at 10-minute intervals, which is more efficient than processing them one at a time. This may introduce a short delay before you see the results, but keeps your Portal responsive to one-off Admin actions and Learner activities.

 

More Information

For more information about CSV files, Data Imports, and User Management, see the following articles:

Was this article helpful?
1 out of 2 found this helpful

Comments

0 comments

Article is closed for comments.