implementing-data-loss-prevention-with-microsoft-purview

Configure Microsoft Purview DLP policies, sensitivity labels, and endpoint data protection rules.

954|172|Updated Mar 13, 2026
One-click install
npx skills add https://github.com/xalgord/xalgorix --skill implementing-data-loss-prevention-with-microsoft-purview
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: implementing-data-loss-prevention-with-microsoft-purview
Source: https://github.com/xalgord/xalgorix/tree/main/internal/tools/skills/data/data-protection/implementing-data-loss-prevention-with-microsoft-purview
Command: npx skills add https://github.com/xalgord/xalgorix --skill implementing-data-loss-prevention-with-microsoft-purview

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Organizations struggle to prevent sensitive data (PII, PCI, PHI, intellectual property) from leaking through email, cloud storage, Teams, and endpoint file operations. This Skill guides the design, deployment, and monitoring of Microsoft Purview data loss prevention controls so sensitive content is classified, labeled, and blocked from unauthorized exfiltration.

Core Features & Use Cases

  • Sensitivity Label Taxonomy: Create and publish label hierarchies with encryption, content marking, and auto-labeling via Security & Compliance PowerShell.
  • DLP Policy Creation: Build policies using built-in and custom regex-based sensitive information types across Exchange, SharePoint, OneDrive, and Teams.
  • Endpoint DLP: Control copy-to-USB, print, clipboard, and cloud-upload actions on onboarded Windows and macOS devices.
  • Monitoring & Alerting: Analyze policy matches in Activity Explorer, manage DLP alerts, and query events through the Microsoft Graph API and unified audit log.
  • Use Case: A financial services firm simulates a PCI-DSS policy for 14 days, tunes credit card SIT confidence thresholds to reduce false positives, then enforces blocking rules and integrates alerts with Microsoft Sentinel.

Quick Start

Ask the assistant to create a Microsoft Purview DLP policy that blocks external sharing of credit card numbers across Exchange, SharePoint, and endpoints, starting in simulation mode.

Frequently Asked Questions about implementing-data-loss-prevention-with-microsoft-purview

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create a DLP policy in Microsoft Purview?

Use New-DlpCompliancePolicy in Security & Compliance PowerShell to scope locations like Exchange, SharePoint, and OneDrive, then add rules with New-DlpComplianceRule specifying sensitive information types, confidence thresholds, and actions such as block or notify. Start in TestWithNotifications mode before enforcing.

How do I create a custom sensitive information type with regex?

Define an XML rule package containing your regex pattern, optional corroborating keywords, and confidence levels, then import it with New-DlpSensitiveInformationTypeRulePackage. Note that ^ and $ anchors do not behave as expected in Purview, so validate patterns in simulation mode first.

What license is required for Microsoft Purview DLP?

Endpoint DLP and full policy capabilities require Microsoft 365 E5, E5 Compliance, or the E5 Information Protection add-on assigned to target users. You also need Compliance Administrator or equivalent roles in the Purview portal.

Does endpoint DLP work on macOS devices?

Yes, endpoint DLP supports macOS 12+ and Windows 10/11 21H2+ devices, but they must be onboarded through Microsoft Intune or Configuration Manager. Verify onboarding by checking that the registry OnboardingState value equals 1 on Windows.

Why is my DLP policy not blocking anything?

The policy is likely still in test mode; check with Get-DlpCompliancePolicy and confirm the Mode is set to Enable rather than TestWithNotifications. Also verify all intended locations are bound and endpoint devices are actually onboarded.

How do I reduce false positives in DLP policies?

Raise the SIT confidence level (for example from 65 to 85), increase MinCount, and add corroborating keywords to custom SITs. Review override activity in Activity Explorer and validate patterns against a seeded test corpus with Test-DataClassification.