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
- Log in to the admin panel and navigate to System -> All Users.
- On clicking Add New User, you’ll land on the user information tab, where account information is to be filled.

- Activate the account and input the password.

- Assign the user role as per your requirement as shown below.

- Save the user, and it’s done!
Hopefully, you’d get the solution you’re looking for!
Thank You!