About DLP for Gemini

Supported editions for this feature: Frontline Standard and Frontline Plus, Enterprise Standard and Enterprise Plus, Education Fundamentals, Education Standard, and Education Plus; Enterprise Essentials Plus. Compare your edition

With data loss prevention (DLP) for Gemini, you control what users can access in Gemini. Using data protection rules, you can restrict Gemini from accessing sensitive data and reduce AI-related security risks.

How does DLP for Gemini work?

When content is generated with Gemini (either for users or in Google Workspace Studio flows), DLP for Gemini scans the Workspace data, user-specified sources, and linked sources in prompts.

DLP for Gemini in practice

  • You define data protection rules. These rules define which content is sensitive and should be protected.

  • DLP scans content for data protection rule violations that trigger DLP incidents.

  • If the rule is violated, DLP triggers the rule's actions.

  • You are alerted to data protection rule violations.

Supported services and content limits

DLP for Gemini lets you restrict Google Drive, Google Chat (beta), and Gmail (beta) access for specific services, including the Gemini app, Gemini in Workspace, Gemini Enterprise Agent Platform Notebooks, Personal Intelligence in Workspace, and Workspace Studio.

Any services not explicitly mentioned, such as Gemini Enterprise or Gemini in Chrome, aren't subject to these Google Drive access restrictions under the Gemini DLP rule.

For content limits, go to View DLP content and rule size limits.

Understand DLP actions

If your rule finds sensitive content, it can enforce one of the actions included in the following table.

If you have similar rules with different response actions, the stricter action prevails. For example, if one rule only audits when a Social Security Number (SSN) is found in a source Gemini wants to use and another rule blocks Gemini from using SSNs, Gemini can't use that source.

Action Description
Block data access Stops Gemini from using the source to generate its response. The event is logged.
Audit only Lets Gemini proceed without interruption and logs the event.

Understand DLP conditions

You can create a data protection rule with no conditions. In this case, the rule applies to everything in the flow.

Or, you can specify conditions in the data protection rule that define what content or activity to scan for. You can use predefined data types or create your own custom content detectors. You can also combine multiple conditions using AND, OR, or NOT operators.

For details, go to the following articles:

Content type What to scan for Details & use
All Gemini interactions

Matches predefined data type

Contains text string

Matches label (Drive and Gmail only)

Matches regular expression

Matches words from list

Scans the user-entered text, direct-linked sources, and Workspace data sources that Gemini finds. Generates a response for all Gemini interactions, including user chats and steps generated in Studio flows.
Workspace Studio interactions

Matches predefined data type

Contains text string

Matches label (Drive and Gmail only)

Matches regular expression

Matches words from list

Scans the Workspace data sources that Gemini finds in Studio flows, and the resources provided to Gemini during the Studio flow.

Create a rule

After you decide what you want your rule to do, you create the rule. For details, go to Create data protection rules.

Common use cases

The following table provides examples of how to combine conditions (what is checked) and a specific action (the enforcement) to define your DLP policy. To use this table, you must:

  1. Select an action.

  2. Map condition values to the corresponding options.

Changes can take up to 24 hours but typically happen more quickly. Learn more
Use case Action Condition
Block Gemini from accessing sensitive Drive resources for AI grounding Block data access

Content type: Gemini interactions

Where to scan: Google Drive

What to scan for: Classification label

Label: Sensitivity

Label value: NTK

(Beta) Block Gemini from accessing the Gmail resource if content includes SSNs Block data access

Content type: Workspace Studio interactions

Where to scan: Gmail

What to scan for: Matches predefined data type

Data Type: United States - Social Security Number