Google Drive Connection Configuration
  • 07 Dec 2022
  • PDF

Google Drive Connection Configuration

  • PDF

Article Summary


This is a machine-translated version of the original Japanese article.
Please understand that some of the information contained on this page may be inaccurate.


This is a help page for setting up connection information for Google Drive.

Input field

Item nameRequired
Authentication methodYesChoose from the following
・Google Account (OAuth)
・Service account (JSON key)
Google AccountYesAuthentication method: Only when selecting a Google account.
Googleアカウント認証 to authenticate. (You will be redirected to the Google site.) )
JSON KeyYesAuthentication method: Only when selecting a service account.
Enter the JSON Key for the service account.
nameYesEnter the name of the connection information to be used inside TROCCO.
memorandumNoEnter a memo of the connection information used inside TROCCO.

Pre-transfer preparation

In order to use Google Drive Transfer with trocco, you need to do the following:

  • When authenticating with a service account
    • Enable the Google Drive API in your project
    • Create a service account
    • Register the service account JSON key to trocco
  • GooglDrive sharing settings give permissions to email addresses

Enable Google Drive in your project

  1. Go to the GCP Console and select a project.
    (If you have not created a project, please create it in advance.) )

  2. Access the API library.

  3. Click the Google Drive API.


  1. Enable the API.


Create a service account

  1. Click the menu icon in the top-left corner of the GCP Console.

  2. Click IAM and Management > Service Accounts.

  3. Click Create Service Account, and then in Service Account Name, type the name of the service account.
    (It may be easier to understand if you use a name that indicates that it is an account for trocco, such as "trocco-google-drive.") )

  4. Click Create (No permission setting is required.) )

  5. Click Create key > continue.

  6. Make sure the key type is set to JSON and click Create.
    A message appears informing you that the service account JSON file has been downloaded to your computer.

  7. Make a note of the location and name of this file.
    You will use this file in the next step.

  8. Click Close > Finish.

  9. Make a note of the email address of the account you created from the list.
    You will need this email address for step 4.

Register the service account JSON key to trocco

Copy all the contents of the JSON file downloaded in the previous step and paste it into the JSON key form on the connection setting creation screen of trocco.

Use Google Drive sharing settings to give permissions to email addresses

  1. Open the source and destination Google Drive.

  2. Click the share icon to the right of the drive path.

  3. Add the service account or the email address of the OAuth authenticated user in the Add user or group input field.

  4. In the Permission Selection field on the right, select the required permission.
    (Select Viewer for the transfer source and an editor with write permission for the destination.) )

Reference: Official Documentation

Was this article helpful?