How to Create A New Admin User in Magento 2

how to create new admin user in magento 2 tutorial

In Magento 2, we are allowed to create multiple admin user accounts with different levels of access and responsibilities. For instance, admin A is assigned to manage store view A only and has no permission to make any changes to store view B.

If you are a Magento store owner, you should know how to create a new admin user in order to optimize the management process.

In this tutorial, we will show you two common ways to add a new admin user in Magento 2 – by command execution and backend configuration. Let’s get started!

The 1st Approach: Executing a simple command to create a Magento 2 admin user

In this method, you need to open your SSH terminal and access to your server. Then, go to the Magento 2 root directory and run the following command:

php bin/magento admin:user:create --admin-user='loki' --admin-password='admin123

After running that command successfully, you will immediately get this message: “Created Magento administrator user named loki”. Now, open your admin panel and access the account that you have created.

The 2nd Approach: Creating admin user directly from the Magento 2 backend

There are two quick steps to create a Magento 2 admin user from your admin panel:

Step 1: Provide the required user information

To begin with, you must go to your admin panel, navigate to SYSTEM, and choose All Users under Permissions (Admin Panel => SYSTEM => All Users) as the following:

Next, you must click on the Add New User button in the upper-right corner:

After that, you have to configure the User Info by providing all Account Information (including User Name, First Name, Last name, Email, Password, Interface Locale) of the new admin user, activating this new account and creating a password for Current User Identity Verification.

If you want to set a specific language for the admin interface of this new account, just select one from the Interface Locale options.

Step 2: Assigning admin role for the new account

Now, switch to the User Role tab on the left panel to define the role of this new admin account.

In the Assigned column, you have to mark the checkbox to set the new account as Administrators. Finally, click on the Save User button to complete all settings.

We have shown you two easy methods to create a new admin user on Magento 2 websites. If you have any problem when following our instructions, feel free to leave a comment so that we can help!

Leave a Reply

Your email address will not be published. Required fields are marked *