This guide helps you set up your Magento 2 API integration securely by granting only the permissions the VentorTech Magento 2 connector needs. This follows the security principle of least privilege – giving access only to what is absolutely necessary.
Why should I limit API permissions?
Even if your API token is compromised, limiting permissions reduces potential damage:
An attacker can only perform operations the token permits
They cannot modify Magento settings or manage users
Configuration changes and sensitive operations are blocked
Your business risk is significantly lower
This is why we recommend Custom resource access instead of “All Resources.”
What are the required permissions for VentorTech Magento 2 connector?
Your integration needs access to these resources and nothing else:
Catalog Section:
☑ Inventory
☑ Inventory → Products → All Products
☑ Inventory → Products → Update Attributes
☑ Inventory → Categories
Sales Section:
☑ Operations → Orders → Actions
☑ View
☑ Edit
☑ Ship
☑ Invoice
☑ Cancel
Customers Section:
☑ All Customers
☑ All Customers → Actions
Do NOT check: Dashboard, Analytics, Reports, Configuration, or any other sections. Do NOT check “All Resources.”
How to review and update permissions?
Step 1: Create or edit your integration
Log in to your Magento 2 admin panel
Go to System → Extensions → Integrations
Click Add New Integration (or click an existing one to edit)
Enter integration name:
Odoo ConnectorEnter your admin password
Click Save
Step 2: Configure resource access
Click on your integration to edit it
Click the API tab
Select Custom for “Resource Access” (NOT “All”)
Use the checklist above to check only the required permissions
Click Save
Step 3: Enable required Magento settings
Go to Stores → Settings → Configuration → SERVICES → Magento Web API → Web API Security
Set Allow Anonymous Guest Access to Yes
Go to Stores → Settings → Configuration → SERVICES → OAuth → Consumer Settings
Set Allow OAuth Access Tokens to be used as standalone Bearer tokens to Yes
Click Save Config
Step 4: Activate and get your token
Return to System → Extensions → Integrations
Click Activate on your integration
Click Allow to confirm
Copy the Access Token shown
Store it securely in your Odoo connector configuration
Troubleshooting
I’m getting “403 Forbidden” errors
Cause: Your integration is missing a required permission for that specific operation.
Solution: Check which endpoint is failing and verify the corresponding permission is enabled in your integration settings.
For detailed troubleshooting steps: I Get “The Consumer Isn’t Authorized to Access %resources” Error in Magento 2 – How to Fix It?
My integration token is no longer working
Possible causes:
Integration was deactivated or deleted
Token was manually revoked
Magento instance was reset
Solution:
Go to System → Extensions → Integrations
Verify your integration exists and is Active
If missing, recreate it using the steps above
Generate a new token and update your Odoo configuration
Should I use the same token in multiple Odoo instances?
No. Create a separate integration and token for each Odoo instance:
Easier to deactivate one instance without affecting others
Better security isolation
Clearer audit trail of which system did what
Simpler troubleshooting if one instance has issues
What if I suspect my token has been compromised?
Immediate action:
Go to System → Extensions → Integrations
Click Deactivate on your integration (this invalidates the old token immediately)
Click Activate again to generate a new token
Update your Odoo connector with the new token
The old token becomes useless once deactivated.
Questions?
If you have additional questions about API security or permissions, please contact us at support@ventor.tech or through our support portal.