# Google Service Account

A Google Service Account is a special type of Google account designed for applications and services to interact with Google Cloud resources without human intervention. Unlike your regular user accounts, service accounts are used in machine-to-machine communication, allowing applications to authenticate and authorize themselves when accessing Google APIs and services.

ReOrc uses Google service accounts to interact with various Google Cloud storage solutions. This enables connections to BigQuery, Google Sheets, and Google Cloud Storage for data loading and management operations.

This guide shows you how to set up a Google Service Account and create a key to for use in ReOrc.

## Prerequisites

* You've already created a [Google Cloud Project](https://console.cloud.google.com/).

## Set up a service account

Follow these steps:

1. Go to the [Service Accounts](https://console.cloud.google.com/projectselector2/iam-admin/serviceaccounts) page and select your project.
2. Click **+ Create Service Account**.
3. Enter the service account name and the description, then click **Create And Continue**.
4. Assign a role to your service account. Here we select **Owner** to provide sufficient permisisons for loading and dumping data in services. Then click **Continue**.

   <figure><img src="/files/CaAny954orO3yiKA0ilH" alt="" width="375"><figcaption></figcaption></figure>
5. Click **Done**.&#x20;

## Generate a service account key

Follow these steps:

1. Go to [APIs & Services / Credentials](https://console.cloud.google.com/apis/credentials), locate and click on the email of the account you just created.
2. Switch to the **Keys** tab, then click **Add Key > Create new key**.

   <figure><img src="/files/LEu2lvcBGu5TWWCZD2m9" alt="" width="563"><figcaption></figcaption></figure>
3. &#x20;In the opened dialog, select JSON as the key type and click **Create**. This generates and downloads a JSON file containing the authentication credentials.

## Configure Google Service Account in ReOrc

You can now use the credentials in the JSON file to authenticate from ReOrc. Follow these steps:

1. Log in to your ReOrc organization and go to **Destinations.**
2. Click **+ Create Destination**.
3. Select *Google Service Account* and click **Set up**.
4. Fill in the required fields with using the information from the download JSON file.

   <figure><img src="/files/hQYDb1I9fC9DDsABPiDH" alt="" width="563"><figcaption></figcaption></figure>
5. Test the connection in an environment.
6. After the connection is successfully tested, click **Create Destination**.


---

# 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.reorc.com/connections/destinations/google-service-account.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.
