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.

create_user

Step 3: Click on Add New User.

add_new_user

Step 4: Fill up all required fields.

account_information

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.

user_role

Step 5: Click Save User button.

save_user

SSH:

  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='test@test.com' --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 manish@bay20.com 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.