I am using this MageREST Framework in PHP for Magento 2.1.3 Installation.

But I am getting this error-

401 Unauthorized` response:
{"message":"You did not sign in correctly or your account is temporarily disabled."}

3 Answers 3


You Just Run this Command in Magento Root.

php bin/magento admin:user:unlock <username>

It's Working after remove cache and generation folder..


Create New User. Run this command in your magento root folder

sudo php bin/magento admin:user:create --admin-user="ketan" --admin-password="admin@123" --admin-email="[email protected]" --admin-firstname="Ketan" --admin-lastname="Borada"
  • No its wrong..why you create another one?? you can unlock admin. Commented Jun 11, 2017 at 6:35
  • It's alternative method.When user not unlock Commented Jun 12, 2017 at 5:24

Change password by using below query in mysql

UPDATE admin_user SET password = CONCAT(SHA2('xxxxxxxxNewPassword', 256), ':xxxxxxxx:1') WHERE username = 'admin';

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.