Drupal 8 Bulk User Import/Registration Using CSV
Shamsher Alam
Senior Solutions Specialist - Drupal @ Nasdaq | Blogger | Trainer | Drupal Enthusiast | Mentor | Drupal 7, 8, 9, 10 Acquia Certified
Bulk User Registration and Import:
I have contributed this simple module which allows an administrator user to import user or register user from a CSV file.
In this module, you can select existing drupal role while importing user from CSV. In this case, every user in CSV assigns that selected role. But if you want to add your own role from CSV so just mentioned a role in CSV file and click on the option of Override role from CSV.
Override role means selected role will not assign to the user. Only CSV map role will assign to the imported user.
Bulk User Registration makes the Admin user easy to import/Register User from CSV file. Download the module from Drupal.org and enable it. This module supports Multi-lingual data import.
- Goto the Admin > Configuration Page
- Under Content Authoring, click User Import
- Select the User Role that you need to assign while the time of importing user data, it will generate the sample CSV file and it will be available for you to download. Refer this CSV or fill this CSV. Upload the same CSV file which is ready to import
- Make sure the first row of the CSV file having the machine name as columns. This is required to match the data with content type
- Add username, email, status, and role column in CSV file if a role is not listed in the role type machine name so selected user role will assign.
- Once user register or imported. Welcome mail will be sent to a user for change password and detail.
- Click on Import button. After Import, the page will be redirected to people page where people created from the imported file.
Note:
- Refer Readme.txt file before import your CSV File.
- Sample CSV will be generated and will be available after selecting the user role.
- Please give write permission to /sites/default/files to generate the sample files.
Mandatory Columns is CSV:
=========================
username - username of the user
email - email of the user
role - it will work based on your selection for overriding role.
Note: Please use this module if you need bulk import or migrate user kind of functionality. It also helps in bulk user registration. Raise issue if you find something. Anyone wants to do be a maintainer of this module so please feel free ping me.
Drupal Project: https://www.drupal.org/project/bulk_user_registration
Thanks
Shamsher Alam
Cloud Consultant @ Sofrecom
4 年Thanks, you're project is very useful to me. do you know how to add a password to all users(but not manually)?
Digital Transformation - Innovation - AI
5 年Im having a problem adding more columns (user fields) to the CSV, the module have this capability? When im trying to upload a CSV file with two more columns (previously created) the module crash and appear an error in the import process.. Really appreciate your help.
System Analyst at Cybage Software
6 年Very useful my current project. Thanks