Categories: Magento

How to create an admin user in Magento 2

To create an admin user in Magento 2, follow these steps:

Step 1: Access your Magento Installation
Ensure that you have access to your Magento 2 installation and administrative privileges to create new admin users.

Step 2: Open the Command Line Interface (CLI) or SSH into your Server
To create an admin user, you need to execute a command via the Command Line Interface (CLI) or SSH into your server.

Step 3: Navigate to the Magento Root Directory
Using the CLI or SSH, navigate to the root directory of your Magento 2 installation.

Step 4: Create the Admin User
Run the following command to create a new admin user:

“`
php bin/magento admin:user:create –admin-user=<username> –admin-password=<password> –admin-email=<email> –admin-firstname=<firstname> –admin-lastname=<lastname>
“`

Replace `<username>`, `<password>`, `<email>`, `<firstname>`, and `<lastname>` with the desired values for your admin user. Make sure to remember the username and password as you will need them to access the admin panel.

For example, the command could look like:

“`
php bin/magento admin:user:create –admin-user=admin –admin-password=admin123 –admin-email=admin@example.com –admin-firstname=John –admin-lastname=Doe
“`

Step 5: Configure the Admin User Role (Optional)
By default, the newly created admin user will have full administrative privileges. If you want to assign a specific role to the user, you can do so using the Magento admin panel.

Log in to the Magento admin panel using the newly created admin user credentials.

Navigate to “System” > “User Roles” and click “Add New Role”. Create a new role and assign the desired permissions to it.

After creating the role, navigate to “System” > “All Users” and edit the newly created admin user. Assign the role you created to the user.

Step 6: Access the Admin Panel
Once you have created the admin user and assigned the appropriate role, you can access the Magento admin panel using the following URL:

“`
http://your-magento-store.com/admin
“`

Replace `your-magento-store.com` with the URL of your Magento store.

Enter the admin username and password you created during the user creation process.

Congratulations! You have successfully created an admin user in Magento 2. You can now log in to the admin panel and manage your store’s settings, products, orders, and more.

Article by: Web Designers Near Me | Author: Joseph Cozens – Senior Website Designer

With over 25 years experience, Joseph started as the leased line manager for an ISP in the 1990’s and built websites for the support team internally, but was often asked by corporate business customers if we could provide a website for their company. So in 1998 with people looking for website designers near me, he started the web design company building websites part time, and in 1999 started building websites full time. In the early 2000’s we decided to call ourselves DesignsOnline.co.uk Joseph built one of the first online medical schools allowing doctors worldwide to enrol and pay for medical statistics training via the internet… Joseph used to build bespoke content management systems for companies who needed to regularly update their websites and for bespoke ecommerce websites which were hand coded at the time.

Today Joseph develops and builds top level professional websites without the needlessly high price tag.
You can contact Joseph directly via WhatsApp on 07944062954.

Web Designers Near Me

With over 25 years experience, Joseph started as the leased line manager for an ISP in the 1990's and built websites for the support team internally, but was often asked by corporate business customers if we could provide a website for their company. So in 1998 with people looking for website designers near me, he started the web design company building websites part time, and in 1999 started building websites full time. In the early 2000's Joseph built one of the first online medical schools allow doctors worldwide to enrol and pay for medical statistics training via the internet.