DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’»

DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’» is a community of 970,177 amazing developers

We're a place where coders share, stay up-to-date and grow their careers.

Create account Log in
Rafael CorrΓͺa Gomes
Rafael CorrΓͺa Gomes

Posted on • Updated on • Originally published at blog.rafaelcg.com

How to import and export admin users on Magento 2?

Your admin users data are on the tables admin_user and admin_passwords in your Magento 2 database, you can use these commands to export and then import in your second store:

Export

$ mysqldump -p --user=username dbname admin_user admin_passwords > myAdminUsers.sql
Enter fullscreen mode Exit fullscreen mode

Import

$ mysql -u username -p -D dbname < myAdminUsers.sql
Enter fullscreen mode Exit fullscreen mode

Important

If you use a database prefix, don't forget to use on these commands above.

Oldest comments (0)

🌚 Turn on dark mode

πŸ”  Change your default font

πŸ“š Adjust your experience level to see more relevant content

Head to your account's Settings to do all this and more.