How to create new admin user in Magento 2

Steps To Create New admin User In Magento 2


You can create a new admin user in Magento 2 by using two methods:

 

  • Using the command line
  • Using Admin panel

Method# 1:

USING COMMAND LINE:


Using the command line is an easy and fastest way to add a new admin user in Magento 2. We just need to run only one command in the terminal.

Open the terminal of the Magento 2 root folder of your project and run the following command, to create a new admin user. 

$ php bin/magento admin:user:create

When you will run this command in the terminal it will ask you five parameters to add your new admin user 

  1. Admin user: admin
  2. Admin password: Your password
  3. Amin email: admin@example.com
  4. Admin First name: admin first name
  5. Admin Last name: admin last name 

Result:
Created Magento 2 administrator user named admin  

Now flush or clear cache: 

$ php bin/magento c:f      (command for flush the cache)
$ php bin/magento c:c      (command for clean the cache)

Method# 2:

USING ADMIN PANEL:


Go to the admin panel sidebar > system > All user 

Magento 2 admin panelMagento 2 admin panel
Magento 2 admin panel

 

  • Now click on the Add New User Button, to add a new admin user.
add new user  in Magento 2 admin add new user  in Magento 2 admin

 

  • In the section of User info, Fill the required fields for Account information.
add user info in Magento 2 admin add user info in Magento 2 admin

 

  • In the section of User Role, set the role for the user. In Magento 2 Administrator is the default role.
add new role  in Magento 2add new role  in Magento 2

 

  • After completing User Information, click on the Save User button.

If you need a Magento Developer, visit Magento Development Agency.