---
title: "接続情報 - Google Drive | TROCCO Docs"
slug: "connection-configuration-google-drive"
updated: 2025-07-28T03:44:48Z
published: 2025-07-28T03:44:48Z
canonical: "documents.trocco.io/connection-configuration-google-drive"
---

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

# 接続情報 - Google Drive

## 概要

Google Driveの接続情報を設定する際のDocsとなります。

## 転送前の準備

- TROCCOでGoogle Driveの転送を利用するためには、以下の作業が必要です。
  - [Google Driveの共有設定で、メールアドレスに権限を付与](/docs/connection-configuration-google-drive#google-drive%E3%81%AE%E5%85%B1%E6%9C%89%E8%A8%AD%E5%AE%9A%E3%81%A7%E3%80%81%E3%83%A1%E3%83%BC%E3%83%AB%E3%82%A2%E3%83%89%E3%83%AC%E3%82%B9%E3%81%AB%E6%A8%A9%E9%99%90%E3%82%92%E4%BB%98%E4%B8%8E)
- サービスアカウントでの認証をする場合は、下記の作業も必要です。
  - [JSON Keyを設定](/docs/connection-configuration-google-drive#json-key%E3%82%92%E8%A8%AD%E5%AE%9A)
  - [APIを有効化](/docs/connection-configuration-google-drive#api%E3%82%92%E6%9C%89%E5%8A%B9%E5%8C%96)

## JSON Keyを設定

1. [Google CloudのJSON Keyを取得する](/docs/connection-configuration-google-cloud-json-key)を参照して、JSON Keyを取得してください。サービスアカウントにロールを付与する必要はありません。
2. 作成したサービスアカウントのメールアドレスをメモしておきます。
3. 取得したJSON Keyの内容をすべてコピーし、TROCCOの接続設定作成画面のJSON Keyフォームにペーストします。

## APIを有効化

1. [GCP Console](https://console.developers.google.com/)にアクセスし、プロジェクトを選択します。 （プロジェクトを作成していない場合は事前に作成してください。）
2. [APIライブラリ](https://console.developers.google.com/apis/library)にアクセスします。
3. **Google Drive API**をクリックします。

![image.png](https://cdn.document360.io/3a3bae1e-f157-487f-8798-01e9d820e760/Images/Documentation/connection-configuration-google-drive-2024-08-29-3-33-0.png)

1. APIを有効化します。

![image.png](https://cdn.document360.io/3a3bae1e-f157-487f-8798-01e9d820e760/Images/Documentation/connection-configuration-google-drive-2024-08-29-3-33-1.png)

## Google Driveの共有設定で、メールアドレスに権限を付与

1. 転送元・転送先となるGoogle Driveを開きます。
2. ドライブのパスの右側の共有アイコンをクリックします。 ![image.png](https://cdn.document360.io/3a3bae1e-f157-487f-8798-01e9d820e760/Images/Documentation/connection-configuration-google-drive-2024-08-29-3-33-2.png)
3. **ユーザーやグループを追加**の入力欄にサービスアカウント、もしくはOAuth認証したユーザーのメールアドレスを追加します。
4. 右側にある権限の選択欄で、必要な権限を選択します。 （転送元の場合は**閲覧者**、転送先の場合は書き込み権限を持つ**編集者**を選択してください。）

参考：[公式ドキュメント](https://support.google.com/a/answer/7378726?hl=ja)
