Google Drive

Search Google Docs, Sheets, Slides, and supported files in Drive. A Sim organization admin chooses the folders and connection method once.

Admin setup uses your organization's Settings → Integrations page. Teammates connect from Integrations in the main sidebar. For workspace Search, use Search → Add source instead; Create & Invite is the workspace equivalent of Add source.

Choose your setup

MethodUse it whenWhat teammates do
Member accountsEach person should connect their own Drive access. No Google Workspace administrator setup is needed.Connect their own Google Drive accounts after the source is created.
Service accountA Google Workspace administrator can configure delegation and directory access for a central crawl.Sign in to Sim with matching verified email addresses; no personal Drive connection is needed for this source.

A central crawl indexes only files the configured Crawl as account can access. Domain-wide delegation does not make this connector crawl every employee's Drive. Share the intended content with the indexing account, or use member accounts for each person's accessible files.

Set up member accounts

Add Google Drive

Open Settings → Integrations → Providers, approve Google Drive, then select Set up and choose Member accounts.

Choose the files

Leave Folders empty to include supported files each connected member can access, or select folders to narrow the source. Browse with helps you pick folders; you can also switch to Folder IDs and enter comma-separated IDs from their Drive URLs.

Keep Sync documents with → Connected members unless you have a dedicated indexing account. Selecting an indexing account does not replace each person's access verification. If that indexing account is a delegated service account, use Crawl as to choose the Google Workspace user whose files it should fetch.

Create and connect

Select Add source, then Connect account on the source row. Use the Google account matching your verified Sim email. Teammates follow the same connection steps after joining the organization.

Set up a central service account

This requires a Google Workspace domain and a Workspace super administrator to authorize domain-wide delegation. Consumer Gmail accounts cannot use this path.

Prepare the service account

In Google Cloud Console, select your project and enable Google Drive API and Admin SDK API under APIs & Services → Library. Then open IAM & Admin → Service Accounts → Create service account, enter a name, and finish creation. Google Cloud project roles do not grant access to Workspace files; they are not required for this crawl.

Open the service account's Keys tab and choose Add key → Create new key → JSON, then select Create to download the key. Store it securely; you will add it to Sim next. See Google's key creation guide.

Authorize domain-wide delegation

In the service account's Details, expand Advanced settings and copy its numeric Client ID. Sign in to the Workspace Admin Console as a super administrator. Open Security → Access and data control → API controls → Manage Domain Wide Delegation → Add new.

Paste that Client ID into Client ID, then enter these exact scopes as a comma-separated list under OAuth scopes:

https://www.googleapis.com/auth/drive.readonly,https://www.googleapis.com/auth/admin.directory.group.readonly,https://www.googleapis.com/auth/admin.directory.domain.readonly

Select Authorize, then View details to confirm all three scopes were saved. If your organization requires multi-party approval, another super administrator must approve the request. Delegation changes can take up to 24 hours to propagate. See Google's Admin Console delegation guide.

These are Search's central crawl scopes. The general Google service account guide includes broader scopes for workflow actions; do not copy those into this Search setup.

Add the credential in Sim

In Google Drive's Search setup, choose Service account. Open the Service account picker, choose its connection action, and paste the JSON key into Add Google Service Account. Give it a name and add it. Sim returns you to the source form with that credential selected.

Choose the indexing identity

Set Crawl as to a Google Workspace administrator who can read groups, memberships, and domains, and can access the content you want indexed. Select folders if needed, then choose Connect & Sync. Sim validates Drive and Directory access before accepting the source.

Source options

OptionBehavior
Folders / Folder IDsOptional. Includes files in each selected folder and its accessible subfolders. A folder selection does not grant access.
File TypeAll supported files by default, or only Google Docs, Sheets, Slides, or text formats. Plain text files only also includes CSV, HTML, Markdown, JSON, and XML.
Crawl asRequired for the central service account. In Member accounts, it optionally supplies the impersonated user when a dedicated service account fetches content. It has no effect on ordinary OAuth accounts.
Openly shared filesApplies only to central crawls; it has no effect in Member accounts. Keep out of search by default. You can include discoverable domain shares or discoverable public shares. Link-only sharing does not grant Search access; named user and group permissions still apply.
Document detailsOptional owner, file type, modification date, and starred metadata.

Sim exports Docs and Slides as text and Sheets as XLSX spreadsheets. Supported uploaded files use the knowledge-base document pipeline, including PDF and Office formats. Unsupported files and oversized exports cannot be indexed; Google limits Workspace exports to 10 MB. See Drive export formats and download limits.

Search schedules syncs hourly. Content, deletions, and permissions refresh in the background; results are not a live read from Drive. Admins can inspect progress and errors through Manage on the source.

Troubleshooting

ProblemNext step
Directory access failedCheck the delegated scopes and the Crawl as user's administrator privileges. A normal Google OAuth credential cannot supply this central Search path.
An existing central source uses a normal Google OAuth accountReplace it with a delegated service account. If the source is Disabled, choose Resume first. Then open Manage, select or add the delegated service account, and choose Change indexing account. A Paused source can change credentials before you resume it.
Missing files in a central crawlOpen them as the Crawl as user. Delegation does not grant that user access to all domain files. Check folder and file-type filters.
A teammate sees no resultsConfirm their verified Sim email matches the Drive permission or group membership. For member accounts, finish their personal Drive connection too.
A public or shared-link file is missingCheck Openly shared files. Link-only sharing does not grant Search access. A named user or group permission can still make the file searchable.
Reconnect or credential errorReauthorize the member account, or replace the service-account credential and verify delegation, as applicable.

Self-hosted OAuth configuration

The deployment operator configures Google OAuth for Member accounts and Browse with. This is separate from the central service account above.

  1. In Google Cloud Console, select your project and enable Google Drive API under APIs & Services → Library.
  2. Open Google Auth platform → Branding and configure the app name and contact details. Under Audience, choose Internal for your Google Workspace organization only, or External for other users, adding test users while testing. Review Data Access → Add or remove scopes using the current Sim scopes below. See Google's consent guidance.
  3. Open Google Auth platform → Clients → Create client, choose Web application, and add this URI under Authorized redirect URIs. Add it to the existing Google client if your instance already uses one.
https://<your-sim-domain>/api/auth/oauth2/callback/google-drive

This Google Cloud example uses one client for all three services. Replace https://sim.example.com with your Sim origin and add only the callbacks for services you enable.

Save the client ID and secret as GOOGLE_CLIENT_ID and GOOGLE_CLIENT_SECRET. Set NEXT_PUBLIC_APP_URL to the same Sim origin used in the callback, then restart Sim. See Integrations & OAuth.

The current Sim Drive OAuth connection uses these scopes:

openid
https://www.googleapis.com/auth/userinfo.email
https://www.googleapis.com/auth/userinfo.profile
https://www.googleapis.com/auth/drive
https://www.googleapis.com/auth/drive.file

Google's drive.readonly scope covers Search's file reads. Sim's existing OAuth connection also supports workflow actions and requires the broader scopes above; do not substitute read-only scopes for member OAuth. The central service account uses the separate read-only Drive and Directory scopes listed earlier. See Google's Drive scope descriptions.

On this page