Odoo and Google Workspace integration

Odoo connects to Google Workspace through three separate features: Gmail over Google OAuth, Google Calendar synchronization and Google Sign-In, each backed by a Google Cloud API project. This page explains how to plan and configure them in order.

On this page

How Odoo and Google Workspace integration works

Your team wants Odoo to send and receive mail, keep calendars in step and let staff sign in with their Google accounts. Odoo documents these as three separate features: Gmail connected through Google OAuth, Google Calendar synchronization and Google Sign-In for users. Each one is configured through its own Google Cloud API project, so you can plan, approve and test them independently. The work is configuration and identity planning, not custom code. The reference for the steps is the Odoo 19.0 Google Sign-In documentation and the Gmail OAuth documentation.

Because each feature has a different trust path, the planning starts with a short list of decisions. Decide which Google Workspace domain owns the mail and calendars, which users need each feature, and who creates and owns the Google Cloud project and its OAuth consent configuration. Confirm with your Google Workspace administrator which API scopes your organization allows for third-party apps, since those settings decide whether the connections can be approved. Also confirm the Odoo database's hosting type and edition, because the features and the sign-in behavior depend on it. Confirm these details against the Odoo documentation for your version rather than relying on older guides.

One login decision needs particular care. Odoo warns that databases hosted on Odoo.com should not use OAuth login for the database owner or administrator, because doing so unlinks the database from their Odoo.com account. Keep a separate, tested administrator login before you enable Google Sign-In for regular users, and record who can recover access if a Google account is suspended or leaves the organization. For self-hosted databases, plan the redirect URIs and the authorized domains in the Google Cloud project to match the exact address users will open, since a mismatch is a common cause of failed sign-in during testing.

What you need before configuring Google Workspace with Odoo

Three connections depend on the same foundation: an Odoo instance with a known public address, a Google Cloud project with an OAuth client, and a clear owner for the Google admin side. Settle these before anyone opens the Google Cloud console, because the redirect addresses and mail domain you choose here are the values the configuration will need.

Odoo edition and hosting type

Confirm whether you run Community or Enterprise, and whether the instance is Odoo Online, Odoo.sh or on-premise. The pricing page reserves Odoo.sh and on-premise hosting for the Custom plan, so a hosting choice can also settle your plan. Each hosting type has its own public address, and the Google OAuth redirect must match the address Odoo actually serves. Confirm the current Odoo 19.0 requirements in the documentation before you start.

Odoo Google Sign-In docs

Google Cloud project and OAuth rights

Someone must be able to create a Google Cloud project, enable the APIs Odoo uses, and create an OAuth client ID and secret. Check that the account has these rights inside the correct organization, not only a personal Gmail login. Record which project owns the credentials, because moving or deleting it later breaks sign-in and mail sending at the same time.

Public HTTPS address for redirects

Google returns users to Odoo at a fixed redirect address, so Odoo needs a stable public HTTPS hostname before configuration. Internal hostnames, IP addresses and changing test URLs will fail the redirect check. Decide the production address first, and plan a separate client or redirect entry for each test or staging instance rather than reusing the production one.

Custom mail domain and DNS access

Gmail sending from a custom domain depends on that domain's DNS records and on the Google Workspace mailbox that Odoo will send as. Confirm who controls DNS for the domain, which mailboxes will send outgoing mail, and whether the sending address is a user mailbox or a shared alias. Changes to sender authentication records can take time to propagate, so plan them before go-live.

Google admin console ownership

Name the person who holds super admin rights in the Google Workspace console and who approves changes to API access, OAuth apps and user policies. Those settings can block Odoo even when the Cloud project is correct. Agree in writing who approves the Odoo app, who responds when a token stops working, and who removes access when an employee leaves or the integration is retired.

Database owner and admin accounts

Odoo's documentation warns that databases hosted on Odoo.com should not use OAuth login for the database owner or administrator, because it unlinks the database from that Odoo.com account. Keep a local administrator login with a tested password and two-factor authentication, and use Google sign-in for ordinary users. Decide this before enabling Google Sign-In, not after a lockout.

Odoo Google Sign-In docs

Configuring the Google Cloud project and Odoo in sequence

This sequence creates one Google Cloud project that serves Google Sign-In, Gmail OAuth and Calendar synchronization, then connects each capability in Odoo and confirms it works before the next one starts. Each step closes with a check the team can repeat during testing.

  1. Create the Google Cloud API project

    A Google Workspace administrator or a cloud administrator signs in to the Google Cloud console and creates a dedicated project for the Odoo integration, so that the API quotas, consent settings and credentials sit in one place the team can review. Name the project for the Odoo environment it serves, such as production or test, because a test database and a production database should not share credentials. Record the project name and the account that owns it in your change record. The step is done when the project appears in the project selector and the owning account can open its settings.

  2. Enable the required Google APIs

    In the new project, the administrator enables the APIs that the three Odoo features call, which the Odoo Google Sign-In and Gmail OAuth documentation list for each feature. Confirm the exact API names against the Odoo 19.0 documentation for the version you run, because the list differs between the sign-in, mail and calendar configurations. Enable only the APIs those features need, so that the audit trail of the project stays readable. The check is that each required API shows as enabled in the API library and that no feature is left waiting on an API that was not turned on.

  3. Configure the OAuth consent screen

    The administrator sets up the OAuth consent screen, choosing whether the app is internal to your Google Workspace domain or external, and entering the application name, support contact and developer contact that users and reviewers will see. Add only the scopes that Odoo requests for sign-in, mail sending and calendar access, and confirm the list against the Odoo documentation for your version. If the app is external and sensitive scopes are requested, expect Google's verification process to apply, and confirm its requirements with Google before go-live. The check is that the consent screen shows the expected scopes and that a test user outside the admin group can reach the consent prompt.

  4. Create OAuth client credentials with Odoo redirect URIs

    The administrator creates an OAuth 2.0 client of the web application type and registers the redirect URIs that Odoo gives for the database, using the exact scheme and host of the Odoo instance. Create separate clients for each environment, or confirm with Odoo's documentation whether one client can serve several databases, because a mismatched redirect URI is the most common cause of a failed login. Download the client ID and secret into the team's secrets store rather than into email or a ticket. The check is that the client appears in the credentials list with the expected redirect URIs and that the secret is stored where only the Odoo administrators can read it.

  5. Enter credentials and enable Google Sign-In in Odoo

    An Odoo administrator enters the client ID and secret in the Google authentication settings and enables Google Sign-In for the database, following the Odoo 19.0 Google Sign-In documentation. Do not use OAuth login for the database owner or administrator account, because Odoo warns that doing so unlinks the database from the owner's Odoo.com account for databases hosted there. Keep a local administrator password that works without Google. The check is that a standard test user signs in with Google, lands on the correct database and is matched to the intended Odoo user record.

  6. Connect Gmail for outgoing mail and verify delivery

    An Odoo administrator connects the Gmail account for sending mail from the custom domain, following the Odoo Gmail OAuth documentation, and the account owner completes the Google consent prompt. Confirm that the sending address and the scopes match what the Google consent screen approved, because a mismatch shows up as a failed authorization rather than a clear error. Send a test message from Odoo to an address outside the company and check its headers and sender domain. The check is that the test message arrives, is not marked as spam by the recipient, and appears in the sent records for the right user.

  7. Synchronize Google Calendar and confirm events

    Each user who needs calendar synchronization enables it in their Odoo preferences and completes the Google consent prompt, following the Odoo Google Calendar documentation. Create a test meeting in Odoo with an attendee who has a Google Calendar, then check that the event appears in Google Calendar, and create a second event in Google Calendar to confirm the reverse direction. Ask the team to note which synchronization direction is authoritative for edits and deletions, since the documentation describes how changes propagate. The check is that both test events appear on both sides with the correct times and attendees.

  8. Record the configuration and retest after changes

    The team records the project name, enabled APIs, consent screen scopes, redirect URIs, which Odoo users use each feature and the owner of each credential in the operating runbook. Rerun the sign-in, mail and calendar checks whenever the Odoo version changes, the domain changes, the client secret rotates or a major Google Workspace policy changes, because each of these can break a feature without an obvious error. Confirm with Odoo's documentation for your version before each upgrade. The check is a dated runbook entry and a passing retest recorded for each feature.

How Gmail OAuth sends mail from your custom domain

Odoo sends mail from a Gmail account through Google OAuth, so the outgoing connection is tied to the sending user, not to a shared password. The connection is configured on the sending account in Odoo and authorized against the Google Cloud project you created for this integration. Outgoing mail and incoming mail are configured separately and behave differently. Outgoing mail needs the OAuth connection on each account that sends from the custom domain. Incoming mail is not handled by that connection. It is fetched through the mail server settings, so a reader who only sets up OAuth will see sent messages work while replies and fetched mail do not arrive in Odoo as expected.

Before go-live, confirm the domain's DNS records cover the sending path. SPF should authorize Google's servers to send for the custom domain, DKIM should sign messages with a key the domain publishes, and DMARC should be published with alignment so the visible From domain matches the domain that passes SPF or DKIM. Google's own sending guidance for Workspace describes these records, and your DNS administrator should confirm them against the current documentation rather than relying on an older template. Misaligned records are a common reason mail lands in spam even when the OAuth connection succeeds.

Verify deliverability before any customer or supplier receives a message from production. Send test messages from each sending account to external mailboxes at several providers, check the headers for SPF, DKIM and DMARC results, and confirm the From address and reply path are correct. Test incoming fetching separately by replying to a test message and confirming it appears in the expected Odoo record. Keep the results with the change record, because a later DNS change or a new sending account can break alignment without any change inside Odoo.

Calendar synchronization and Google Sign-In compared

Google Calendar synchronization connects an individual Odoo user to their own Google calendar. Each user authorizes their account, and Odoo then keeps events in the Odoo calendar and the Google calendar aligned for that user. Administrators do not sync one shared calendar for everyone, so the rollout is a question of which users need the feature and how each one completes the connection.

  • Which users: Only users who connect their own Google account are synced. Confirm with the business which roles need calendar sync and which can skip it.
  • Direction: Confirm in the current Odoo 19.0 documentation whether sync runs both ways or in one direction for each event type, and test that behavior with a sample event.
  • Deleted events: Test what happens when an event is deleted on either side, because a missed deletion is the most common source of user complaints.
  • Per-account setup: Each user must complete the Google authorization, so plan a short onboarding step rather than assuming a single admin setting covers everyone.
  • API dependency: The Google Calendar API must be enabled in the Google Cloud project, with the OAuth consent screen and client credentials that Odoo uses.

Check that a test event created in Odoo appears in the test user's Google calendar, and that an edit and a deletion propagate correctly.

Three Google connections share one Google Cloud project but reach different services

The diagram starts at the Odoo server, which holds the OAuth client ID and secret in its own configuration, not in the browser. Each of the three paths goes out through the Google Cloud API project: Gmail send through Google OAuth to Gmail, Calendar synchronization to Google Calendar, and Google Sign-In for user login. The dashed boundary marks where Odoo's server hands requests to Google. Check that each path has its own consent and scopes, and that the project's API enablement matches the services each path needs.

Odoo reaches three Google services through one Google Cloud project.

Mapping Google accounts, mailboxes and calendars to Odoo users

This table maps each Google Workspace object to its Odoo counterpart, names who should decide the value, and shows what breaks when the two sides disagree. Read it before creating the Google Cloud project, so the OAuth consent, sign-in domain and user records are set up consistently from the start.

Google objectOdoo counterpartWho decides the valueWhat breaks if they do not match
Google account emailOdoo login (user login field)Client IT or identity owner, from the directory of recordGoogle Sign-In fails to find a user, or a second Odoo user is created for the same person
Google userOdoo user record and its access groupsClient HR or access owner, with the Odoo administratorUsers sign in but lack the rights they need, or keep rights after leaving the organization
Gmail mailbox used for sendingOutgoing mail server linked through Google OAuthClient IT, with the mailbox owner agreeing to the sending addressMail is rejected, sent from the wrong address, or the OAuth token expires and sending stops
Gmail mailbox used for receivingIncoming mail alias or gateway routing to OdooClient email administrator, who controls the domain recordsReplies do not reach Odoo records, or messages land in an unmonitored mailbox
Google CalendarCalendar synchronization on the user recordEach user, with the Odoo administrator enabling the featureMeetings do not appear in Odoo, or events created in Odoo are missing in Google
Google Workspace domainAllowed sign-in domain in Odoo authentication settingsClient security owner, who sets the approved domainsAccounts from unapproved domains are accepted, or valid staff are blocked at sign-in
Google Cloud OAuth consent scopesScopes requested for Gmail and Calendar accessClient security owner, with the Google Cloud project ownerUsers see missing permissions, or the app requests more access than the approved scope

Securing the Google Workspace connection

The Google connection gives Odoo access to mail, calendars and sign-in, so each piece needs its own scope, owner and recovery path. The cards below cover the Google Cloud project, the OAuth consent and scopes, secret storage, the owner login and a local administrator fallback.

Scope the Google Cloud project

Create a dedicated Google Cloud project for Odoo inside the organization's Google Workspace, owned by a named team and not by an individual's personal account. Keep the Gmail, Calendar and Sign-In API clients in that one project so access can be reviewed, rotated and removed in one place. Record who holds project owner and editor roles, and confirm that the project is not shared with unrelated applications.

Gmail OAuth docs

Request only the OAuth scopes needed

Grant Odoo the narrowest scope for each function: sending mail, reading incoming mail where you use it, calendar synchronization or sign-in. Do not reuse a broad scope because one feature failed during setup. Write down which feature uses which scope, and re-check the list whenever a module is added or removed, since an unused grant stays active until someone removes it.

Restrict the consent screen to internal users

If every mailbox and calendar that Odoo will use belongs to your Workspace domain, set the OAuth consent screen to internal so that accounts outside the domain cannot authorize the app. Confirm this option is available for your Workspace edition before the build starts. If external users must sign in, plan the verification and review steps Google requires and keep the scope list as short as possible.

Store the client secret outside Odoo's data

Keep the OAuth client secret in your organization's secrets manager and inject it into the Odoo configuration at deployment, rather than pasting it into a database setting or a shared document. Limit read access to the administrators who maintain the server, and rotate the secret after any staff change or suspected exposure. Check that database backups and staging copies do not carry the secret in plain text.

Keep OAuth off the database owner login

Odoo warns that databases hosted on Odoo.com should not use OAuth login for the database owner or administrator, because doing so unlinks the database from the Odoo.com account. Use Google Sign-In for ordinary users, and keep the owner or administrator on a separate credential that the Odoo.com account controls. Confirm the hosting type before you enable Google Sign-In for any administrative account.

Google Sign-In docs

Keep a local administrator for recovery

Retain at least one local Odoo administrator password that does not depend on Google, and store it in the organization's password vault with two named custodians. If Google Workspace is suspended, a project is deleted or an OAuth client is revoked, this account lets the team restore sign-in. Test it during go-live and after each change to the sign-in configuration, and review it at each access review.

Common Google Workspace failures and how to fix them

This table lists the failures teams most often hit when connecting Odoo to Google Workspace, with the likely cause and the fix for each. Read it before go-live, and use it as a checklist when a user reports that mail, calendar or sign-in is not working as expected.

FailureLikely causeFix
Redirect URI mismatchThe OAuth client in the Google Cloud project lists a redirect URI that does not match the database URL Odoo uses, including protocol, host, port or path.Copy the exact redirect URI from the Odoo Google settings into the OAuth client, matching scheme, domain and trailing path, then retest sign-in and mail authorization.
Consent screen not published or limited to test usersThe OAuth consent screen is still in testing mode, so only listed test accounts can authorize. Other staff see an access error when connecting Gmail or Calendar.Publish the consent screen for production use or add every required user as a test user during rollout. Confirm the publishing status before user onboarding begins.
API not enabled in the Google Cloud projectThe Gmail API or Google Calendar API is not enabled in the project that holds the OAuth client, so Google rejects calls even though authorization succeeds.Enable each API the feature needs in the same project that holds the OAuth client, then confirm the project ID matches the one Odoo is configured with.
Mail rejected because SPF or DKIM is not alignedThe sending domain's DNS records do not authorize Google's servers or do not sign outgoing mail, so recipients' servers treat messages as spoofed or fail them.Review SPF and DKIM for the sending domain against Google Workspace's documented records, and confirm DMARC alignment with the From address. Send test messages to external inboxes before go-live.
Calendar events not syncing for some usersUsers who never granted calendar access through their own Google account have no token for Odoo to read or write their events, so sync silently skips them.Have each affected user open their own Odoo preferences and complete the Google Calendar authorization. Check the sync status per user after onboarding, because one user's grant does not cover others.
Google Sign-In creating duplicate usersGoogle returns an email address with different letter case or a Google alias, and Odoo does not match it to the existing user record, so a second account is created.Standardize user email addresses to lowercase in both Odoo and Google Workspace, and map aliases to the primary address. Merge or deactivate duplicates, and confirm the login field used for matching before enabling sign-in for all users.

Questions about Odoo and Google Workspace integration

How much effort does connecting Odoo to Google Workspace take?

The effort depends on which of the three features you need, because each has its own setup path: Google Sign-In for users, Gmail through Google OAuth for sending and receiving mail from a custom domain, and Google Calendar synchronization. Each one is configured through a Google Cloud API project, so the Google side is a separate piece of work from the Odoo settings. Sign-in is usually the smallest piece, while Gmail needs consent screen decisions, scope review and a test of both outgoing and incoming mail. Calendar sync adds per-user behavior to check. No fixed duration is supplied for this work, so ask any partner to break the quote down by feature and by environment (test and production) before you agree to a figure.

What does the work need from our Google admin and our Odoo admin?

The work splits between two people. Your Google Workspace admin needs to create or approve a Google Cloud project, enable the APIs each feature uses, configure the OAuth consent screen for your domain and approve the client credentials. Your Odoo admin needs to enter those credentials in the Odoo settings, decide which users may sign in with Google, and link mailboxes and calendars. The Odoo admin should also confirm that the database owner and administrator accounts keep local or other working sign-in, because Odoo warns that OAuth login for the database owner or administrator on databases hosted on Odoo.com unlinks the database from their Odoo.com account. Agree in writing who signs each step before the build starts.

Can our own team configure Google Workspace integration without a partner?

Yes, a team with Google Workspace administration skills and Odoo administration skills can follow Odoo's documented steps for each feature. The Odoo documentation for Google Sign-In and for connecting Gmail through Google OAuth walks through the configuration sequence. What tends to need outside help is the surrounding decisions: consent screen scope, how the project is organized across test and production, how mailbox ownership is mapped to users, and how the setup is tested across your user base. If your Google and Odoo admins have not configured OAuth before, or if the database is hosted on Odoo.com, a short review of the plan before go-live reduces the chance of rework.

How long does testing take for different user counts and domains?

Testing time grows with the number of users, the number of Google domains and the number of Odoo databases that connect to them. A pilot with a small group of users on one domain is quick to verify, while a rollout across several domains needs each domain's consent, sign-in and mail flow checked separately. No testing duration is supplied for this work, so ask for a test plan that lists the accounts, domains and mail and calendar cases you will verify, and that states who signs off each result. Testing should run against a non-production copy of the database first, since Odoo documents database duplication with neutralization for test copies in its on-premise guidance.

What recurring work follows go-live, such as credential rotation and consent changes?

After go-live, the recurring work is operational rather than one-time. Client secrets and OAuth credentials need a rotation plan, and the person who holds the Google Cloud project needs to be named so that access can be recovered. Consent screen settings and granted scopes can change when Google or your organization changes its policies, and a user who revokes access will break mail or calendar sync until they reconnect. Odoo itself also moves through versions, so check the Google settings again when you plan an upgrade. Ask any partner whether ongoing support, retesting and rotation are included in a fixed-scope engagement or in a retainer, since DeployOpen offers ongoing support as a retainer.

Which factors raise or lower the effort of this integration?

The main drivers are the number of features in scope, the number of Google domains and Google Cloud projects, whether Gmail is used for outgoing mail only or for incoming mail too, how many users need Calendar sync, and whether Odoo is self-hosted or on Odoo.com. Self-hosted databases give you control over the network path and the credentials, which adds configuration steps but removes some constraints tied to the hosted service. Existing Google Cloud governance, such as a standard project naming rule and an approval process, lowers effort, while a new project with no owner raises it. Ask for a quote that lists each of these drivers so you can see which ones apply to your environment.

Does Google Sign-In replace our existing identity provider for Odoo?

Google Sign-In lets users of a Google Workspace domain sign in to Odoo with their Google accounts, but it is one option among the sign-in methods Odoo documents. Odoo also documents LDAP with optional user creation on first login, Microsoft Azure OAuth, and two-factor authentication. Before you replace an existing identity provider, decide which accounts must keep a local login, how user records are matched to Google identities, and what happens when a person leaves the organization. Confirm these rules with your security team, because sign-in policy belongs to your organization and not to the connector.

How DeployOpen scopes and delivers the Google Workspace integration

DeployOpen approaches Odoo and Google Workspace integration as a planned piece of work inside infrastructure you control. We agree the scope in writing first, then build and test the Google Sign-In, Gmail OAuth and Google Calendar connections against your own Google Workspace tenant before anything reaches production users.

How we scope

  • Confirm which Odoo edition and hosting type you run, since the integration depends on your deployment model.
  • List the Google Workspace services in use, the sending domains, and which users need Gmail, Calendar or Sign-In access.
  • Agree the Google Cloud project, OAuth consent configuration and owner for each connection before build starts.
  • Record the scope, deliverables and timeline in a written agreement, as engagements are fixed-scope.

How we build

  • Create the Google Cloud API project and configure the OAuth client for each Odoo connection using your Workspace admin access.
  • Connect Gmail for outgoing and incoming mail from your custom domain and test delivery with real mailboxes.
  • Configure Google Calendar synchronization and verify event direction, attendees and user mapping with a pilot group.
  • Set Google Sign-In and keep a local administrator login, so access is not lost if the external provider is unavailable.

How we hand over

  • Document each Google Cloud project, OAuth client, redirect URI and scope so your team can audit the configuration.
  • Deliver a test record showing mail, calendar and sign-in checks run against your tenant and the findings resolved.
  • Walk your administrators through credential rotation, consent screen changes and how to remove a user's access.
  • Provide a runbook for common failures, such as expired tokens, revoked consent and changed sending domains.

How we support

  • Ongoing support, upgrades and re-testing after Odoo or Google Workspace changes are available as a retainer.
  • Review the integration when you upgrade Odoo, since each major version has its own support window and upgrade path.
  • Confirm with your Google Workspace administrator which features your plan includes before committing to a design.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.