How to Create New Admin User in Magento 2

Sometimes, a Magento 2 (Adobe Commerce)store is managed by multiple people. There may be a requirement when all the store managers need the full rights, or the store owner may need to limit access to managers based on their responsibilities. Also, there is a time when you need to provide temporary access to your store. It’s when you need to create a new admin user in Magento 2.

Creating multiple admin users simplifies the store’s administration and management. Each admin plays a unique role in the store’s functioning. After doing this in Magento 2 create admin menu which will help you access any custom page in the admin panel.

Losing admin passwords is also a possibility when these methods will be useful to you!

Methods to Create New Admin User in Magento 2:

1. Using the Command Line

Launch the SSH terminal and connect to your Magento 2 (Adobe Commerce)store. Go to the root directory of your Magento 2 store and run the following command:

php bin/magento admin:user:create --admin-user=admin --admin-password=admin123 [email protected] --admin-firstname=the --admin-lastname=meetanshi

When the execution of the command is completed, the success message is displayed.

2.  Using the Admin Panel

  1. Log in to the admin panel and navigate to System -> All Users.
  2. On clicking Add New User, you’ll land on the user information tab, where account information is to be filled.
1_added-users
  1. Activate the account and input the password.
2_Add-new-user
  1. Assign the user role as per your requirement as shown below.
3_User-role
  1. Save the user, and it’s done!

Hopefully, you’d get the solution you’re looking for!

Thank You!

Sanjay Jethva

Article by

Sanjay Jethva

Sanjay is the co-founder and CTO of Meetanshi with hands-on expertise with Magento since 2011. He specializes in complex development, integrations, extensions, and customizations. Sanjay is one the top 50 contributor to the Magento community and is recognized by Adobe. His passion for Magento 2 and Shopify solutions has made him a trusted source for...