> ## Documentation Index
> Fetch the complete documentation index at: https://docs.getgalaxy.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Google Drive

> Connecting Google Drive to Galaxy

Connect Galaxy to a Google Drive account or shared drive to observe files, folders, document types, and organizational hierarchy.

<Frame>
  <img src="https://mintcdn.com/galaxy-d7fe996b/6-Rz1rpIBcXfVZgy/images/gdrive.jpg?fit=max&auto=format&n=6-Rz1rpIBcXfVZgy&q=85&s=dfacfeba597ca41fa0fadff0841bb604" alt="Google Drive source configuration" width="1200" height="630" data-path="images/gdrive.jpg" />
</Frame>

## How to Connect

1. **Select Google Drive** as the Source type
2. **Choose authentication method**:
   * **OAuth 2.0**: Standard OAuth flow for user authentication
   * **Service Account**: Service account key authentication for automated access
3. **Provide credentials**:
   * **OAuth**: Refresh token, Client ID, and Client Secret
   * **Service Account**: Service account JSON key
4. **Configure folder**: Provide the folder URL to observe
5. **Configure streams**: Set up file-based stream configurations for different file types

Once connected, Galaxy validates the connection and begins observing the file and folder structure.

## Configuration Options

### Authentication

**OAuth 2.0**:

* **Refresh Token**: OAuth refresh token
* **Client ID**: OAuth client ID
* **Client Secret**: OAuth client secret

**Service Account**:

* **Service Account Info**: JSON key for the service account

### Folder Configuration

* **Folder URL**: Google Drive folder URL to observe

### Stream Configuration

Configure file-based streams to process different file types:

* **Structured formats**: CSV, Excel, JSONL, Parquet, Avro
* **Unstructured documents**: PDFs, DOCX, Markdown, and other text formats
* **Processing options**: Configure parsing strategies, validation policies, and schema discovery

<Info>
  Don’t see a source type you're looking for? We connect to hundreds of systems - reach out to [support@getgalaxy.io](mailto:support@getgalaxy.io) to request access.
</Info>

## What's Next

<CardGroup cols={2}>
  <Card icon="database" horizontal href="/sources" title="Sources">
    Learn about Sources in general
  </Card>

  <Card icon="diagram-project" horizontal href="/projects" title="Projects">
    Understand how to use Sources in Projects
  </Card>
</CardGroup>
