> For the complete documentation index, see [llms.txt](https://docs.earthscale.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.earthscale.ai/earthscale-documentation/access-your-own-data/google-drive.md).

# Google Drive

### Granting access

To grant access to a Google Drive directory or file, you will first need to locate the dedicated GCP service account that we use to securely read your organization's data. You can find this under **Cloud Access** instructions in the user menu.

<figure><img src="https://cdn.earthscale.ai/docs/assets/cloud_access.webp" alt="" width="375"><figcaption></figcaption></figure>

<figure><img src="https://cdn.earthscale.ai/docs/assets/gcp_access.webp" alt=""><figcaption></figcaption></figure>

Copy this address for the next step.

In Google Drive, right-click the file or directory, and under "**Share**" click "**Share**".

<figure><img src="/files/BMr0eDAMMgxk1h523ys8" alt="" width="563"><figcaption></figcaption></figure>

Finally, give the service account email "**Viewer**" permissions to read it.

<figure><img src="/files/9d3IonlsxONXrJEkLJce" alt="" width="415"><figcaption></figcaption></figure>

If you've added a directory, from now on Earthscale should be able to read any files contained in that directory!

### Adding a dataset via shareable links

To obtain the dataset URL, right-click the file, and under "**Share**" select "**Copy link**".

<figure><img src="/files/3HX9rfYX4RsZHUMI8W3O" alt="" width="563"><figcaption><p>Click "Copy link" to obtain a shareable dataset link</p></figcaption></figure>

Next, paste the URL into the "**Dataset URL**" field in the "**Add New Dataset**" menu to register the dataset.

<figure><img src="https://cdn.earthscale.ai/docs/assets/google-drive.webp" alt=""><figcaption><p>Paste the shareable link into the "Dataset URL" field.</p></figcaption></figure>

Then click "**Next**" to continue and add the dataset to Earthscale.

{% hint style="info" %}
Currently, in Google Drive, we only support adding one file at a time, such as a GeoJSON or GeoTIFF. For more complex datasets with multiple files, such as GeoTIFF directories or Zarr stores, please upload to another data provider listed in [Access Your Own Data](/earthscale-documentation/access-your-own-data.md). For .shp files, please export to another single-file format such as GeoJSON.
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.earthscale.ai/earthscale-documentation/access-your-own-data/google-drive.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
