Import/Export Add-On

The Import/Export add-on (MageB2B_StaffImportExport) adds bulk tooling for staff accounts:

  • Export selected staff users from the Admin grid as CSV
  • Import staff users from a CSV via a CLI command

Installation

composer config bearer.repo.softwaresilo.io composer config repositories.softwaresilo composer https://repo.softwaresilo.io/ composer require mageb2b/staff-importexport:* php bin/magento module:enable MageB2B_StaffImportExport php bin/magento setup:upgrade php bin/magento cache:flush

Admin Export (Grid Mass Action)

After enabling the module you get an Export mass action in:

  • Staff >All Staff

Workflow:

  1. Select one or more staff users in the grid
  2. Choose Export
  3. Magento downloads a generated CSV

Screenshot placeholder: Staff grid with “Export” mass action

Export Format Notes

  • Passwords are not exported.

CLI Import

The module provides a CLI command:

php bin/magento staff:import-staff --behavior=add_update

Supported behaviors:

  • append
  • add_update
  • replace
  • delete

Optional flags:

  • --field_separator=,
  • --field_multiple_value_separator=,
  • --fields_enclosure=0
  • --delete_file_after_import=1 (defaults to 1)

Screenshot placeholder: CLI import run + resulting staff users in admin grid

Import Settings

Location: Stores >Configuration > MageB2B > Staff > Import settings

  • staff/import/send_email_on_new_account_creation
    • Default: No
    • If enabled, imported staff users receive the “new account” email after a successful import.

Sample CSV

A sample CSV file is shipped with the module:

  • vendor/mageb2b/staff-importexport/Files/Sample/staff.csv

Tip: Export a few existing staff accounts and use that CSV as your template (this avoids missing fields).

Found an issue with this documentation? Let us know