Gmail connector
This feature is in Beta.
The managed Gmail connector in Lakeflow Connect ingests messages, labels, drafts, and filters from a Gmail mailbox into Databricks.
The connector reads from a single mailbox per connection using a Google service account, and it is read-only. It never modifies the source mailbox. The messages and message_labels tables sync incrementally using the Gmail History API. The other tables are re-ingested in full on every pipeline run.
Feature availability
Gmail is cloud-agnostic. The following feature availability applies on AWS and GCP.
Feature | Availability |
|---|---|
UI-based pipeline authoring |
|
API-based pipeline authoring |
|
Declarative Automation Bundles |
|
Incremental ingestion |
Only for the |
Unity Catalog governance |
|
Orchestration using Databricks Workflows |
|
SCD type 2 |
Configuring SCD Type 2 for the |
Authentication methods
Authentication method | Availability |
|---|---|
Google service account (OAuth service account with domain-wide delegation) |
|
OAuth U2M |
|
Basic authentication (username/password) |
|
The connector authenticates to Gmail with a Google service account. You grant the service account domain-wide delegation for the https://www.googleapis.com/auth/gmail.readonly scope and choose the mailbox that the service account impersonates. For setup steps, see Configure Gmail for Databricks ingestion.
What to know before you start
Topic | Why it matters |
|---|---|
The workflow depends on your Databricks user persona:
| |
The connector authenticates with a Google service account that impersonates a single mailbox. | |
Single mailbox per connection | Each connection ingests one mailbox. To ingest more than one mailbox, create a separate connection and pipeline per mailbox. The mailbox value is stamped as a |
The steps to create a pipeline depend on the interface. | |
The pipeline schedule depends on your latency and cost requirements. |
Start ingesting from Gmail
The following table provides an overview of the end-to-end Gmail ingestion flow, based on user type:
User | Steps |
|---|---|
Admin |
|
Non-admin | Use any supported interface to create a pipeline from an existing connection. See Ingest data from Gmail. |