# Grant access to BigQuery datasets

By default, Whaly will only have access to the Datasets created by Whaly connectors. In order to grant access to already existing BigQuery Datasets, you should follow those steps:

1. Go to the BigQuery Admin Console

<figure><img src="/files/EozLQlUlBzXE4ytO4hya" alt=""><figcaption></figcaption></figure>

2. On the left panel, click on one Dataset name (ex. "Days") to open it
3. On the Dataset page, click on "Sharing > Permissions" menu item

<figure><img src="/files/FPnJrSAcnqngtpu1L582" alt=""><figcaption></figcaption></figure>

4. In the side panel that opens, click on "Add Principal"

<figure><img src="/files/G8FcpcugqkFX2VB3y5la" alt=""><figcaption></figcaption></figure>

5. In the "New principals" search bar, select the Service Account configured in Whaly. And in the "Assign roles", select the "BigQuery Data Viewer" role.

<figure><img src="/files/M7votQNiavAsrIMDaBZY" alt=""><figcaption></figcaption></figure>

6. Click on "Save"

<figure><img src="/files/TUBgwoDuDt6PFBUgx4zG" alt=""><figcaption></figcaption></figure>

And that's it! Whaly will now let users import tables from this BigQuery Dataset 🎉


---

# Agent Instructions: 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:

```
GET https://docs.whaly.io/warehouse/google-bigquery/grant-access-to-bigquery-datasets.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
