Connect Google Drive to ClOod
Create once, at Google, the client that lets your Odoo open your Drive, then paste it into ClOod.
Google only lets a piece of software open a Drive if it knows it. You introduce your Odoo to Google once: you create at Google a client that says "this Odoo may ask for access to a Drive", you paste it into ClOod, then you authorise your account in two clicks, without any password.
- Who does it: your Odoo administrator, once for the whole company.
- How long: ten to fifteen minutes — two if you have already connected Gmail (see below).
- What it costs: nothing. Google asks for no credit card for this.
- What you need: a Google account with 2-Step Verification turned on, and the redirect
address that ClOod shows on the cloud account form. It looks like
https://your-odoo.example/clood/google/confirm.
Copy the redirect address from your own ClOod, with its copy button. Never copy it from an e-mail, a message or another page: this is the address where Google hands over access to your Drive.
To get there in ClOod: Explorer, Connect a cloud card, Connect my Google account button. The account form opens with these instructions, the address and the two fields to fill in.
Already connected Gmail (MailbOox)?
The client created for Gmail can serve Drive too: no need for a second one. In the Google Cloud console, on the same project:
- Open the Google Drive API page (or, from the three lines at the top left, APIs & Services → Library, then search for Google Drive API) and click Enable.
- Google Auth Platform → Clients: open the Gmail client and, under Authorized redirect URIs, click Add URI; paste the redirect address copied from ClOod. Keep the Gmail address: both stay side by side. Save.
- In ClOod, click Use the Gmail client, then Connect Google Account.
That's all. Google may take "5 minutes to a few hours" to apply the new address: if the authorisation fails right after, try again a little later.
Starting from scratch
Five steps, all in the Google Cloud console except the last.
The screenshots below were taken in a Google console set to French; the layout is the same in English.
1. Create a project at Google
- Open the Google Cloud console and sign in.
- At the top of the page, open the project list and choose New project.
- Give it a name you will recognise, for example "Odoo": it will serve your whole Odoo. Click Create.
- Check that this project is the one selected at the top of the page before going on.
2. Enable the two APIs
The shortest way: open the Google Drive API page directly, check at the top of the page that your project is selected, then click Enable.
If you prefer the menus:
- Click the three horizontal lines at the very top left of the console (the "navigation menu"). In the panel that opens, choose APIs & Services, then Library. If you do not see this menu, type "API Library" in the search bar at the top of the page: it is the first result.
- In the library, search for Google Drive API, open it, click Enable.
- Go back to the library, search for Cloud OAuth Service API and enable it the same way.
Do not skip the second one. Without it, the next step fails silently: you click Create, Google goes back to the previous page and still says "not configured yet".
3. Introduce your app
Menu APIs & Services → OAuth consent screen. You land in Google Auth Platform. Click Get started.
- App name: the one you will see when authorising, for example your company name. User support email: yours.
- Audience: Internal if you have Google Workspace and only accounts of your organisation
will be connected. External in every other case; with an
@gmail.comaccount it is the only choice.
- Contact information: your address, then Next.
- Finish: tick "I agree to the Google API Services: User Data Policy", click Continue, then the blue Create button.
Google confirms with "OAuth configuration created".
If you chose "External", the app starts in Testing mode. Open the Audience section and choose:
- Publish app — for lasting use. If the button is greyed out, first complete the Branding section, then save.
- Stay in testing — for a quick trial. Under Test users, click Add users and add the address of the Google account whose Drive you want to connect. Without it Google refuses the authorisation ("Access blocked").
Left "in testing", the app loses access after seven days and ClOod loses your Drive. Publish it as soon as the trial is conclusive.
4. Create the client
- Clients section of Google Auth Platform, then Create client.
- Application type: Web application.
- Leave Authorized JavaScript origins empty. Under Authorized redirect URIs, further down,
click Add URI and paste the redirect address copied from ClOod. It must match to the
character,
https://included.
- Create. An "OAuth client created" window shows the Client ID and the Client secret, each with its copy button.
Copy the client secret before closing this window: Google will not show it again. If it is lost, create a new one from the client's page.
5. Paste the client into ClOod
On ClOod's Google Drive account form, paste the Client ID and the Client Secret, save, then click Connect Google Account.
What happens next
- Google asks for authorisation once. If it shows "Google hasn't verified this app", that is expected: the app is yours. Click Continue (or, depending on the screen, Advanced then Go to …), and accept. Do not click Back to safety.
- Back in ClOod, the form shows the Google account address and, within ten minutes, the session and the space used: the server is checking the access.
- Your Drive appears in the Explorer, next to the server disk.
- Your backups sent to Drive are encrypted by ClOod before they leave: nobody at Google can read them. Your documents, though, stay readable by Google (that is what lets you open them from the Drive app). To have everything encrypted, Polytalents recommends MEGA.
- ClOod keeps no Google password. The Client ID and secret are kept in sOocret, your Odoo's vault, if it is installed; otherwise in ClOod, readable by administrators only. The secret is never shown again.
If something goes wrong
| Google says | Cause | Fix |
|---|---|---|
redirect_uri_mismatch |
The redirect address registered at Google is not exactly your ClOod's. | Copy it again from the account form (copy button) into the Google client. An http:// address is refused: your Odoo must be served over https://. |
redirect_uri_mismatch although the address is registered |
Google has not applied it yet: it takes "5 minutes to a few hours". | Wait ten minutes and click Connect Google Account again. The "request details" of the error screen show the address received: compare it with the client's. |
access_denied or "Access blocked" |
"External" app left in testing. | Publish the app, or add the account to the test users (Audience section). |
invalid_client |
Client ID or secret badly pasted. | Paste them again in the form; if needed, create a new client secret at Google. |
| The form shows no Google account address | The authorisation was not given all the way. | Click Connect Google Account again. |
| Drive works, then stops after a week | App left "in testing". | Publish the app, then reconnect the account from its form. |
Removing access
On the account form: Disconnect Google Account. ClOod revokes the access at Google and removes the token from sOocret. You can also cut it from your Google account: Security → Your connections to third-party apps & services.












