Follow the below steps to integrate your Google Workspace documents with Trustero
Service Account Impersonation
Trustero’s Google Drive integration authenticates using service account impersonation. Trustero will only have access to resources shared with the service account. For additional information regarding service account impersonation, please consult Google's support pages: Service Account ImpersonationCreate a Service Account
- In the Google Cloud Console, go to: Main menu -> IAM & Admin -> Service Accounts.
- Select or create a Google Cloud project.
- Click Create Service Account.
- Enter a name for your service account and, if you’d like, a description.
Click Done.
Enable the Google Drive API
- Select the Google Cloud project that contains the service account you just created.
- In the left hand menu, select APIs and Services > Enabled APIs and Services.
- At the top of the page, select Enable APIs and Services.
- Type Google Drive in the search bar and select the Google Drive API (it should be the first result).
- Click on the button that says Enable.
Domain Restricted Sharing
- If you have a domain restriction constraint that limits which domains are allowed to be used in IAM policies, you may need to temporarily lift the constraint in order to grant Trustero access to your new service account.
- Go to Main menu -> IAM & Admin -> Organization Policies.
- Search for Domain restricted sharing.
- If the policy exists within your project, remove it or update it to allow all domains while you complete the steps below.
- Once you’ve completed the steps below, you can implement the policy again or revert it to its previous state.
Grant Trustero Permission
- Select your newly created service account.
- Click on the Permissions tab.
- Click Grant Access.
- Under Add principals, enter the email address of Trustero’s service account:
trustero-gdrive@trustero-gdrive.iam.gserviceaccount.com
-
Under Assign roles, enter the following role:
roles/iam.serviceAccountTokenCreator
- Click Save.
- If you temporarily removed domain restricted sharing, you can implement the policy again.
Share Resources with Service Account
After creating a service account and granting Trustero permission to impersonate it, you can simply give it access to the appropriate resources in Google Drive. Only give your service account access to resources you would like Trustero to be able to access.
Folders and Files
- In Google Drive, select a folder or file you would like the Trustero application to be able to access.
- Click Share.
- Enter your new service account’s email address and assign it a role of Editor.
- Folders and files shared with your service account will appear in the Google File Picker window under the Google Drive tab when using the Trustero platform.
Shared Drives
- In Google Drive, on the left-hand side, click on Shared Drives, and select a drive you would like the Trustero application to be able to access.
- At the top right of the Shared Drive window, click on the Manage members icon (usually represented by a person with a plus sign).
- In the Add people and groups field, enter your new service account’s email address and assign it a role of Contributor.
- Shared drives will appear in the Google File Picker window under the Shared drives tab when using the Trustero platform.
Activate Google Drive Integration
Once you’ve created a service account, granted Trustero permission to impersonate the service account, and shared the appropriate resources with the service account, you are ready to activate the integration within the Trustero platform.
Connect Google Drive
- In the Trustero platform, go to Settings -> Account.
- Click on the activate icon on the Google Drive row item.
- Enter the email address of your service account in the Service Account Email field and click Connect.
For more information on this feature, see the Google Drive Integration product announcement