Securing Odoo portal access for customers and vendors
Portal security in Odoo comes down to two decisions made for each contact: whether that person gets a portal login at all, and what that login can see once it exists. Consider a business that lets customers and vendors sign in to review quotes, confirm orders and download invoices. Every one of those external users shares the same database as the staff who run sales, purchasing and accounting. The safe default is that no contact has portal access until someone with a business reason grants it, and that access is reviewed when the relationship changes. Teams need this control as soon as external users sign in to the same database, when public website forms create contacts automatically, or when signed links to quotes and orders are sent by email.
According to the Odoo 19.0 documentation, customers and vendors receive portal access when someone grants it from the Contacts app using the Grant portal access action. That action shows the login email address and the latest authentication for the contact, which gives your team a simple starting point for access reviews. Before you roll this out, confirm with your own environment which contact types and groups are offered as portal users, who in your organization is allowed to grant access, and how revocation is recorded. Those answers should be written into your access procedure so that a departing customer contact or vendor employee loses access on a known date.
How to grant and revoke portal access from Contacts
This sequence gives a customer or vendor contact a portal login tied to a known email address, lets you confirm what that person can sign in to, and closes access cleanly when the business relationship ends. Each step ends with a check so the access record matches the relationship.
Open the contact record in Contacts
An administrator or user with rights to the Contacts app opens the customer or vendor record from the Contacts list. Confirm that the record is the company or person you intend to grant access to, and that its email address is the one that person will use to sign in. Check the record before granting anything, because the email on the contact becomes the login identity. The step is complete when the correct contact is open and its email field has been verified.
Select the Grant portal access action
From the contact record, choose the Grant portal access action. Odoo gives the contact portal access through this action, so the contact can sign in to the portal rather than the internal back end. Confirm the menu label in the version you run, because labels can differ between releases. The step is complete when the action has run and the contact shows portal status on the record.
Confirm the login email and latest authentication
Read the portal access details that Odoo displays after the grant. The screen shows the login email the contact will use and the latest authentication time, which is blank until the person signs in. Compare the login email with the address you agreed with the customer or vendor, and correct the contact email first if they differ. The step is complete when the displayed login email matches the agreed address.
Confirm the contact can sign in
Ask the contact, or test with an account you control in a staging copy, to sign in through the portal using the login email. After a successful sign-in, return to the contact record and check that the latest authentication time has updated. If sign-in fails, check the email spelling and whether the contact has been asked to set a password through the invitation flow. The step is complete when a sign-in is recorded against the contact.
Review what the portal user can see
Before the relationship relies on portal access, review the documents the contact can reach, such as quotes, orders, invoices and tickets tied to their own contact record. Confirm that records belonging to other customers or internal notes are not visible to them. Record-level restrictions depend on how the related documents and their access rules are configured, so test with real examples. The step is complete when a portal test account sees only its own records.
Revoke access when the relationship ends
When a customer or vendor relationship ends, open the same contact record and remove portal access using the revoke option available for portal users in the version you run. Confirm the label with your version, since menu wording changes between releases. The step is complete when the contact no longer shows active portal access on the record.
Verify revoked contacts cannot sign in
Attempt a sign-in with the revoked contact's login email, or ask the former contact to try, and confirm the attempt is refused. Then review the contact record to confirm portal access is no longer active and keep a dated note of the change for your access review. The step is complete when a sign-in attempt by the revoked account fails and the record reflects the removal.
Portal exposure options and when each fits
This table compares the portal account patterns a business can choose from for customers and vendors, and the trade-off each one carries. Read each row against how many external people need access, what they should see, and how they sign in. The main takeaway is that the more an external account can see and the more ways it can sign in, the more controls and review it needs before go-live.
| Option | When it fits | Trade-off to weigh |
|---|---|---|
| Portal-only accounts for customers | Customers who need to view their own quotes, orders, invoices and documents and nothing else | Each contact needs its own login, so the contact list must be kept accurate before access is granted or revoked |
| Vendor accounts with narrower visibility | Suppliers who submit bills or confirm purchase orders and should not see other vendors or internal costs | Visibility depends on how records are linked to the vendor contact, so confirm what each vendor can open in a test database |
| Internal users kept separate from portal users | Any deployment where employees hold internal access rights and external people must never see internal menus | Internal and portal accounts need separate administration, and staff who also work with partners need a clear policy on which account they use |
| Local passwords for external users | Small volumes of external contacts where the business manages credentials directly | Password policy, lockout and recovery become the business's responsibility, so pair this with the password and login protections in Odoo |
| Supported external sign-in for external users | Organizations whose partners already use an identity provider or a supported sign-in method, if the deployment confirms it applies to portal accounts | Confirm with the vendor which sign-in methods apply to portal users, since the documented external methods are described for user sign-in in general |
| Two-factor authentication for portal accounts | Portal accounts that expose invoices, bank details or order data, or that sit on a public website | Adds a step for external users, and recovery for locked-out contacts needs a documented process |
How a portal request reaches Odoo records
The diagram starts with a visitor on the public website, who either browses open pages or signs in as a portal user. The request passes through the reverse proxy into the Odoo web layer, where login identifies the contact. Odoo then applies its access checks before any record from the contact's database is returned. Check that the public side never reaches the database directly and that the proxy only exposes the paths you intend.
Portal requests cross a trust boundary at the proxy before any record is read.
What portal users can see and how to limit it
Portal users should only reach records tied to their own contact. A customer or vendor login is meant to show the quotes, orders, invoices and documents that belong to that company, and nothing that belongs to other partners or to internal teams. The control that makes this possible is the contact relationship itself: a portal account is granted from a specific contact record in the Contacts app, so the team must confirm that each contact is linked to the correct company and that shared or parent contacts do not expose sibling records. Before go-live, log in as a test portal user for each partner type and check what the portal actually displays. Do not rely on a sample of one. A login that works for one customer can reveal a different set of documents for a vendor, a child contact or a contact with no company set.
Review the documents, quotes and orders that portal users can open, download or reach by direct link. Walk through the portal menus, the list views, the individual record pages and the attachments on each record, and note anything with internal remarks, margins, cost prices, internal notes or unpublished product details. Confirm these access rules against the Odoo version your team runs rather than assuming the defaults from an earlier release, because portal behavior has changed between versions and the documentation for your version is the reference to check. Ask your implementation partner to document the test accounts, the records used and the results, so the review can be repeated after each upgrade or module change. Record-level restriction, which decides which of a user's records are visible, is covered on the record rules page.
Enforcing 2FA for portal accounts
Two-factor authentication for portal accounts is a policy decision before it is a setting. The cards below cover who the requirement should reach, how locked-out customers and vendors get back in, and how 2FA interacts with sessions. Settle these questions first, then follow the mandatory setup steps on the 2FA hardening page.
Scope: who must enroll
Decide whether 2FA applies to internal employees only or also to customer and vendor portal users. Portal accounts often hold the most exposed data, such as order history, invoices and documents, yet they are created in bulk from the Contacts app and may never have been reviewed. Write down which portal groups are covered and confirm in your Odoo version that the mandatory 2FA setting reaches portal users, not only internal users. Test with a portal account before announcing the change.
Portal access docsRecovery for locked-out users
A customer who loses their authenticator will open a support ticket, so the recovery path must be designed before go-live. Decide who may reset 2FA for a portal account, how the requester's identity is verified (for example, a call-back to the contact's known phone number) and whether recovery codes are issued at enrollment. Without this process, support staff may reset accounts informally, which weakens the control the requirement was meant to add.
Authenticator app support
Confirm which authenticator apps your external users can realistically use, and whether they can enroll from a personal device. Many customers use phones they do not manage, so an approach that depends on a company-issued device will fail. Document the supported apps and the enrollment steps in plain language for non-technical users, since most portal users will never have seen a 2FA prompt before.
Session length and repeated prompts
Session timeouts determine how often a portal user is asked for a second factor. Short sessions protect shared computers but can cause repeated prompts that frustrate customers and push them toward weaker habits. Agree a session length with the business owner of the portal, test the prompt frequency on a real browser, and confirm how the behavior changes after a password reset or a removed device.
Interaction with API access and SSO
Portal users who sign in through an external identity provider or who use API keys may bypass or duplicate the 2FA prompt. Decide whether a federated sign-in counts as the second factor, and whether API keys issued to vendors need a separate control. Map each login path a portal user can take, then test each one. Odoo documents LDAP, Google, Microsoft Azure and Facebook sign-in, so confirm which of these your portal actually exposes.
Signed links for quotes and orders
Odoo lets a business send a customer or vendor a link to a quotation or sales order, so the recipient can view or act on it without a full portal login. The point is convenience for one-off document sharing, but a link is a bearer credential: anyone who holds it can typically open the record, so a forwarded link is the main exposure. Before you rely on this pattern, confirm in the Odoo version you run how the link is generated, whether it is tied to a single contact, whether it carries a token that can be rotated, and whether it works for users who are signed in to a different account. Odoo's portal documentation is the first place to check, and the Odoo 19.0 portal access guide covers how portal access is granted, which is the account the recipient would otherwise use.
Ask three questions and get the answers in writing from your implementation partner or from testing on a staging copy. First, does the link expire, and if so, what is the lifetime and who can change it? Second, can an internal user revoke a link that has already been sent, and does revocation take effect immediately for a recipient who has the page open? Third, what does a leaked link expose: only the single quote or order, or related documents, attachments, delivery addresses, pricing terms or payment links? Do not assume defaults. Record the answers as acceptance criteria, then test them with a link from a second browser and a forwarded copy. For high-value quotes, prefer a portal login with two-factor authentication over a shareable link, and treat any link that cannot be expired or revoked as a risk to accept explicitly.
Reviewing portal exposure on a public website
Once the portal is reachable from the internet, every public page, controller and form becomes part of the attack surface for customer and vendor accounts. The checks below walk from what anonymous visitors can reach, to what they can see and submit, to how traffic reaches Odoo.
Map public controllers and pages
List every route your website and portal expose without a login, including custom modules and third-party apps that add controllers. Each public route should have a reason to be public, such as a contact form or a product page. Check module code for routes declared with auth set to public and confirm each one still needs that setting after your customizations. Anything that returns data about orders, invoices or contacts without a login is a finding to fix before go-live.
Check records visible to anonymous visitors
Log out, then open portal and website URLs that reference record IDs, such as quote or order links, and confirm the page refuses to show other customers' documents. Odoo's portal uses access tokens and record rules to limit what a logged-in portal user sees, so test with a second portal account and with no session at all. Ask the team to confirm that any custom record rule for portal users restricts by the partner on the record.
Review forms and file uploads
Test every public form and upload field for file type limits, size limits and what happens to uploaded attachments. Attachments written to public records may be reachable by URL, so confirm where files are stored and whether they can be opened by someone who guesses the link. Check that form submissions create records with sensible defaults and do not let visitors set fields such as salesperson, company or price. Rate limits should apply to submissions so bots cannot flood the database.
Confirm the portal sits behind the proxy
Verify that the portal hostname reaches Odoo through the same reverse proxy as the rest of the site, with HTTPS, the same header handling and the same request limits. A separate hostname or a direct route to the application server bypasses the controls you configured elsewhere. Ask the operations team to show the proxy configuration for the portal paths and to confirm that the database manager paths are blocked on that hostname too.
Verify login and rate limits on portal paths
Portal sign-in and password reset are common targets for credential guessing. Confirm that the login cooldown and any CAPTCHA settings apply to portal accounts, not only to internal users, and that failed attempts are logged where your fail2ban or SIEM rules can read them. Test a burst of failed portal logins from one address and confirm the response slows or blocks as expected.
Repeat the review after each module change
Each new website module, Apps Store addition or custom controller can open a new public path. Add the public route list, the anonymous record test and the upload test to your change process, and rerun them after upgrades. Keep the results with the staging copy so the next reviewer can see what changed and why it was accepted.
Questions buyers ask about portal security
What drives the cost of securing the Odoo portal?
The main drivers are the number of contacts who will hold portal accounts, how many custom portal pages or controllers you have, and how far testing has to go. A small set of contacts with only standard portal pages is the simplest case. Each added contact group, custom page or integration widens the review of who sees what. Ask any partner to split the quote into discovery and visibility review, configuration, custom page review, and retest, so you can see which line moves with scope. Confirm whether the quote includes a written list of the visibility rules you sign off.
How long does a portal security review usually take?
The duration depends on scope, not on a fixed number of days. A review that covers standard portal access for one contact group can be short, while a review that includes custom portal pages, a public website and a test round of fixes takes longer. Ask for the timeline in the written scope, including who reviews the visibility rules, how many review rounds are included and whether a retest is part of the fixed price. No duration is given here because the scope has not been set.
What does our team need to provide for a portal review?
You need named owners for contact data, usually from sales, customer service or procurement, and someone who can sign off on what each portal group may see. Expect to supply a list of contact types, the documents customers and vendors download, the quote and order views they use, and any custom pages you have built. Without those sign-offs, a reviewer can only describe what the portal exposes, not decide whether it should. Agree on who approves changes before the work starts.
Can our internal team secure the Odoo portal without a partner?
Yes, a capable internal team can grant and revoke portal access from the Contacts app, review the portal pages with the Odoo documentation, and enforce two-factor authentication for portal accounts. The harder part is testing custom controllers and record access for portal users, because that needs a tester who knows what an outsider can request. If nobody on your team has done that testing before, a partner review is a reasonable use of budget. Decide based on who can test the portal as an external user and who will own the result afterwards.
When should we bring in an outside partner for portal security?
Bring in a partner when the portal is public, when it has custom pages or integrations, or when a customer security questionnaire asks for evidence of portal testing. A partner is also useful when your team cannot test as an unauthenticated or low-privilege user. Ask the partner what they will test, what they need from you, and whether the findings come with fixes and a retest. Consider a partner earlier if the portal holds regulated data or if an audit is coming.
Does a portal review include an audit or certification?
No. DeployOpen prepares systems, controls and evidence for compliance assessments, and tests the portal, but it does not issue audit reports, attestations or certifications. Independent auditors and certification bodies do that work. A review can produce the access lists, configuration evidence and test results an auditor will ask for. Confirm with your auditor which evidence they need before scoping the work.
Which portal settings should an engineer check first?
Start with who holds portal access, then check two-factor authentication on portal accounts and whether any signed link for quotes or orders can be reused. Next, test an external account against the pages and records it can reach, including direct record URLs. Finally, look at the public website for pages that expose portal data. Record the result of each check so the retest can confirm the fix. The procedure is described in the Odoo documentation on granting portal access.
What recurring work follows the initial portal review?
Access changes need an ongoing process: granting portal access to new contacts, revoking it when a relationship ends, and reviewing the latest authentication shown on each account. Odoo upgrades and new custom modules can change what portal users see, so retest after each. Ask any partner whether a retainer covers periodic access reviews and retests, and confirm how those are priced in the written scope.
How DeployOpen scopes portal security work
DeployOpen agrees the portal security scope in writing before any configuration changes are made. The written scope names the Odoo version and hosting type, the portal and website pages in use, the customer and vendor populations that will receive access, the signed-link flows for quotes and orders, and the contacts or companies that are out of bounds. It also records who approves access rules on the client side. Most engagements are fixed-scope, so the deliverables and timelines are settled at this stage and not during the build. Ask for the scope to list each portal-facing record type, because a portal user who can reach one document type often has a path to others.
DeployOpen tests what portal users can see on a staging copy before anything goes to production. Staging copies should be made from the production database with neutralization applied, so outbound email and payment integrations do not reach real customers. The test covers a set of named portal accounts with different contact types, and checks whether each account can open its own quotes, orders and invoices, and whether it can see other contacts, company records or internal notes. It also checks what a signed link still exposes after the portal user's access has been revoked, and whether the website publishes anything that should stay behind a login.
Delivery stays inside the client's own infrastructure. The client receives the configuration changes, a record of each test with its result, the evidence used to show access was reviewed, and retest notes after fixes are applied. Confirm with DeployOpen what form the evidence takes and who keeps it, and ask how the retest is scheduled relative to the next Odoo update, since portal behavior can change between releases. DeployOpen prepares these artifacts for the client's own compliance and security reviewers, and does not issue audit reports or certifications.

