Skip to the content
Documentation
Help Start
Reading in:
  • German: 9,110 of 9,110 pages
About the help in other languages
All help pages

Bulk-import members from CSV

Create many member accounts from a spreadsheet with exp:user:import - prepare the CSV without passwords, check every row in a dry run, import with the activation mail or as disabled accounts, and deal with skipped and…

Download as PDF

Address: https://doc.exponential.earth/exphelp/viewer/help/user-management-from-the-console/bulk-import-members-from-csv.md

On this page

Bulk-import members from CSV

Each row becomes an account, created exactly like exp:user:create. No password travels in the file.

What you'll have at the end

The members of your list as accounts in the right groups, each with an activation mail or disabled until you set a password.

Before you start

  • The list as a spreadsheet, with one row per person.
  • The name or node id of the group the members belong to, here Members.

Steps

  1. Save the list as a CSV file in UTF-8, with this header row:

    login,email,first_name,last_name,groups
    jdoe,[email protected],Jane,Doe,Members
    rroe,[email protected],Richard,Roe,

    groups may stay empty; then --group decides. Several groups are separated by |.

  2. Remove any password column. A file with a password column is refused.

  3. Copy the file to the server, for example to var/tmp/members.csv.

  4. Run the import as a dry run.

    ./console exp:user:import var/tmp/members.csv --group=Members --send-activation

    Every row is checked. Each row shows would_create, skipped (the login exists) or refused with the reasons.

  5. Fix the refused rows in the file, and run the dry run again.

  6. Run the import with --apply.

    ./console exp:user:import var/tmp/members.csv --group=Members --send-activation --apply

    Each person gets the activation mail.

  7. Data protection: The file holds names and e-mail addresses. Delete it from the server when the import is done.

Result

exp:user:list --group=Members --state=unactivated lists the new accounts until the people activate them.

Variants

  • No mail now: use --disabled instead of --send-activation. When the members may start, enable the accounts with exp:user:bulk enable, then send each person the reset link with exp:user:reset-password --send-link.
  • JSON instead of CSV: an array of objects with the keys login, email, first_name, last_name, groups, and --type=json.
  • A large list: split it into files of a few hundred rows. A run that stops can be repeated: existing logins are skipped.

Something wrong on this page? Report an error

Documentation license

This documentation is free documentation, licensed under the GNU Free Documentation License 1.3 or later.

Exponential Copyright © 1998-2026 Exponential Foundation and 7x