Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 25 additions & 23 deletions self-host/customize-deployment/google-sheets-integration.mdx
Original file line number Diff line number Diff line change
@@ -1,23 +1,25 @@
---
title: Configure a Google Sheets integration for self-hosted Lightdash
description: "In this guide we will show you how you can [upload to Google Sheets in scheduled deliveries](/references/google-sheets) and upload results from Google Sheets on `charts` on your on self-hosted Lightdash server."
sidebarTitle: Google sheets
---

### Enable Google SSO

To authenticate Google users, first you need to enable [Google SSO](https://docs.lightdash.com/self-host/customize-deployment/use-sso-login-for-self-hosted-lightdash#google) on your server.

If you still want to keep users to login via email/password or another SSO provider, you can set this `AUTH_GOOGLE_ENABLED` variable to `false`

### Create an API key for Google file picker

We use Google Drive picker API to allow you to select your spreadsheet files on `Syncs`

To create a Google Drive picker API you need to add a new API key in [APIs and services in Google Cloud](https://console.cloud.google.com/apis/credentials). Your Google project must have the following API's enabled:

* Google Drive API
* Google Picker API
* Google Sheets API

Save the API key in a new environment variable `GOOGLE_DRIVE_API_KEY`
---
title: "Configure a Google Sheets integration for self-hosted Lightdash"
description: "In this guide we will show you how you can [upload to Google Sheets in scheduled deliveries](/references/google-sheets) and upload results from Google Sheets on `charts` on your on self-hosted Lightdash server."
sidebarTitle: "Google sheets"
---

### Enable Google SSO

To authenticate Google users, first you need to enable [Google SSO](https://docs.lightdash.com/self-host/customize-deployment/use-sso-login-for-self-hosted-lightdash#google) on your server.

If you still want to keep users to login via email/password or another SSO provider, set `AUTH_GOOGLE_ENABLED=false`. This hides Google as a login option while still allowing the Google Sheets integration to work.

<Note>
Lightdash requests the necessary OAuth scopes -`drive.file` and `spreadsheets` when users connect to Google Sheets.
</Note>

### Create an API key for Google file picker

We use Google Drive picker API to allow you to select your spreadsheet files on `Syncs`

To create a Google Drive picker API you need to add a new API key in [APIs and services in Google Cloud](https://console.cloud.google.com/apis/credentials). Your Google project must have the following API's enabled:

- Google Picker API

Save the API key in a new environment variable `GOOGLE_DRIVE_API_KEY`