Hello Magento Friends,
Today I will discuss How to Unlock Admin User in Magento 2.
Your Magento 2 store may have two or more admin users. Admin users are created to assign different tasks to the members of the team. Learn How to Create New Admin User in Magento 2.
You are trying to login into the admin panel but are unable to log in and receive the below error.
This is because you have been locked by the Magneto system due to some problem or incorrect details.
For safety reasons, the Magento admin user is automatically locked after six login failures. The locked users are seen on the locked user grid of the admin form. Another admin user with administrator permissions can unlock the locked admin user.
After the failure of 6 attempts, the user is locked by the Magento system. So here I will be explaining how to unlock admin users in Magento 2.
Contents
You can unlock the admin user in Magento 2 in two ways – Command line and Admin Panel. Here I will explain both ways in detail.
If you want to unlock the Admin user using Command Line then use the below command
php bin/magento admin:user:unlock [username]
php bin/magento admin:user:unlock magecomp
—> If the admin user is successfully unlocked, you can see the output like this:
The user account “magecomp” has been unlocked
—> If the admin account is either not locked or if there was a problem, the output will be like this:
The user account “magecomp” was not locked or could not be unlocked.
—> If the admin account doesn’t exist, you can see the output like this:
Couldn’t find the user account “magecomp”.
If you want help regarding how to unlock admin users using the command line then use the below command.
php bin/magento admin:user:unlock --help
Step 1: From the Admin Panel, move to System -> Permissions -> Locked Users
Step 2: You will get a list of locked users if any. Select the user you want to unlock by clicking on the checkbox. Select actions as Unlock and then click the Submit button.
This was all about unlocking admin users in Magento 2. You can also get all admin user data in observer in Magento 2. You can even prevent any unusual changes from the backend by an admin user with the help of Admin Actions Log Extension for Magento 2.
If you are still unable to unlock the admin user, reach out to me via the comment section and I will help you solve the problem you are facing. Share the solution with your friends who are dealing with the issue of locked admin users.
Happy Reading!
In this guide, we'll explore how to integrate ChatGPT, an AI-powered chatbot, with a Laravel…
In the world of business, understanding financial metrics is crucial for making informed decisions and…
Welcome to the MageComp Monthly Digest, where we bring you the latest updates, releases, and…
In this era, businesses are always on the lookout for ways to engage with their…
Managing a Shopify store efficiently involves keeping your product catalog organized. This includes removing outdated…
E-commerce has transformed the way consumers shop for products and services and interact with businesses.…