Skip to content

Data protection

Google Workspace DLP: setup, rules and limits

Check your Workspace edition, configure Drive DLP rules, test detections, and fix risky sharing. Includes rule examples and an access-review checklist.

Elba helps security teams review risky Drive sharing with the people who own the context and apply corrections supported by the connected source. Use this guide to compare native DLP rules with that review workflow. Trusted by 190+ organizations.

What to take away

Google Workspace data loss prevention (DLP) uses rules to detect sensitive content and apply configured protections. This guide focuses on Google Drive: check your edition, test a rule, investigate gaps, then review who still needs access. Content detection and permission cleanup are complementary jobs.

1. Check which Google Workspace DLP controls you have

Full Drive DLP rules are available on supported editions, including Enterprise Standard and Enterprise Plus. Check Google’s current edition list before following the custom-rule setup below. Business Plus includes Security advisor protections with a subset of predefined detectors and more limited rule editing.

Write down your edition, available controls, and the Drive locations you need to protect. A missing custom-rule option can be an entitlement or admin-role issue. Start by checking those two points rather than assuming protection is active or immediately buying another tool.

References: Google — About DLP for Drive · Google — Security advisor for data protection

Compare the workflow you need

These tools address overlapping jobs. Check the stated edition, connection and action limits before choosing; the summaries below were checked against the linked official documentation on 20 October 2026.

Compare the workflow you need
ToolDocumented Drive workflowCheck before relying on it
Google native DLPContent rules for My Drive and shared drives; configured warning, block, labels or audit.Full rules require a supported Workspace edition; content and scan limits apply. Google DLP documentation
NightfallAPI-based Drive detection and configured sharing remediation, including external-access removal and restricted links.Enable the selected actions; removing direct access does not remove shared-drive inherited access. Nightfall setup · Nightfall action limits
Microsoft PurviewDLP for connected non-Microsoft apps includes Google Workspace in preview.Requires a Defender for Cloud Apps connector and eligible licensing. Rollout varies; no policy tips, user overrides or simulation mode for these policies. Purview connected-app DLP
ElbaDrive findings, audience context, owner review, supported direct corrections and recurring Playbook workflows.A separate Google security-source grant is needed. Actions depend on the connection and asset; connecting the directory does not enable Drive inspection. Elba Data Protection

2. Separate content, permissions, and business need

Google’s Drive DLP documentation describes rules that inspect eligible content and apply configured actions, including warnings or blocks on external sharing. Availability depends on your Workspace edition and administrative privileges. Check the current provider documentation before choosing controls.

Your review also needs an account of the audience and the business reason for sharing. A confidential file can have appropriate access, while an ordinary project document can still expose information to an obsolete collaborator. Use the three views below together when choosing what to investigate.

2. Separate content, permissions, and business need
ViewQuestion it answersEvidence to retain
Content and DLPDoes supported content match a sensitive-data rule?Rule, finding, scope, and observation date
Sharing permissionsWhich people, groups, or link audiences have access?Current permission details and drive context
Owner reviewIs this audience still needed for the work?Decision, business reason, and exception owner
VerificationDid the intended access change actually happen?Source state checked after the change

References: Google — About DLP for Drive

3. Define the scope and collect a dated view

Start with a business area, sensitive project, or group of external collaborators. Identify the relevant My Drive and shared-drive content, responsible owners, and review date. Decide how you will examine public links, named external recipients, and group-based access. Record any areas you cannot inspect.

For each item, keep a file reference, owner, location, audience, sensitivity signal, proposed action, and decision owner. Include the date of collection. A file can change between discovery and review, so check the current source before making a correction. Keep investigation records limited to what reviewers need; copying the sensitive document into a tracking sheet creates another exposure to manage.

4. Configure a Drive DLP rule, then test it in audit mode

In the Admin console, open Security → Access and data control → Data protection. Creating rules requires the relevant DLP, organizational-unit and group admin privileges; use Google’s linked setup instructions to verify the role.

Use an isolated pilot scope and synthetic documents. Give the rule a clear purpose, such as identifying a fictional project codename before deciding whether its external sharing should be blocked.

  • Create a rule under Manage rules and select Google Drive files.
  • Choose the pilot scope and a content condition: a predefined detector, word list, or expression.
  • For an audit-only test, leave the enforcement action unselected and save the rule as Active. Inactive rules do not test anything.
  • Inspect Rule log events. Once the test is satisfactory, choose the appropriate warning or blocking action, communicate the change, and repeat the test.
4. Configure a Drive DLP rule, then test it in audit mode
Example rule to testSynthetic fixtureWhat to record
Internal project nameA test document containing the fictional codename CEDARTEST, and a control document without it.Whether only the intended document matches; inspect broad or ambiguous words before enforcement.
Sensitive-data detectorA provider-approved synthetic example for the chosen detector, plus a similar non-sensitive example.The detector and threshold, both observed results, and any false positive to investigate.
External-sharing controlA test owner, an approved external test account, and an internal collaborator.The observed sharing outcome for each account before and after the chosen action.

References: Google — Create DLP rules and test with audit-only actions · Google — Create data protection rules

5. Diagnose missing detections and unexpected sharing

No alert is not proof that a document is safe. Check the rule, the test fixture and the access path separately. Google documents both content exclusions and scanning limits; compare the exact file you tested with those limits.

5. Diagnose missing detections and unexpected sharing
ObservationCheck nextEvidence before closing
Nothing is detectedConfirm the rule is active, the owner or shared drive is in scope, and the condition matches the fixture. Allow for scan processing.A matching and a non-matching synthetic test, with rule and observation times.
A large or protected file is missedCheck the supported format and extraction limits. Drive DLP evaluates the first 10 MB of extracted text; password-protected contents are excluded.File type, size, location of the test content, and the documented coverage limit.
The rule matches but a user can shareCheck the configured action. Audit mode records; a warning can be overridden. Check the actual recipient and other access paths.The rule event, chosen action and resulting recipient access.
A sharing event appears in a logRead the current permissions too. A historical event does not establish today’s audience.A dated permission check, including relevant groups and inherited access.

References: Google — About DLP for Drive · Google — Drive log events · Google — DLP content and rule size limits

6. Choose the smallest appropriate correction

Consider a fictional procurement folder shared with a supplier whose engagement has ended. Ask the owner whether the supplier still needs access, whether a group grants additional access, and whether another team relies on the same folder. If removal is appropriate, assign the change and record its completion rather than stopping at the reviewer’s approval.

For an active collaboration, the answer may be to retain a named recipient while removing an unnecessary broad link. For an exception, record the reason, approver, permitted audience, and review date. Prioritize exposure and sensitivity while preserving a clear route for legitimate business work.

  • Validate the current audience and business purpose with the owner.
  • Choose the permission or policy change that addresses the identified issue.
  • Name the person who will apply changes that cannot be made directly.
  • Retain the decision separately from the evidence that it was implemented.

7. Verify access and watch for retained permissions

Google documents an important shared-drive behavior: tightening an external-sharing restriction can prevent access while leaving the underlying file permission in place. If the restriction is later relaxed, that permission can grant access again. Record whether you removed a permission or only changed a policy that currently blocks it.

After a correction, inspect the source and validate access using approved test accounts where appropriate. Check that the intended audience lost access and that required collaborators can still work. Include relevant group membership and inherited access in that assessment. Retain the result, date, and any unresolved access path before closing the item.

References: Google — How file access works in shared drives

How Elba supports a Drive sharing review

Elba can connect supported Drive sharing findings to the asset, audience, and employee who understands the context. Eligible issues can expose direct permission removal or be distributed to an employee for review and a supported correction. Data Protection Playbooks help organize recurring findings around the conditions available in your workspace.

The Google Workspace directory connection is separate from the Google security-source grant used for supported Drive and OAuth security workflows. Connecting the directory does not enable Drive inspection by itself. Findings and actions depend on the enabled grant, workspace configuration, and object. Review the live scopes and validate representative findings before relying on coverage.

Drive content can also leave through AI prompts

A restricted Drive link does not stop someone copying its text into an AI tool. Review the text before sending and replace identifiers that are not needed. Masking a supported identifier is narrower than anonymising a document: names, record references, attachments and unsupported inputs can remain. Treat file-sharing controls and prompt review as separate checks, and verify the exact text and supported browser workflow.

Drive sharing review checklist

0 of 8 checks complete

Your checks stay on this page and reset when you reload it.

Common questions

Does DLP replace a review of sharing permissions?

No. Content rules, the current audience, and the business need answer different questions. Use them together to decide whether a particular exposure needs a correction.

Does blocking external sharing remove every existing permission?

Do not assume so. Google documents shared-drive restrictions that prevent access while retaining underlying permissions. Check the resulting source state and the effect of later policy changes.

How should a team handle legitimate external collaboration?

Verify the intended recipients with the owner, remove unnecessary access where appropriate, and document any exception with a review date. Blanket changes can disrupt work if the scope is not understood.

Does the Elba directory connection automatically inspect Drive?

No. Supported Drive security workflows require the separate Google security-source grant and the relevant capabilities to be enabled. Direct corrections are available only for eligible objects and permissions.

Does every Google Workspace edition include full Drive DLP rules?

No. Check Google's current supported-edition list and your admin privileges. A missing rule editor can reflect entitlement or role restrictions; do not treat a connected account as proof that DLP is active.

How should a small team compare Google DLP, Nightfall, Purview and Elba?

Start with the job: native content enforcement, connected-app detection, sharing review or owner-led correction. Use the comparison above, verify current licensing and connection requirements, and test the specific supported action. No single row proves universal coverage.

Does a Drive sharing rule protect text copied into an AI prompt?

Do not assume it does. Drive permissions and the text sent to an AI tool are different checks. Review the exact prompt and the supported masking scope; replacing an IBAN does not establish that every name, reference or attachment is anonymised.

Sources & further reading

Primary documentation used to review this guide. Product settings and edition requirements can change; check the linked documentation before making changes.

Put it into practice

SaaS data protectionGoogle Workspace integrationApplications and accessUser access review checklist
AI security6 min

Shadow AI: discover tools and control sensitive data

Build a Shadow AI inventory, distinguish observed use from verified access, and test controls for sensitive prompts and uploads.

Read the guide
AI security8 min

Copilot and M365 agents: residual oversharing after the policies

After Copilot and M365 agent policies, residual risk remains in permissions, connectors, and knowledge sources. An SMB checklist for oversharing you still need to verify.

Read the guide
AI security8 min

AI governance vs Shadow AI: what SMBs should decide beyond inventory

Shadow AI inventory finds tools. SMB AI governance sets approval, data rules, exceptions, and measurement—so policy is not only a discovery spreadsheet.

Read the guide
Applications and access6 min

User access review checklist: from accounts to completed changes

Run an access review with verified accounts, clear decisions, tracked changes, and completion evidence. Includes a reusable review checklist.

Read the guide
Data protection7 min

Slack data loss prevention: coverage, review and verified action

Evaluate Slack DLP, separate message exposure from linked-file access, and test a practical review workflow with clear Elba coverage limits.

Read the guide
Data protection6 min

SharePoint external sharing: review access with Copilot in mind

Review SharePoint and OneDrive sharing, distinguish permissions from discovery controls, and verify access changes with owners and practical checks.

Read the guide
Data protection7 min

Find and fix Anyone links in Google Drive and SharePoint

Build a dated inventory of anonymous file links, decide with owners, and verify changes in Drive, SharePoint, and OneDrive.

Read the guide
Security awareness7 min

After a phishing click: check the SaaS controls training cannot close

Keep phishing practice, then verify mailbox rules, OAuth consent, file links, and sensitive AI use after a suspected compromise.

Read the guide
Application security7 min

Audit third-party OAuth apps in Google Workspace and Microsoft 365

Inventory connected apps and consent, rank grants by scope, and verify keep, restrict, or revoke decisions in the source.

Read the guide
Applications and access6 min

Employee offboarding checklist for SaaS access

Download a free offboarding review template. Confirm accounts, assign access changes, preserve ownership and verify removal in each source application.

Read the guide
Audit evidence8 min

Third-party SaaS and OAuth apps as ISO 27001 evidence (SMB checklist)

Turn your SaaS and OAuth app inventory into ISO 27001:2022 evidence: control mapping, dated exports, owners and decisions. A checklist for lean SMB teams.

Read the guide
Platform evaluation4 min

Evaluate SaaS security across the whole workflow

Compare how your tools connect a SaaS finding, employee context, an authorised action and verification in the source application.

Read the guide
Applications and access8 min

Shadow IT discovery tools for SMBs: Elba, Nudge Security and With Wings

Compare vendor-stated SaaS and AI discovery, supported responses and deployment needs. Includes a practical pilot checklist for lean IT teams.

Read the guide

From review to remediation

Turn a Drive sharing finding into a verified correction.

Bring your Google Workspace setup to a demo. We’ll show how Elba connects supported sharing findings, owner decisions and eligible permission changes.

Request a demo