1

I was creating user roles & permission as an admin in Magento 2, then I mistakenly denied myself permission to add roles and permission. Now It's showing "Access denied". I can't add or change my roles, and I know this is not an error or bug but a silly mistake from me. Please, how can go about that?

0

Please create new admin user by command line and then assign role to existing user.

$ bin/magento admin:user:create --admin-user="newadmin" --admin-password="yourpassword" --admin-email="mail@example.com" --admin-firstname="newAdmin" --admin-lastname="newAdmin"
  • thank you for the response, do I have to assign the role using command line too? – Aasim Yaz Jun 20 '18 at 13:30

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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