Why Odoo API keys and integration users need a plan before the first integration
An integration that reads or writes Odoo records has to run under some user, and someone must decide which one before the first call is made. In Odoo, an API call acts with the rights of the user who owns the key. A key tied to an administrator account therefore gives the integration everything that administrator can see and change, and the audit trail will show that administrator's name for every automated action. Choosing the user, the rights and the key lifetime is a design decision, and it is far cheaper to make it at the start than to unwind a shared admin key after several systems depend on it.
Before designing anything, confirm that your plan and hosting allow external API access at all. Odoo's pricing page states that external API access is included in the Custom plan, and that only the Custom plan can be hosted on Odoo.sh or on-premise. Odoo Online plans on other tiers may not offer it, so check this against your contract and your hosting before scoping the integration. For the version you run, confirm how API keys are created, how long they last, and whether they can be rotated or revoked without changing the user, because these details differ between releases and between hosting types.
This page covers the controls that sit around the integration: a dedicated bot user with minimum rights, scoped access, key duration and rotation, programmatic key generation and revocation, and an audit of which key did what. Each of these depends on the others. A narrow bot user limits the damage from a leaked key, a short key lifetime limits how long a leaked key stays useful, and logs tied to a dedicated user make it possible to answer who changed a record. Plan these together, and confirm the exact settings and log views in the documentation for your version before you commit to a design.
Credential options and when each fits
This table compares four ways to authenticate an integration to Odoo, from a personal user key to a dedicated user restricted by record rules. Read each row against your own integration's data and actions, then confirm the controls in your Odoo edition before choosing. The main takeaway is that a dedicated integration user with narrow groups is usually the default, and record rules add limits only where the user's access groups alone are too broad.
| Option | When it fits | Main risk | What to confirm |
|---|---|---|---|
| Personal user key | A short-lived one-off script run by the person who owns the data and is present to supervise it | Key outlives the employee's role, actions are logged under a person, and access follows their rights even after they change jobs | Whether your offboarding process revokes keys tied to that user and who can see the key |
| Shared admin key | Almost no production case; sometimes seen in early testing on a duplicate database | Broad rights across all models and companies, and no way to tell integrations apart in the audit trail | Whether a single integration can be given narrower access without redesigning it, which usually it can |
| Dedicated integration user with narrow groups | Recurring syncs, webhooks or reporting that need a defined set of models and actions | Group assignments drift over time, and the user may still see more companies or records than the integration needs | Which access groups the integration needs, and a periodic review of those groups against the integration's documented calls |
| Dedicated user with record rules for a company or model | Multi-company databases where one integration must only read or write one company or a subset of records | Record rules are easy to misconfigure, and they limit only what the rules describe, not every method the user can call | Your edition and plan support for the rules you need, plus a test that confirms another company's records are unreachable |
How to set up a dedicated integration user and API key
This sequence takes an integration from a plan check to a tested, auditable credential, so each connection to Odoo runs under its own least-privilege identity that can be rotated or revoked without affecting other systems.
Confirm plan and hosting allow external API access
Before creating anything, check that your Odoo plan and hosting type include external API access. Odoo's pricing page states that only the Custom plan includes external API access, and that only Custom can be hosted on Odoo.sh or on-premise. Confirm this with your Odoo account contact and record the plan, hosting type and Odoo version in the integration design document. Done when the record names a plan that includes external API access and the version the integration will target.
Inventory each integration and the models it touches
List every system that will call Odoo, the business purpose of each call, and the Odoo models and fields it reads or writes, such as sale.order or res.partner. Include scheduled jobs, middleware and any reporting extract. Mark each model as read-only or read-write and note which fields contain personal or financial data. Done when every integration has one row listing its models, operations and data sensitivity, and a reviewer from the owning team has signed off the list.
Create one bot user per integration
In Settings, create a separate internal user for each integration instead of reusing a person's login or a shared administrator account. Name it for the system and owner, for example a clearly labeled integration account, and set a unique email address that is monitored by the platform team. Keep the user inactive for login by people and disable interactive sign-in where your Odoo edition allows it. Done when each integration has its own user record and no two integrations share an identity.
Assign minimum access groups and record rules
Give each bot user only the access groups needed for the models listed in step two, choosing read-only groups wherever writes are not required. Review record rules for those models so the user sees only the companies, teams or records the integration needs. Avoid the administrator group and avoid broad technical groups unless a documented need exists. Test the access by reviewing the user's effective rights in the Odoo interface. Done when the rights review matches the inventory and the sign-off records any group that is wider than read-only.
Generate the API key and set its scope and duration
Sign in as the bot user, or open its preferences as an administrator, and generate an API key from the account security settings. Record the key's purpose, the integration it belongs to and the date it was issued. Check whether the key's duration and any scope options available in your Odoo version match your rotation policy, and confirm the details with Odoo documentation for that version. Done when the key exists, its description identifies the integration, and the rotation date is written into the integration record.
Store the key in a secrets manager
Place the key in your organization's secrets manager and grant read access only to the service or runtime that calls Odoo. Do not paste the key into source code, shared documents, chat, ticket comments or CI variables visible to every project. Configure the integration to read the key at runtime, and confirm that logs and error messages from the integration do not print it. Done when the key is retrievable only by the intended workload and a log scan of a test run shows no key value.
Test with a read call on a duplicate database
Run a read-only call with the new key against a duplicate of the production database, not production itself. Use a small, known search such as reading a few partner records, and confirm the response matches the expected model and fields. Then attempt one write the user should be denied, and confirm Odoo refuses it. Odoo documents database duplication with neutralization for test copies, so use that path to keep test data safe. Done when the read succeeds, the forbidden write fails, and both results are recorded.
Verify the audit trail and revocation path
After the test, check that Odoo's logs and chatter or tracking records show the bot user as the actor for the test calls, so every change can be attributed to the integration. Confirm that the team can disable the bot user or revoke its key and that the integration fails cleanly when that happens. Document who can do this and how fast it is to execute in your own runbook. Done when a test action appears under the bot user's name and a revocation test produces the expected failure without affecting other integrations.
Security practices for rotation, revocation and audit
Once an integration is live, the risk moves from setup to upkeep: keys outlive the people who created them, and integrations get retired without anyone removing their access. The cards below cover the practices that keep those credentials under control, and each one depends on the same question: can you tell which key did what, and can you cut it off quickly?
Set rotation by client policy
Rotation frequency should come from your own credential policy, not from a default chosen by the integration team. Decide per integration how often a key is replaced, who approves the change, and how the old key is retired. Odoo does not impose a single rotation schedule for API keys, so confirm in your version how keys are created, listed and removed, and build the rotation runbook around that. Test the process on a duplicate database first so a rotation does not break a live sync.
Revoke immediately on retirement or leak
Two events require revocation without waiting for the next rotation: an integration is switched off, or a key is exposed in a repository, log file or ticket. Revoke the key in Odoo first, then rotate any system that held it. Make revocation part of the decommissioning checklist for every integration, and assign one owner who can act outside business hours. Record the time of revocation, because that timestamp is the boundary you will use when reviewing activity.
Separate keys by environment
A key used in a test database should never work against production, and a staging integration should not share credentials with the live one. Create separate integration users and keys for each database, and name them so the environment is obvious in the audit trail. Keep production secrets in your secrets manager, not in developer configuration files. Confirm how your Odoo hosting type handles multiple databases and whether each key is bound to one database.
Restrict who can generate keys
Key generation is a privileged action, because a new key carries whatever rights its integration user holds. Limit the people who can create keys to a small administrator group, and keep integration users out of that group so a bot cannot mint credentials for itself. Review the access rights of administrators who can impersonate or edit integration users. Document the approval step for each new key so that generation is traceable to a request.
Review which key performed each action
Periodic review means checking that each action in the database maps to an expected integration and an expected key. Look for activity from integration users outside their scheduled windows, writes to models the integration should never touch, and actions from keys already marked for revocation. Odoo's logging and chatter record some of this, but what is captured depends on the model, the action and your version, so confirm with a test change which fields and calls appear in the record before you rely on it for an investigation.
Odoo upgrade docsHow an integration call travels from key to Odoo record
The integration service pulls its API key from a secrets store, then sends a bearer request with a database header to Odoo. Odoo resolves the key to the integration user, and the ORM applies that user's access rights and record rules before any record is read or written. The result or an error returns to the caller, and the call is logged for audit. Check at each hand-off that the key is scoped to the right user and that the audit trail records which key made the call.
Request path from secrets store to Odoo record, with audit as a separate trust boundary.
Limits and what to confirm in your environment
Several limits decide whether an API key design works at all: the plan, the hosting type, the version in use and the edition. Confirm each one before writing integration code, because a wrong assumption here changes the architecture rather than the configuration.
Is external API access in your plan?
External API access is not a feature every Odoo plan includes. Ask whether your chosen plan and hosting type allow external API calls, and get the answer in writing from Odoo or your partner before you design around keys. If the plan does not include it, the integration pattern changes, so this is the first question to settle. Confirm it again at renewal, since plan contents can change.
Odoo pricingWhich hosting type you run
Odoo Online, Odoo.sh and on-premise differ in what the client controls and in which features are offered. Ask who manages the server, who can change database settings and where the API endpoint is reachable from. Your network team should confirm that the integration servers can reach the Odoo host and that any reverse proxy passes the API headers unchanged.
On-premise docsKey expiry and rotation behavior
Ask which expiry options your Odoo version offers for API keys, whether a key can be set to never expire, and what happens to running integrations when a key is rotated. Confirm whether old and new keys can overlap during a cutover. Without an overlap window, rotation becomes an outage, so write the expected procedure into the runbook before go-live.
Programmatic key generation and revocation
Find out whether keys can be created and revoked through a script or only through the user interface. Automated provisioning and offboarding depend on this answer. If only manual generation is available, plan a named owner for each key and a recurring review step. Also confirm whether revoking a bot user disables all of its keys at once.
What the audit trail records
Ask which API calls are logged, whether the log shows the key or only the user, and how long records are kept. Some teams need the key identifier, the source address and the model changed for each write. Confirm whether logs can be exported to your SIEM. Test one write with a dedicated key on a duplicate database and check the record before relying on it.
How Community self-hosting changes the picture
The Community edition is open source, but Odoo's paid Enterprise plan is the route that includes external API access in the pricing structure. Ask whether your team will self-host Community, how that affects support and upgrades, and which features the integration needs. Confirm the license and feature set with Odoo before committing to an architecture.
Odoo GitHub repositoryQuestions teams ask before setting up Odoo integration credentials
How much effort does a secure Odoo credential setup take?
The effort depends on how many integrations exist, how many models and actions each one touches, and whether the work starts from a clean Odoo database or from a set of shared logins that already run production jobs. Each integration needs its own bot user, a set of access rights limited to the models it reads or writes, an API key with a defined lifetime, and a record of who owns it. Most of the time goes into discovering what each integration really calls, not into creating the users. Ask any partner for a written inventory step, a rights matrix per integration and a rotation procedure as separate deliverables, so you can see where the hours go.
Can our internal team set up integration credentials without a partner?
Yes, a capable Odoo administrator can create bot users, assign groups and generate API keys, provided the team has administrator access on the right plan and time to test. What is harder to do alone is finding every existing integration, especially ones built years ago by someone who has left, and checking that each one still works after rights are reduced. A partner adds value mainly as an outside reviewer who keeps a written inventory and tests changes on a duplicate database before production. Confirm the plan first: external API access depends on the Odoo plan and hosting type, so check that before you assign effort.
What do we need to provide before the work starts?
You need three things: the Odoo plan and hosting type, administrator access to the database, and named process owners for every workflow that uses an integration. The plan determines whether external API access is available at all, so confirm it against Odoo's pricing page and your contract. Administrator access is needed to read existing users, groups and any scheduled or automated actions. Process owners decide which records each bot may touch and which actions it may take, because a rights decision made without them usually grants too much. A staging copy of the database is also required for testing.
How long does a review of Odoo integrations take?
The duration is driven by the number of integrations, their age, whether their source code is available, and how many business owners must confirm their needs. A small set with documented code can be reviewed quickly, while a long history of undocumented scripts, scheduled jobs and third-party connectors takes longer because each one needs tracing and testing. Ask for a timeline tied to the agreed inventory, and ask how many test cycles are included on a staging copy. No fixed duration applies across organizations, so treat any number quoted without an inventory as an estimate to challenge.
Is it acceptable to share one admin API key across integrations?
No, a shared administrator key is a poor practice for most organizations because it gives every integration full rights, hides which system performed an action and turns any leaked key into a full database compromise. Each integration should use its own bot user with the smallest set of groups that lets it do its job, and its own key. Shared keys also make rotation disruptive, since replacing one key breaks every integration that uses it. Where an existing system still relies on a shared admin key, treat its replacement as a priority item in the review and confirm the change on a duplicate database first.
What happens to an integration when its API key is rotated?
The integration stops authenticating with the old key as soon as that key is revoked, so the calling system fails until its configuration holds the new key. The impact is contained when each integration has its own key and the rotation is planned: the team updates the secret store, deploys the change and confirms a test call before revoking the old key. Problems arise when several systems share one key or when keys are hard-coded in scripts nobody owns. Build rotation into the runbook with a named owner per integration, and check the Odoo documentation for the key lifetime and revocation options available on your version.
How do we know which key performed a change in Odoo?
Auditing works only when each integration writes through its own bot user, because the database records changes against that user. Shared or administrator accounts make it impossible to tell which system updated a record. Confirm which audit and tracking features your Odoo version and edition provide, and test them on a duplicate database by making a change through each key and checking what the log shows. Keep a register that maps each bot user to its integration, owner and key rotation date so that an investigation can move from a log entry to a responsible team quickly.
What DeployOpen delivers for integration credentials
DeployOpen delivers a documented credential set for every integration that touches your Odoo database, built around the rights each integration actually needs. The work starts with an inventory of integrations: which external systems call Odoo, through which API or method, which models and fields they read or write, how often they run, and who owns each one. That inventory is the basis for the user and rights design, where each integration gets a dedicated bot user with the smallest group set that covers its calls, and no integration reuses a person's login or an administrator account. The inventory also records which integrations rely on external API access, since that depends on your Odoo plan and hosting type, and the plan should be confirmed in writing before any design is signed off.
Key handling is the second deliverable. DeployOpen configures API keys per integration, sets the expiry and rotation schedule you choose, and documents how each key is generated, stored and revoked. Keys are kept in a secrets store you approve, such as the vault your organization already runs, not in source repositories, scripts or chat tools. The engagement also produces a tested revocation runbook so that a single integration can be cut off without disrupting the others. Confirm with your Odoo partner or with the Odoo documentation for your version whether key duration limits and programmatic generation are available on your plan and hosting, because these settings change what the runbook can automate.
Before go-live, DeployOpen runs the integration accounts and keys against a duplicate of the production database, not against production itself, and records which calls succeed, which are refused and which rights were missing. The handover pack contains the inventory, the bot user and group matrix, the rotation and revocation runbook, the audit approach for tracing which key performed which action, and a list of open decisions for your security and platform teams. Ask any partner to state in the written scope how many integrations and environments are covered, who approves rights changes after handover, and how retesting is handled when a new integration is added.
How integration users fit with webhooks, automation rules and migrations
Every route into Odoo, whether a direct API call, an incoming webhook, an automation rule or a migrated XML-RPC script, acts as some user with some rights. Deciding which identity each pattern uses determines what can be changed, how it is audited and what breaks when one credential is rotated.
Direct JSON-2 calls need their own user
A script or middleware that calls Odoo through the JSON-2 API authenticates as a specific user and inherits that user's access rights and record rules. Give each external system its own dedicated user with only the groups it needs, so the audit trail shows which system made a change. Sharing a human administrator's key makes every integration action look like that person's work. Confirm which access rights the integration user needs before creating the API key.
Upgrade docsIncoming webhooks run under a chosen identity
An incoming webhook writes records into Odoo when an external service posts to it, and those writes happen as the user configured for that path. Treat the webhook's user as a separate integration identity, not a general-purpose account. Check which record types the webhook can create or update, and whether a leaked webhook URL would expose more than one function. The detailed setup, payload mapping and testing are covered in the sibling webhooks topic.
Automation rules act as the triggering user
Automation rules and server actions run inside Odoo and typically execute with the rights of the user who made the change that triggered them, or of the configured action owner. A rule that calls an external webhook can therefore carry the trust of whoever edits the rule. Review which user owns each rule, and keep rule owners separate from the integration identities used for external calls. Rule design, loops and performance belong to the sibling automation topic.
XML-RPC credentials must move to API keys
Scripts that log in with a password over XML-RPC or JSON-RPC will stop working when those interfaces are removed in Odoo 22 and Online 21.1. Each such script needs an API key tied to a dedicated integration user before the cutover, so credentials are not simply copied across. Build an inventory of every script, its user and its rights first. The migration steps are covered in the sibling migration topic.
Confirm API access before issuing keys
External API access is included only on the Custom plan, according to Odoo's pricing page, and hosting type affects what is available. Before designing any of the patterns above, confirm with Odoo that your plan and hosting allow API keys for the integration. This check should come first because it changes whether a key can be issued at all. Ask your Odoo account contact to verify the current plan terms for your database.
Odoo pricingAudit by identity, not by pattern
When an incident occurs, the question is which identity changed a record and through which path. Keep a register that maps each key, webhook and automation owner to a named system, owner and rights, and review it whenever a pattern is added or retired. Without that register, logs show a user name but not the integration behind it. Plan retention and review of these records alongside the key rotation schedule.
How DeployOpen scopes and supports Odoo integration access
DeployOpen starts by agreeing the credential design in writing before any integration work begins. For a self-hosted Odoo, the work happens in your own cloud accounts, data centers or air-gapped network, so the bot users, API keys and audit records stay under your administrators' control from the first day. The written scope names every integration identity, the models and operations each one may call, the company records it can see, the key lifetime and the person who approves each new key. Confirm early whether your Odoo plan includes external API access, because that is a licensing question before it is a technical one.
Each integration identity is documented as a deliverable: its purpose, owning team, group memberships, record rules that limit it, the key names issued to it, the expiry date of each key and the revocation steps. This record lets your security team answer who called what and why, and it gives the next engineer a map before they change anything. DeployOpen can also prepare the programmatic key generation and revocation procedure so that rotation is a repeatable runbook instead of a ticket someone remembers to raise.
Access design does not end at go-live. A retainer can cover scheduled key rotation, review of integration user rights after each Odoo upgrade or new module, and periodic checks that no retired integration still holds a live key. Ask any partner, DeployOpen included, to state in the quote what the retainer covers, how fast rotation requests are handled and who on your side approves changes. Ongoing support is priced from that written scope, and the scope should name both the recurring tasks and the one-time setup work.

