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

# Google Drive

> Import deal folders from Google Drive with read-only access, including Google Docs, Sheets and Slides.

## What it is

The Google Drive integration imports deal folders from Google Drive into Habitus and keeps them current on a schedule. Each folder you choose becomes a deal, with its documents indexed like direct uploads. Habitus never writes to Drive.

## Who it's for

Firms that keep deal files in Google Drive. Connecting requires the **Connect data sources** permission (Admins by default).

## How to use it

**1. Connect**

Open **Integrations** and choose **Connect** next to Google Drive. Sign in with Google in the new tab and approve read-only access.

**2. Choose folders and schedule**

On **Choose deal folders**, tick each folder that should become a deal. Set **Refresh** (the default is every day), then choose the import button or **Finish setup**.

**3. Manage the connection**

Open **Integrations** and choose **Manage** on the Google Drive row to run **Sync now**, use **Import folders**, change an account's sync frequency or review failed files.

## Key concepts

### What Habitus reads

Habitus requests a single Google permission, `drive.readonly`: read-only access to files and folders you can view. Only the folders you select are imported and indexed.

Browsing starts in My Drive. Folders in Shared drives cannot be browsed or imported.

### Google Docs, Sheets and Slides

Native Google files have no file to download, so Habitus exports them:

| Google file | Imported as |
| - | - |
| Docs | PDF |
| Sheets | Excel (.xlsx) |
| Slides | PDF |

Forms, Drawings, Sites and shortcuts are skipped. Google limits exports to 10 MB; a larger Google file fails to import with a message asking you to download it as .xlsx or .pdf and upload it directly.

### Sync and reconnect

* Sync adds new files and updated versions of changed files. Files deleted or moved in Drive stay in the deal.
* If access expires, the account shows **Reconnect needed · sync paused**. Choose **Reconnect**; deals and documents are kept and sync resumes where it left off.

### Disconnect

Open the account's **Account actions** menu and choose **Remove account**. Deals and documents already imported stay in Habitus; the account stops fetching new files and Habitus deletes its stored credentials for that account.

Removing the account in Habitus does not remove Habitus from your Google Account's third-party access list. To revoke access at Google as well, remove it in your Google Account settings.

Once an account is removed, Habitus can no longer download from it: files from an import or sync in progress that have not yet been copied are not imported. Files already copied stay in the deal.

### Google user data

Habitus uses Google user data only to let you browse folders, link them to a deal and sync their files into your workspace. As our [Privacy Policy](https://www.tryhabitus.com/privacy) (section 7) states, Google user data is not used for advertising, is not sold, and is not used to develop, improve or train AI models, and Habitus's use of information received from Google APIs adheres to the Google API Services User Data Policy, including its Limited Use requirements.

## Limits and permissions

* **Connect data sources** controls who can connect, sync, change the schedule, remove accounts and import. See [Workspace settings](https://docs.tryhabitus.com/administration/workspace-settings.md).
* Access tokens are stored encrypted.

## Related pages

> [card] [Integrations](https://docs.tryhabitus.com/connections/overview.md)
>
> How connections, schedules and reconnects work.

> [card] [Documents](https://docs.tryhabitus.com/deals/documents.md)
>
> What happens to imported files.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.