# Google Drive

### Overview

This guide explains how to connect your Google Drive account as an external object storage service within LLM Labs. Integrating Google Drive allows you to directly access and use your files stored in Google Drive within your LLM Labs projects and workflows.

{% hint style="info" %}
Please note that currently **Google Drive** external object storage is only available for [LLM Labs](https://docs.datasaur.ai/llm-projects/llm-introduction).
{% endhint %}

### Prerequisites

To connect your drive, you first need its unique **Shared drive ID**.

1. Open [Google Drive](https://drive.google.com/).
2. In the left-hand menu, click on **Shared drives** and open the specific drive you want to connect.
3. Look at the URL in your browser's address bar. The ID is the long string of characters at the end.

   > Example URL:<https://drive.google.com/drive/u/0/folders/0A-bCdEfGhIjKlMnOpQrStUvWxYzAbC>
   >
   > In this example, `0A-bCdEfGhIjKlMnOpQrStUvWxYzAbC` is the **Shared Drive ID**.
4. **Copy** this ID. You'll need it in a moment.

### Get started

1. Open the **Settings** page from the sidebar.
2. Go to the **External object storage** section and click **Add external object storage**.

   <figure><img src="https://448889121-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MbjY0HseEqu7LtYAt4d%2Fuploads%2Fgit-blob-499063e32cfe2c5721443fa985059f2ad87c372d%2FEOS%20-%20manage%20external%20object%20storage%20-%20AWS%20GCS%20Azure%20Dropbox.png?alt=media" alt=""><figcaption></figcaption></figure>
3. A dialog box will appear showing the available providers. Select **Google Drive**.

   <figure><img src="https://448889121-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MbjY0HseEqu7LtYAt4d%2Fuploads%2Fgit-blob-2944072d2181170d417c928363de5867eea24b17%2FEOS%20-%20manage%20external%20object%20storage%20-%20Add%20external%20object%20storage%20dialog.png?alt=media" alt=""><figcaption></figcaption></figure>
4. The Google Drive integration dialog will now appear. Paste the **Shared Drive ID** you copied earlier into the input field. Click the **Authorize** button.

   <figure><img src="https://448889121-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MbjY0HseEqu7LtYAt4d%2Fuploads%2Fgit-blob-ca13ea442378159337f5040e5c3df357f21d1a97%2FEOS%20-%20Google%20Drive%20-%20dialog%20-%20initial.png?alt=media" alt=""><figcaption></figcaption></figure>
5. You will be redirected to a standard Google **Choose an account** page. Select the Google account that has permission to access the shared drive you are connecting.

   <figure><img src="https://448889121-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MbjY0HseEqu7LtYAt4d%2Fuploads%2Fgit-blob-a659387185d078cbb87f0ee8704c839d2ceb2ea0%2FEOS%20-%20Google%20Drive%20-%20choose%20an%20account.png?alt=media" alt=""><figcaption></figcaption></figure>
6. Google will now ask you to grant Datasaur specific permissions. This is necessary for our app to read the files from your drive and use them in LLM Labs. Click **Allow** to approve the connection and proceed.

   <figure><img src="https://448889121-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MbjY0HseEqu7LtYAt4d%2Fuploads%2Fgit-blob-0dc7deb5d78cafeab3d10ffe77095205cd0697d0%2FEOS%20-%20Google%20Drive%20-%20allow%20access.png?alt=media" alt=""><figcaption></figcaption></figure>
7. After clicking **Allow**, you'll be redirected back to Datasaur. Your Google Drive will now appear in your list of connected external storage.

   <figure><img src="https://448889121-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MbjY0HseEqu7LtYAt4d%2Fuploads%2Fgit-blob-64cc27c2de287ef918714897414d629a601b2281%2FEOS%20-%20manage%20external%20object%20storage%20-%20AWS%20GCS%20Azure%20Dropbox%20Drive.png?alt=media" alt=""><figcaption></figcaption></figure>

### Note on "Unverified App" Warnings

After selecting your account, you might see a screen from Google that says, "Google hasn't verified this app."

<figure><img src="https://448889121-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MbjY0HseEqu7LtYAt4d%2Fuploads%2Fgit-blob-08e3630a20252891129e829556c2a78ebb2aa214%2FEOS%20-%20Google%20Drive%20-%20not%20verified%20warning.png?alt=media" alt=""><figcaption></figcaption></figure>

**This is expected behavior.** Please follow these steps to continue:

1. Click on the **Advanced** link.
2. A new link will appear at the bottom. Click on **Go to Datasaur (unsafe)**.
