Skip to Content
SourcesGoogle Workspace

Google Workspace

Google Workspace

Scan Google Drive files, Docs, Sheets, and Slides across My Drive and shared drives.

Category
Collaboration
Source type
GOOGLE_WORKSPACE
Produces
fileimagedrive

Google Drive is where the working documents live — the spreadsheets, the exported reports, the shared folder someone made public in 2019 and forgot.

What you need to connect

Two ways in:

MethodWhat you supplyUse it when
Service accountThe service account JSON, plus the user to impersonateScanning on behalf of the organisation, with domain-wide delegation
OAuthClient ID, client secret and a refresh tokenScanning one account’s own Drive

The read-only Drive scope is enough. For domain-wide delegation, authorise the service account’s client ID against that scope in the Admin console.

What Classifyre reads

My Drive, shared drives, or both — narrowed to specific drive IDs, to folders, and by file extension.

Google-native files (Docs, Sheets, Slides) have no downloadable bytes of their own, so they’re exported to Office formats before being read — meaning your actual documents are scanned, not just their titles.

Optionally, sharing permissions are captured too, which turns “this document has customer data in it” into “this document has customer data and is shared with anyone who has the link”.

Files in Drive are read with the shared file pipeline: see Supported File Formats for everything it can open, and OCR & Transcription for reading text out of images, audio and video.

Metadata on every asset

Asset kind · file

FieldTypeAlways presentWhat it is
size_bytesintegerYesRaw byte size of the content
mime_typestringYesResolved MIME type
parse_errorstringNoSet when content extraction failed
image_widthintegerNoWidth in pixels
image_heightintegerNoHeight in pixels
page_countintegerNoNumber of pages (pdf)
paragraph_countintegerNoNumber of paragraphs (docx)
table_countintegerNoNumber of tables (docx)
row_countintegerNoNumber of data rows
columnsobject[]NoColumns as {name, type} objects (type may be empty for csv/xlsx)
encodingstringNoDetected character encoding
json_root_typestringNoRoot JSON type: object, array, or scalar
top_level_keysintegerNoNumber of top-level keys when the root is an object
array_lengthintegerNoLength when the root is an array
drive_namestringYesShared drive or 'My Drive' display name
item_pathstringYesBest-effort path within the drive (folder names joined by '/')
web_urlstringNoBrowser-accessible URL for the item (webViewLink)
md5_checksumstringNoDrive-reported MD5 checksum of the file content (binary files only)
ownerstringNoDisplay name or email of the file owner
permissionsstring[]NoSharing permissions on the item: list of {role, grantee_type, grantee} entries (requires include_permissions)
google_mime_typestringNoOriginal Drive mimeType for Google-native files (e.g. application/vnd.google-apps.document)
exported_asstringNoExport MIME type used to download a Google-native file, if applicable

Asset kind · image

FieldTypeAlways presentWhat it is
size_bytesintegerYesRaw byte size of the content
mime_typestringYesResolved MIME type
parse_errorstringNoSet when content extraction failed
source_hashstringYesHash of the parent file asset
locationstringYesLocation of the embedded image within the parent

Asset kind · drive

FieldTypeAlways presentWhat it is
drive_idstringYesGoogle Drive ID (shared drive ID, or a synthetic ID for My Drive)
drive_namestringYesDrive display name
drive_typestringNoDrive type (my_drive or shared_drive)

Lineage

Lineage

This source records no lineage. Nothing in the system it reads describes data moving from one place to another, so no FLOW edges are produced. Related items are still linked — see Lineage & Relationships for what those links mean and how they differ from lineage.

Worth knowing

  • Domain-wide delegation is powerful. The delegated user determines what the scan can see; pick that account deliberately.
  • Shared drives are usually the priority — they’re where cross-team data accumulates without a clear owner.

Configuration

Beyond the fields below, every source also has the settings shared by all of them: the sampling strategy, the detectors to run, the scan schedule, and the compute limits for its scan jobs.

Required

Without these, the source will not save.

This section depends on which authentication method you pick — one of the following applies.

Google Workspace Service Account

FieldTypeRequiredWhat it doesDefault
auth_method"service_account"Yes
delegated_subjectstringNoUser email to impersonate via domain-wide delegation (optional)

Google Workspace OAuth

FieldTypeRequiredWhat it doesDefault
auth_method"oauth"Yes
client_idstringYesOAuth 2.0 client ID

Secrets

Stored encrypted and never shown again after you save them. See Configuration & Fields.

This section depends on which authentication method you pick — one of the following applies.

Google Workspace Service Account

FieldTypeRequiredWhat it doesDefault
service_account_jsonstringYesFull JSON key for the Google service account

Google Workspace OAuth

FieldTypeRequiredWhat it doesDefault
client_secretstringYesOAuth 2.0 client secret
refresh_tokenstringYesOAuth 2.0 refresh token

Optional

Everything you can tune. Sensible defaults apply when you leave them alone.

FieldTypeRequiredWhat it doesDefault
optionalobjectNono extra properties
connectionobjectNoNetwork and pagination controls for Drive API requests.no extra properties
connection.max_object_bytesintegerNoSkip files larger than this many bytes (default 100 MB)min 0104857600
connection.max_retriesintegerNoMaximum retries on transient errorsmin 0, max 105
connection.page_sizeintegerNoItems per page for Drive API list requestsmin 1, max 10001000
connection.timeout_secondsintegerNoSocket timeout for Drive API operationsmin 5, max 30030
extractionobjectNoControls which structural assets to emit and how Google-native files are handled.no extra properties
extraction.export_google_formatsbooleanNoExport Google-native files (Docs/Sheets/Slides) to Office formats for content extractiontrue
extraction.include_drive_metadatabooleanNoEmit drive-level assets with metadatatrue
scopeobjectNoDrive/folder selection and content filtering.no extra properties
scope.drive_idsarrayNoShared drive IDs to scan (empty = all accessible shared drives)
scope.drive_ids[]stringNo
scope.exclude_file_extensionsarrayNoSkip files with these extensions
scope.exclude_file_extensions[]stringNo
scope.folder_idsarrayNoOnly scan these folder IDs recursively (empty = full drives)
scope.folder_ids[]stringNo
scope.include_file_extensionsarrayNoOnly include files with these extensions (e.g. .pdf, .docx)
scope.include_file_extensions[]stringNo
scope.include_my_drivebooleanNoInclude the authenticated/delegated user's My Drivetrue
scope.include_permissionsbooleanNoInclude file sharing permission metadatafalse
scope.include_shared_drivesbooleanNoInclude shared drivestrue
Last updated on