Multi User Magento 2 - Importing Account Data From CSV Files


Importing Account Data From CSV Files

Back to User Guides

Sample CSV File

Speed up the import process by using this sample CSV file.

You can also generate it via the command  php bin/magento cminds:multiuseraccounts:generate-sample-import-file

What is This Feature

It's possible to quickly add sub-accounts by import a CSV File. This is handy especially when you need to configure many accounts at once.


Importing the CSV File

To import the file, run the following command instruction:

php bin/magento cminds:multiuseraccounts:import path/to/file


CSV File Structure

The CSV file has two types of field:

  • Text fields - accept text. For instance, firstname, email, and country_id.
  • Boolean fields - accept either 1 (true) or 0 (false). For instance, is_active and account_data_modification_permission.

The CSV file requires the following columns. The first row should contain the field names and the following rows should contain one account each.

Column Field Type
parent_email Text field
firstname Text field
lastname Text field
email Text field
password Text field
website_id Text field
group_id Text field
prefix Text field
firstname Text field
middlename Text field
lastname Text field
suffix Text field
email Text field
dob Text field
taxvat Text field
gender Text field
is_active
Boolean (0 for no, 1 for yes)
can_manage_subaccounts
Boolean (0 for no, 1 for yes)
prefix Text field
firstname Text field
middlename Text field
lastname Text field
suffix Text field
company Text field
street Text field
city Text field
country_id Text field
region Text field
postcode Text field
telephone Text field
fax Text field
vat_id Text field
street_1 Text field
street_2 Text field
account_data_modification_permission
Boolean (0 for no, 1 for yes)
account_address_book_modification_permission
Boolean (0 for no, 1 for yes)
account_order_history_view_permission
Boolean (0 for no, 1 for yes)
checkout_order_create_permission
Boolean (0 for no, 1 for yes)
checkout_order_approval_permission
Boolean (0 for no, 1 for yes)
checkout_cart_view_permission
Boolean (0 for no, 1 for yes)
checkout_view_permission
Boolean (0 for no, 1 for yes)
checkout_order_placed_notification_permission
Boolean (0 for no, 1 for yes)
force_usage_parent_company_name_permission
Boolean (0 for no, 1 for yes)
force_usage_parent_vat_permission
Boolean (0 for no, 1 for yes)
force_usage_parent_addresses_permission
Boolean (0 for no, 1 for yes)
manage_order_approval_permission
Boolean (0 for no, 1 for yes)
manage_subaccounts
Boolean (0 for no, 1 for yes)

Get more information about the Multi User Account M2 Magento Extension

Find other Magento products at the CreativeMinds Magento Store

Let us know how we can Improve this Product Documentation Page

To open a Support Ticket visit our support center
Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.