I let my team member tried to login to our self-hosted Odoo 18 Enterprise, but the problem is that the error "Forbidden Access to unauthorized or invalid companies." shows up. I tried to access the link to our login page and the same error shows up. The error might have something to do with companies, but I can't pinpoint where exactly. I need help as to what have caused this error and possible solution. Thanks.
This question has been flagged
Thanks for the replies and I finally figured it out.
I found out that the login page use the default website page we initially created in website module. That website is link to a company that was archived.
I unarchived it in Settings >> User&Companies >> Companies. In order to show up all archived company you have to use custom filter. Then select that archived company, press the Actions button, and select unarchived. Then this solved my problem.
Good to hear that.
This error occurs when the user is not assigned to any valid company in Odoo. Check the user settings and ensure they are linked to an active company under Settings > Users & Companies > Users.
Hi Johnny,
Have you provided allowed companies in the user level as well?
Resolving 403 Forbidden Errors in Multi-Company Odoo Websites
Issue: Website shows "403 Forbidden" because the Public User lacks access to the website's assigned company.
Solution:
Identify Company: Go to Website > Configuration > Settings and check which Company is linked to the problematic website.
Update Public User: Go to Settings > Users (filter for Archived to find Public User / ID 4).
Grant Access: In the Allowed Companies list, ensure the website's company is checked.
Rule: The Public User must have access to all companies that are linked to a website.
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign up| Related Posts | Replies | Views | Activity | |
|---|---|---|---|---|
|
|
2
Apr 26
|
1150 | ||
|
|
1
Aug 25
|
2193 | ||
|
|
0
Mar 26
|
25 | ||
|
|
0
Mar 26
|
3 | ||
|
|
1
Nov 25
|
3609 |