Creating a Service Account for Google Drive
Last updated
Was this helpful?
Last updated
Was this helpful?
To use a Service Account for Google Drive indexing, follow these steps:
Once the API is enabled, you'll see a green checkmark labeled "API Enabled"
Click the "+ Create service account" button
Give the Service Account a name, like "Google Drive for Convictional"
Click "Create and continue"
Click the blue "Done" button at the bottom of the form. You don't need to grant optional access permissions.
Click the "Keys" menu under your newly-created Service Account
Click the "Add key" button and select "Create new key"
Select "JSON" as they Key Type and click "Create"
Your private key will be downloaded to your computer with a .json
file extension
Click the "Details" menu of your service account
Take note of the email address for the Service Account. It should look something like google-drive-for-convictional@mygcpproject-12345.iam.gserviceaccount.com
Your Service Account will need to be granted access to the files/folders/shared-drives you'd like to index in Convictional. You can do this by adding your Service Account as a "Viewer" on those resources.
To grant access to a Shared Drive, click the "Manage members" or "Share" button and add your Service Account by its email address.
Scroll down to the Google Drive section
Enter your Service Account's email address as the "User to impersonate"
Open your Service Account's JSON key in a text editor, select all the contents, and copy them to your clipboard. Then paste that content into the "Service account key" field.
Click "Save" and presto! You did it!
Content for Google Drive Service Accounts is indexed at the 30-minute mark of every hour (i.e. 1:30, 2:30, 3:30, etc.).
Navigate to the under IAM & Admin / Service Accounts
Navigate to your .