
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.

Need help? - Get a Quote in under a minute

Stephanie & Joseph are Award Winning London Web Designers at The UK Web Design Company who are ready to help you with your website today.
Just take a couple of seconds to fill out this quick easy form and we will contact you right back
Need help? - Get a Quote in under a minute from the best web designers near you

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.
Need help? - Get a Quote in under a minute

Need help? - Get a Quote in under a minute

Stephanie & Joseph Award Winning London Web Designers at
The UK Web Design Company are ready to help you with your website
Just take a couple of seconds to fill out this quick easy form and we will contact you right back
Need help? - Get a Quote in under a minute from the best web designers near you