Create an admin user account in Magento 2

Create an admin user account in Magento 2

You can create an admin user in Magento 2 either from admin or using ssh.

Admin:- Steps to create an admin user account in Magento 2.

Step 1: Login to your admin.

Step 2: Go to System >Permissions > All Users.


Step 3: Click on Add New User.


Step 4: Fill up all required fields.


a.) User Name: –Enter your user name.

b.) First Name: –Enter your first name.

c.) Last Name: –Enter your last name.

d.) Email: –Enter valid email address which must be unique.

e.) Password: –Enter a strong password (alphabet, numeric, special, character).

f.) Password confirmation: –Re-enter the same password.

g.) Interface Locale: –Select language from dropdown menu if you want to set language.

h.) Select active from dropdown menu.

i.) Enter your currently logged in password.

Step 4: Click on User Role from the USER INFORMATION tab and set the role of the user.


Step 5: Click Save User button.



  1. Go to Magento 2 root directory and run the bellow command to create user.
  2. php bin/magento admin:user:create –admin-user=’Enter admin user name’ –admin-password=Enter Password–admin-email=Enter Email–admin-firstname=Enter First Name–admin-lastname=’Enter Last Name
  3. Shortcut of the above command php bin/magento a:u:c

e.g. php bin/magento admin:user:create --admin-user='test' -- admin-password='test@123' --admin-email='' --admin-firstname='Test' --admin-lastname='Test

Once the command is executed, you will get a success message like:

Created Magento administrator user named test

Please contact us at or call us at +91-8800519180 for any support related to Magento 2. You can also visit the Magento2 development page to check the services we offer.