File Search
Overview
File Search helps you understand the sensitive data risk across files in your cloud office environment. When enabled, Material's File Search syncs file activity, classifies sensitive data, and helps you identify risky sharing patterns. Material provides out-of-the-box remediation tools for addressing these risks across your most sensitive files.
File Search for Google Drive
If you have at least one enrolled Google tenant, you can configure Material to connect to your Google Drive environment. Material supports syncing and sensitive content analysis across both My Drives and Shared Drives, and shows its findings in File Search.
Once enabled, File Search starts indexing and analyzing your Google Drive environment. Material processes the most recent activity first, then works backward to build visibility across your Google Drive history. File Search syncs 6 months of historical activity starting from when you enable syncing, plus all new activity while syncing is enabled.
Syncing times vary based on the size and complexity of your Google Drive. Because Material syncs the most recent activity first, you can usually start exploring results within an hour of enabling sync.
Setup and Configuration
You can configure File Search manually, or by using the in-product setup guide the first time you visit File Search. Setting up File Search for Google Drive follows three basic steps:
Granting Scopes
File Search needs two additional Google Drive scopes, drive and drive.activity, granted to Material through domain-wide delegation for each Google tenant you want to sync. For steps, see Google Drive Security Settings.
If you have questions about granting scopes, contact Material Support.
Enabling My Drive Syncing
Enabling My Drive Syncing allows Material to sync and analyze files stored in My Drives. You turn it on in Google Drive Security > Settings, where you also choose which accounts and groups to sync. For steps, see Google Drive Security Settings.
Enabling Shared Drive Syncing
Enabling Shared Drive Syncing allows Material to sync and analyze files stored in Shared Drives. Because there is no single “owner” of a Shared Drive, Shared Drive Syncing is not tied to a particular Account or Group. Instead, you choose which Shared Drives to sync. For steps, see Google Drive Security Settings.
If you exclude a Shared Drive later, Material ignores any new activity from it.
File Search
Once Google Drive data is syncing, you can use File Search to write custom queries about your Google Drive environment. Material offers several Suggested Queries to help get you started. Click a Suggested Query to fill in the search bar and run the search.
Search modes
File Search has three modes, which you choose with Search Mode at the top of the search:
Quick: a form where you search by file name, owner, type, location, sharing, and sensitive-data category, without writing a query.
Prompt: describe what you're looking for in plain English, without writing a query.
Query: the full search syntax described below.

Every mode supports Save as detection, so you can turn a search you've built into a detection without rewriting it. In Prompt mode that means you can describe the files you want to find in plain language and save that search as a detection directly.
In Quick mode, the Trusted external filter matches files shared externally to a trusted entity, separately from files shared externally in general. In Query mode, use the shared.with_trusted_entity operator.

Search Syntax
As you write a query, File Search suggests syntax, shows documentation for each option, filters suggestions as you type, and checks that your query is valid.
File Search offers four core namespaces to help organize your query building blocks. Each namespace has a set of corresponding properties:
File
Search across file metadata and content.
id, name, type, content, and owner
Category
Search for files containing specific sensitive data categories
ssn, credit_card, ein, passport
Shared
Search for files that have been shared in specific ways
externally, with_personal_email, with_public_link
Location
Search for files stored in a specific location
my_drive, shared_drive
When writing a query, all supported namespaces, properties, and operators are suggested to you. In addition, File Search supports and, or, not operators, as well as parentheses (, ).
Validation
As you build your query, the Search button is enabled only when the query syntax is valid.
Keyboard Shortcuts
You can use your keyboard to quickly build queries. When the suggestion menu is open, use the DOWN / UP arrow keys to cycle through available options. Use ENTER or TAB to add the selected value to your query.
Use ESCAPE to close the suggestion menu at any time, and DOWN to reopen it.
Whenever the Search button is enabled, use ENTER to run the current search query.
Example Queries
Here are a few example queries to help you understand how the search syntax works:
Example: Searching for Sensitive Financial Data, Shared Externally
shared.externally and (category.bank_routing or category.ein or category.financial_report)
Example: Searching for All Sensitive Files an Account Has Access To
shared.has_access:"tom@example.com" and category.any
Example: Searching in Shared Drives for Files Containing SSNs that are Shared with Personal Email
location.is_shared_drive and category.ssn and shared.with_personal_email
For a full list of available search operators, see the File Search Operator Reference below:
File Search Operator Reference
category
object
Search for files based on the kind of sensitive data they contain
category.any
bool
Files containing any category of sensitive data
category.bank_routing
bool
Files containing: US bank routing numbers
category.confidential
bool
Files containing: Information marked as privileged or confidential
category.credit_card
bool
Files containing: Credit card numbers
category.drivers_license
bool
Files containing: Drivers license numbers
category.ein
bool
Files containing: US employer identification numbers
category.financial_report
bool
Files containing: Financial reports such as income statements, balance sheets or projections
category.health_record
bool
Files containing: Health records including lab test results and biometric data
category.iban
bool
Files containing: International Bank Account Number (IBAN) codes
category.passport
bool
Files containing: Passport numbers
category.password
bool
Files containing: Passwords
category.patent
bool
Files containing: Patent documents such as applications and inventor declarations
category.payroll
bool
Files containing: Wages and payroll statements
category.source_code
bool
Files containing: Source code
category.ssn
bool
Files containing: US Social Security numbers
category.swift
bool
Files containing: SWIFT codes
category.tax_document
bool
Files containing: Completed common US Tax Forms such as Form W-2, Form W-9, etc.
file
object
Search for files based on content, owner, and other metadata
file.content
string
Search for files by content
file.created
date
Search for files by created date
file.id
string
Search for files by id
file.labels
array
Search for files with a label
file.last_modified
date
Search for files by last modified date
file.name
string
Search for files by name
file.owner
string
Search for files by owner
file.type
object
Search for files by type
file.type.document
bool
Matches documents, such as Google Document or Word Document
file.type.drawing
bool
Matches drawings, such as Google Drawing
file.type.image
bool
Matches images, such as .jpg, .png, .svg, and .webp
file.type.mime_type
string
Search for files matching a mime type string
file.type.pdf
bool
Matches PDFs
file.type.presentation
bool
Matches presentations, such as Google Presentation or PowerPoint
file.type.spreadsheet
bool
Matches spreadsheets, such as Google Sheet or Excel
file.type.text
bool
Matches text files, such as .txt and .rtf
location
object
Search for files based on where they're stored
location.is_my_drive
bool
Search for files that are stored in a user's My Drive
location.is_shared_drive
bool
Search for files that are stored in shared drives
location.shared_drive
object
Search for files that are stored in a specific shared drive
location.shared_drive.id
string
Search for shared drives by id
shared
object
Search for files based on how they've been shared
shared.externally
bool
Search for files that are shared outside the organization in any way (by link or with explicit entities)
shared.with_trusted_entity
bool
Search for files that are shared externally to a trusted entity
shared.has_access
string
Search for files that this email has access to
shared.restricted
bool
Search for files where the general access is restricted to those entities with which the file is explicitly shared
shared.with
object
Search for files that are shared with...
shared.with.domain
string
Search for files that are shared with this entire Google Workspace domain
shared.with.email
string
Search for files that are shared with this email
shared.with.group
string
Search for files that are shared with this group
shared.with_disposable_email
bool
Search for files that are shared with an email address known to be provided by a disposable email service such as Temp-Mail or 10MinuteMail
shared.with_employee_personal_email
bool
Search for files that are shared with a personal email address whose display name or username contains the first or last name of an internal user who has explicit access to the file. Note this does not detect access to the file via group or organization membership.
shared.with_org
bool
Search for files that are shared with the organization
shared.with_personal_email
bool
Search for files that are shared with an email address with a domain typically used for personal email accounts, such as gmail.com or yahoo.com
shared.with_public_link
bool
Search for files that are publicly accessible to anyone with a link
shared.with_sanctioned_country_tld
bool
Search for files shared with top-level domains associated with a country with comprehensive US sanctions (complete list here)
FAQ
What file types are supported?
File Search supports the most common cloud office documents, including native Google file types (Google Docs, Google Sheets, and Google Slides), Microsoft Office documents, and common file types like PDF, CSV, and various images. Material doesn't process video files or large binary files.
Are there file size limitations?
File Search looks across your entire Google Drive footprint to help provide visibility. Material processes files up to 10 MB for sensitive content, and syncs metadata so all other files are searchable.
How often does Material scan for new sensitive content or sharing?
Material scans for changes in sensitive content and sharing based on document activity, not on a fixed refresh interval. When a change happens in Google Drive, Material processes that event and rescans for sensitive content when needed.
How far back does Material scan historically?
Material has access to 6 months of activity data for Google Drive, as limited by Google's APIs. Material also syncs all new activity for as long as syncing is enabled. This historical sync is based on activity, not file age. If a file created 10 years ago was modified in the last 6 months, Material scans it, and any older file that's touched later is scanned too. Over time, this covers most of your Google Drive footprint.
What types of sensitive data does Material scan for?
Material scans for 16 built-in Sensitive Content Categories. For the full list, see the suggestion menu in File Search, under the category namespace.
Can I save queries as part of File Search?
File Search doesn't save queries. To reuse a search, save it as a detection instead.
Why can’t I see a file preview?
Material previews file types that support text extraction, so images don't have previews. Files like PDFs show a plain text preview.
Are Google Workspace domains and DNS domains the same thing?
They are related but not entirely the same. shared.with.domain refers to the concept of a Google Workspace domain that is configured as a trusted domain in your Google Drive sharing settings. To search for a file shared with any email address ending with a particular DNS domain such as example.com, use the contains operator, such as shared.with.email:~"@example.com".
Appendix
Top Level Domain (TLD) List for shared.with_sanctioned_country_tld
Iran
.ir
North Korea
.kp
Russia
.ru
Syria
.sy
Last updated
Was this helpful?

