From Magento 2 configuration, you can create admin user accounts as many as you need but they will be set in different access level if you ask. For example, you can assign the view and change only for websites or stores without any global settings or data. Online merchants need to restrict the admin access to ensure the management tasks are not overlapped. Moreover, it also enhances a website’s security if the store owner wants to protect particular data.

To limit the access permissions for admin user accounts, you can complete the required credentials on the Magento Administrator, that will describe in details in the tutorial I am writing here.

Steps to Create New Admin User in Magento 2:

Step 1: Configure User Information

First, you have to add the user’s information such as name, email, password, and other details.

  • On the Admin panel, click System. In the Permissions section, select All Users.
  • In the upper-right corner, click Add New User button
  • In the Account Information section, do the following:
New User Information
  • In the User Name field, enter the user name for account. It is not case-sensitive.
  • Complete the following information:
    • First Name
    • Last Name
    • Email address: this email address must be unique.
  • In the Password and Password Confirmation field, enter the password correctly. The password should be secured, should contain more than seven characters and should include both letters and numbers.
  • In the Interface Locale field, select the language to be used for the Admin interface if your store has multiple languages.
  • In the This Account is field, set to Active
  • In the Current User Identity Verification section, enter your password in Your Password.
User Identity Verification

Step 2: Determine User Role

In this step, you are going to set the particular role for the admin account that you have just created.

  • In the panel on the left, choose User Role. The grid lists all the existing roles. Initially, the only role available is Administrators.
Determine User Role
  • In the Assigned column, select the Administrators option.
  • When complete, click Save User.

Step 3: Check result

Flush cache and check your result.

Create admin account via command line

Another way to create an admin account / user, we can create a new admin user via command line (cli). Here is how to do it.

Go to Magento 2 root folder, run create a new admin user command line:

bin/magento admin:user:create

It will ask you: username, password, email, first and last name.

Here is what we filled:

Admin user: mavenbird
Admin password: YourPassword
Admin email: [email protected]
Admin first name: Mavenbird
Admin last name: Team

And get result:

Created Magento administrator user named mavenbird
Create Admin And Password

Flush cache and check your result.

The bottom line

Today we have looked at how to create a new admin user for your Magento 2 store, as well as configure admin’s store access permissions. You can easily do this in the backend or via command line as you wish, both in a blink of an eye. I hope this tutorial is helpful for you, so feel free to leave comments and questions for this topic down below.