- 07 Dec 2022
- 2 Minutes to read
Google Drive Connection Configuration
- Updated on 07 Dec 2022
- 2 Minutes to read
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.
|Authentication method||Yes||Choose from the following|
・Google Account (OAuth)
・Service account (JSON key)
|Google Account||Yes||Authentication method: Only when selecting a Google account.|
|JSON Key||Yes||Authentication method: Only when selecting a service account.|
Enter the JSON Key for the service account.
|name||Yes||Enter the name of the connection information to be used inside TROCCO.|
|memorandum||No||Enter a memo of the connection information used inside TROCCO.|
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
Go to the GCP Console and select a project.
(If you have not created a project, please create it in advance.) ）
Access the API library.
Click the Google Drive API.
- Enable the API.
Create a service account
Click the menu icon in the top-left corner of the GCP Console.
Click IAM and Management > Service Accounts.
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.") ）
Click Create (No permission setting is required.) ）
Click Create key > continue.
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.
Make a note of the location and name of this file.
You will use this file in the next step.
Click Close > Finish.
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
Open the source and destination Google Drive.
Click the share icon to the right of the drive path.
Add the service account or the email address of the OAuth authenticated user in the Add user or group input field.
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