Drupal 8 Bulk User Import/Registration Using CSV
Drupal 8 Bulk User Registration.

Drupal 8 Bulk User Import/Registration Using CSV


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.

  1. Goto the Admin > Configuration Page
  2. Under Content Authoring, click User Import
  3. 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
  4. 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
  5. Add usernameemailstatus, and role column in CSV file if a role is not listed in the role type machine name so selected user role will assign.
  6. Once user register or imported. Welcome mail will be sent to a user for change password and detail.
  7. Click on Import button. After Import, the page will be redirected to people page where people created from the imported file.

Note:

  1. Refer Readme.txt file before import your CSV File.
  2. Sample CSV will be generated and will be available after selecting the user role.
  3. 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

Anas Touil

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)?

Stiven Ricardo Pe?a

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.

Gaurav kumar

System Analyst at Cybage Software

6 年

Very useful my current project. Thanks

要查看或添加评论,请登录

Shamsher Alam的更多文章

社区洞察

其他会员也浏览了