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?
1 Answer
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="[email protected]" --admin-firstname="newAdmin" --admin-lastname="newAdmin"
-
thank you for the response, do I have to assign the role using command line too? Jun 20, 2018 at 13:30