How To Unlock Admin User In Magento 2

In this post, I will guide you on How To Unlock Admin User In Magento 2. You really want to log in to the admin panel but are prevented by your account is blocked due to some problem. This is really annoying, it will delay your work.

There are reasons you’ve been locked out of your account, which could be entering the wrong password multiple times or trying multiple failed requests.

If your admin account is locked you will see an error message like following picture:

Account is temporarily disabled

Unlock Admin User In Magento 2

1. Command line

You can run the below command to unlock admin account:

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

[username] is username of locked user.

For example:

php bin/magento admin:user:unlock test

If successful, you can see the output like this:

The user account "test" has been unlocked

If the account is either not unlocked or if there was a problem, the output like this:

The user account "test" was not locked or could not be unlocked

And if the account doesn’t exist, you can see the output like this:

Couldn't find the user account "test"

2. Admin Panel

1. Log in to Admin Panel.

2. On the Admin Panel sidebar, go to System > Permissions > Locked Users.

On the Admin Panel sidebar, go to System > Permissions > Locked Users

At here, you can see the locked users list.

At here, you can see the locked users list

3. To unlock for them, tick to box to choose users who you want to unlock.

Tick to box to choose users who you want to unlock

4. Choose Unlock action and click Submit button.

Choose Unlock action and click Submit button

So the accounts are unlocked

So the accounts are unlocked

Follow us for the more helpful posts!

We hope this is a useful post for you.

You can read more useful posts like How To Disable Compare Products In Magento 2.

Thank you for reading!

4.7 3 votes
Article Rating

Aaron LX

Aaron is a passionate writer, crazy about shopping, eCommerce and trends. Besides his outstanding research skills and a positive mind, Aaron eagerly shares his experience with the readers.

Leave a Reply or put your Question here

0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x