I Get “The Consumer Isn’t Authorized to Access %resources” Error in Magento 2 – How to Fix It?

I Get “The Consumer Isn't Authorized to Access %resources” Error in Magento 2 How to Fix It?

If you’re seeing this error while configuring the Magento 2 connector in Odoo:

“The consumer isn’t authorized to access %resources”

It means your Magento 2 integration doesn’t have the required API permissions to access certain endpoints.

What Causes This Error?

This error occurs when the Magento 2 integration (created under System → Extensions → Integrations) is missing access to API endpoints the VentorTech Odoo connector needs.

The connector uses various Magento 2 API routes to:

  • Synchronize products and inventory

  • Import orders and customers

  • Update stock levels

  • Manage shipments and invoices

If any of these permissions are missing, the error appears.

How to Fix It

Quick Fix (Verify Full Access)

  1. Go to Magento Admin → System → Extensions → Integrations

  2. Click on the integration you’re using for the Odoo connector

  3. Click the API tab

  4. Verify that Resource Access is set to All

image-20250625-122027.png
  1. If not, change it to All and click Save

  2. Test the connection again from Odoo

If the error persists, continue to the next section.

Recommended Approach (Limited Permissions)

While setting Resource Access to “All” resolves this error, we recommend using limited permissions for better security. This follows the principle of least privilege – granting only the access the connector actually needs.

To use limited permissions instead:

  1. In the Resource Access field, select Custom (not “All”)

  2. Check only the required permissions for the VentorTech connector

  3. For a complete list of required permissions and detailed setup instructions, see: How Do I Secure My Magento 2 API Integration with Limited Permissions?

Using limited permissions provides the same functionality with better security. If you encounter 403 errors with limited permissions, it means you’re missing a specific permission—add it and re-test.

Still Having Issues?

If the error persists even after granting full access, or if you need help with limited permission setup, please contact our team at support@ventor.tech or through our support portal.

We’ll help you review your API configuration and ensure smooth communication between Odoo and Magento 2.

Related Posts