Google Drive
Connect Google Drive for every user in your workspace.
You can reach out to support@langdock.com to set up your integration together in a call.
Important:
- You need to be a workspace-admin to connect a Google Drive for the entire workspace. If you are not an admin, please reach out to your admin or refer to the user-level integration guide.
- You need the Google Administrator account to set up this integration for the entire workspace.
- This integration uses domain-wide delegation More Information
Start Setup in Langdock
- Go to your integrations.
- Add an integration. Click on Google Drive (Workspace-level)
- You get to the integration management page. Here you can set up the connection.
- Click on Setup Connection to view the required connection fields.
Create a Google Service Account
- In a new tab, sign in to Google Cloud as a super administrator. Click on the three line icon menu in the top right corner, then on IAM & Admin and then Service accounts.
-
Click on Create a new Service Account. Then, give it a name (e.g. Langdock Service Account) and enter a service account id. Click on Create and continue. Then click done.
-
Click on the newly created service account, navigate to the tab Keys and click on Add Key. Select Create new key and then JSON as the key type. You will receive the key as a JSON file in your downloads. You will need the clientID in step 11 again.
Enable the Google Drive API and the Admin SDK API in the Google Cloud Console
-
Enable the Google Drive API in the Google Cloud Console: https://console.developers.google.com/apis/api/drive.googleapis.com/
-
Enable the Admin SDK API in the Google Cloud Console: https://console.cloud.google.com/apis/api/admin.googleapis.com/
Set up domain-wide delegation in Google Account
-
Ensure your logged-in Google Account has super administrator rights, before continuing with this guide.
Open the Google Workspace admin console in a new tab: Google Admin Console
-
In the Google Admin console, go to Menu > Security > Access and data control > API controls > Manage Domain Wide Delegation.
Click Add New and fill out the fields:
- Client ID is unique id of your service account
- OAuth scopes should be the following:
https://www.googleapis.com/auth/admin.directory.group.readonly, https://www.googleapis.com/auth/admin.directory.user.readonly, https://www.googleapis.com/auth/drive.readonly, https://www.googleapis.com/auth/admin.reports.audit.readonly
Paste credentials in Langdock
- Open the JSON you downloaded in step 7 and copy the clientID of the service account (labelled as
Unique ID
in Cloud Console). Paste it into the Private Key field in Langdock.
Copy everything between the " "
. The key inbetween will look like this:
Add the service account email and the Google administrators’ email of the Google Drive service account to the according fields in Langdock.
-
Click on Save.
-
The connection is tested automatically and will be shown as successful or unsuccessful.
You can now access your Google Drive files in a normal chat or in assistants.
If there are any questions or issues you run into, please reach out to support@langdock.com.
Was this page helpful?