Before you begin
- Use a Google account that can manage the Google Cloud project. It does not need access to the Drive content that users will import.
- Know the public URL of your Zylon instance, for example
https://zylon.company.com. - Keep the OAuth client secret in a secure secret store. Do not commit it to source control. The Picker API key is used by the browser, so restrict it to the required APIs and, where applicable, your Zylon origin.
Create or select a Google Cloud project
- Open the Google Cloud console.
- Select an existing project or create a new project for the integration.
- Record the Project number from the project dashboard. Zylon uses this as the Picker App ID.
Enable the Google APIs
- In the Google Cloud console, go to APIs & Services → Library.
- Search for and enable Google Drive API.
- Search for and enable Google Picker API.

Create and restrict an API key
The Google Picker requires an API key in addition to the OAuth client credentials.- Go to APIs & Services → Credentials.
- Select Create credentials → API key.
- Copy the key; it is the value for Zylon’s
apiKeysetting. - Open the new key and, under API restrictions, select Restrict key.
- Select Google Drive API and Google Picker API, then save the key.
https://zylon.company.com.

Configure the OAuth consent screen and data access
- In the Google Cloud console, open Google Auth platform. Complete the required Branding and Audience settings for your organization.
- Open Data Access and select Add or remove scopes.
- Add the following scopes, then save the changes.
Zylon requests all of these scopes during sign-in. The Drive metadata scope is required by the connector implementation as well as the Drive read-only scope.

Create an OAuth client
- In Google Auth platform, open Clients.
- Select Create client and choose Web application as the application type.
- Give the client a meaningful name, such as
Zylon Google Drive. - Under Authorized redirect URIs, add the following URL, replacing the domain with your Zylon instance URL:
- Create the client.
- Copy the Client ID and Client secret. You will use them as
clientIdandclientSecretin the Zylon configuration.

Configure Zylon
Add the following values to your Zylon configuration. The sameapiKey and appId values are made available to the Workspace frontend for the Google Picker.
integration.googleDrive:
Troubleshooting
The Google Drive option is unavailable or the picker closes immediately
- Confirm that
integration.googleDrive.enabledistrue. - Confirm that
apiKeyandappIdare configured. The Picker requires both values. - Confirm that the Google Drive API and Google Picker API are enabled in the same Google Cloud project.
Google sign-in reports a redirect URI error
- Verify that the Authorized redirect URI is exactly the same as
redirectUriin the Zylon configuration. - Confirm that the domain is the public HTTPS domain used to access Zylon.
A user cannot see or import a Drive item
- Confirm that the user signs in with the Google account that can access the item.
- Confirm that the consent screen includes all scopes listed in Configure the OAuth consent screen and data access.