How to Unlock Admin User in Magento 2

Ever got locked out of your Magento 2 admin panel?

Have you ever got this error message while logging in that says:

You did not sign in correctly or your account is temporarily disabled.

unlock error message

It looks something like shown in the below image:

Not allowing to log in to the admin panel after several attempts is frustrating. Especially, when you are in a hurry to implement something or complete your administrative tasks.

Magento admin panel shows this kind of error message because of numerous reasons. Some of those are:

  • Attempting the wrong user name or password more than one time.
  • Admin panel gets locked because of trying failure request

Don’t bother, just implement the solution to unlock admin user in Magento 2.

Solution to Unlock Admin User in Magento 2:

Use the below command in the command line of your store.

php bin/magento admin:user:unlock [username]

e.g:

php bin/magento admin:user:unlock meetanshi

Here, “meetanshi” is a username.

Simple! isn’t it?

Don’t forget to share this solution with Magento Community via social media.

Thank you.

Table of Contents