Access denied error in Magento admin panel
Do you have safe credentials? Your credentials are your identity. Yes! Locking up the personal details is must in this technology world. It’s easy to grab all your things in one minute. At times, there are some situations where you get locked in using credentials.
“Access Denied” – You are not authorized to log in the panel or website. It may be because of roles assigned wrongly and entering wrong admin details mistakenly. A person who doesn’t have proper role or rights to view the page or panel is returned with the message “Access Denied”. So, you must have the proper right or permission to view the panel or website.
Most probably, users like Magento will often get messages “Access Denied”. Not only for the panel but also a custom module, you must need the right permission to access it.
In short, let us list the problems:
Use the command line for resetting the password. Here’s the command line:
How to assign proper role?
Step 1: In the Magento admin panel, go to system and then click on option “permission”.
Step 2: From the permission option, choose “user” and then tap on “Click on a user”.
Step 3: Select user roles.
It usually appears normal when you log in again but sometimes, it gets failed. You will get another hand from login as an admin user to reset privileges of admin.
Let us learn how to set the admin privileges:
Step 1: In the admin panel, search for the option “System”. Tap on the option permission from the system and then click roles.
Step 2: Select the choice “Click administrator role” and then click on “Role resource”. Change it as “set it to all” and then save the role.
Note: By now, you have all the rights to change or modify the new extension.
Once if you fix the problems in config.xml and system.xml file, there won’t be any problem in a custom module.
We have countered four solutions to fix Access Denied problem. So, don’t worry in future if you get access denied problem. You are an expert now to solve it!
Do you have safe credentials? Your credentials are your identity. Yes! Locking up the personal details is must in this technology world. It’s easy to grab all your things in one minute. At times, there are some situations where you get locked in using credentials.
“Access Denied” – You are not authorized to log in the panel or website. It may be because of roles assigned wrongly and entering wrong admin details mistakenly. A person who doesn’t have proper role or rights to view the page or panel is returned with the message “Access Denied”. So, you must have the proper right or permission to view the panel or website.
Most probably, users like Magento will often get messages “Access Denied”. Not only for the panel but also a custom module, you must need the right permission to access it.
In short, let us list the problems:
- A proper role or access right should be given to the new user.
- Entering incorrect admin panel login details.
- Installing the extension of Magento by using the tool downloader.
- Credentials entered wrongly:
Use the command line for resetting the password. Here’s the command line:
Code:
UPDATE `admin_user` SET `password` = MD5('PASSWORD') WHERE `username` = 'USERNAME';
- User allotted with incorrect role:
How to assign proper role?
Step 1: In the Magento admin panel, go to system and then click on option “permission”.
Step 2: From the permission option, choose “user” and then tap on “Click on a user”.
Step 3: Select user roles.
- New extensions with no privileges:
It usually appears normal when you log in again but sometimes, it gets failed. You will get another hand from login as an admin user to reset privileges of admin.
Let us learn how to set the admin privileges:
Step 1: In the admin panel, search for the option “System”. Tap on the option permission from the system and then click roles.
Step 2: Select the choice “Click administrator role” and then click on “Role resource”. Change it as “set it to all” and then save the role.
Note: By now, you have all the rights to change or modify the new extension.
- Custom module issue:
Once if you fix the problems in config.xml and system.xml file, there won’t be any problem in a custom module.
We have countered four solutions to fix Access Denied problem. So, don’t worry in future if you get access denied problem. You are an expert now to solve it!