Set Up Google Drive Connector
To set up the Google Drive connector you need to be an administrator of your Google Workspace. You will also need access to the Google Cloud Console.
Group-based sharing lets ambeRise respect your Google Workspace group permissions - if a file is shared with a group, only members of that group will see it in search results. To enable this, you need to add the optional Admin SDK scopes in Step 4 and include your Workspace domain in Step 7. If you skip the optional scopes, ambeRise will still index Drive but will only apply direct user-level permissions.
Step 1: Create a Google Cloud project
Go to https://console.cloud.google.com β click the project dropdown in the top bar β New Project.
Set the project name to
amberise-drive-connectorSelect your organization
Click Create

Step 2: Enable the APIs
In the left menu go to APIs & Services β Library. Search for each API below and click Enable:
Google Drive API
Admin SDK API (only required if you want group-based sharing to work)

Step 3: Configure the OAuth consent screen
In the left menu go to Google Auth Platform β Branding. Complete the 4-step wizard:
Set App name to
ambeRiseSet User support email to your admin email
In the Audience step, select Internal
Add your admin email as Developer contact
Click Create

Step 4: Add OAuth scopes
In the left menu go to Data Access β Add or remove scopes. Scroll down to Manually add scopes and paste:
Required - needed for basic Drive indexing and user identification:
openid
https://www.googleapis.com/auth/userinfo.email https://www.googleapis.com/auth/userinfo.profile https://www.googleapis.com/auth/drive.readonlyOptional - only needed for group-based sharing (see the intro above):
https://www.googleapis.com/auth/admin.directory.user.readonly https://www.googleapis.com/auth/admin.directory.group.readonly https://www.googleapis.com/auth/admin.directory.group.member.readonlyClick Add to table β Save. You can see a description of what each scope does in the User-facing description column of the table.

Step 5: Create the OAuth client
In the left menu go to APIs & Services β Credentials β + Create credentials β OAuth client ID.

Set Application type to
Web applicationSet Name to
ambeRiseUnder Authorized redirect URIs add:
https://<your-amberise-host>/api/auth/google_drive/callbackhttps://developers.google.com/oauthplayground
Click Create

Copy the Client ID and Client Secret from the popup.
Step 6: Generate the refresh token
Go to https://developers.google.com/oauthplayground
Click the gear icon (top right)
Check "Use your own OAuth credentials"
Paste your Client ID and Client Secret from Step 5
Close the panel

On the left side, under Step 1 - Select & authorize APIs, find the "Input your own scopes" box at the bottom and paste all scopes at once:
https://www.googleapis.com/auth/drive.readonly https://www.googleapis.com/auth/admin.directory.user.readonly https://www.googleapis.com/auth/admin.directory.group.readonly https://www.googleapis.com/auth/admin.directory.group.member.readonlyClick Authorize APIs β sign in with your Workspace admin account β check all scopes β click Allow.
Back in the Playground, click Step 2 β Exchange authorization code for tokens. Copy the refresh_token value from the JSON response on the right (starts with 1//).
Step 7: Share credentials with amber support
Securely share the following with the amber support team:
Client ID
Client Secret
Refresh Token
Workspace domain (e.g.
example.com)
amber will configure the connector on your instance.