Compliance Problems

Create Custom Classification and DLP Policies in Microsoft 365

Huma Ashraf ChHuma Ashraf Ch Nov 22, 2026 868 views

Question details

An administrator needs to create custom classification and data loss prevention options for an organization.

Create Custom Classification and DLP Policies in Microsoft 365
Product
Microsoft 365 and Microsoft Purview
Device & OS
not provided
Scenario
The organization needs to identify sensitive information and apply policies suited to its classification requirements.
Observed behavior
Custom information types, DLP rules, or sensitivity labels should match the organization's requirements and available Microsoft 365 features.
Before you start

Confirm that your Microsoft 365 subscription supports the features you need and that your account has the appropriate Microsoft Purview roles. Identify the data patterns, locations, and actions the policy should cover, and clarify whether the requested security level means a sensitivity label, a classification, or a security group.

Solution 1Recommended

Create a Custom Sensitive Information Type and DLP Policy

Use this approach when built-in information types or policy templates do not match the data your organization needs to protect.

1
Open sensitive information types

Sign in to the Microsoft Purview portal, open Data classification, and find Classifiers > Sensitive info types. Portal navigation may vary by configuration.

2
Define the information type

Select Create sensitive info type. Name it and define a pattern using supported elements such as a regular expression, keywords, or a built-in function, then save it.

3
Test the pattern

Open the new sensitive information type and use its test option with representative sample data. Adjust the pattern if expected matches are missed or unrelated data is detected.

4
Create a DLP policy

Open Data loss prevention > Policies and select Create policy. Choose a custom policy or an applicable template, then select the locations to cover.

5
Add and test a rule

In the policy rule editor, add a condition that detects your custom sensitive information type and configure the desired actions. Review the policy and use simulation or test mode when available before turning it on.

Create a Custom Sensitive Information Type and DLP Policy
Legacy templates: Older Exchange DLP documentation describes custom template imports. Do not assume those import steps apply to the current Microsoft Purview portal; check the documentation for your environment.
Free Microsoft Office alternative

Edit Office Documents with WPS Office

WPS Office is a free, lightweight alternative for editing documents with a familiar interface and support for common Microsoft Office formats, making it easier to move existing files. Microsoft Purview is still required to configure and enforce Microsoft 365 classification and DLP policies.

Edit documents, spreadsheets, and presentations in a familiar interfaceOpen and save common Microsoft Office formats, including DOCX, XLSX, and PPTXWork with documents that may be subject to your organization's classification proceduresMove existing Office files into a lightweight, free productivity suite
microsoft office alternative - wps office

Frequently Asked Questions

What is a custom sensitive information type?

It is a definition that helps Microsoft Purview detect data using elements such as patterns and keywords. Create one under Data classification > Classifiers > Sensitive info types.

Can I test a DLP policy before enforcing it?

Yes. When creating or editing a policy under Data loss prevention > Policies, use simulation or test mode if it is available for your configuration, then review the results before enforcement.

Is a sensitivity label the same as a DLP policy?

No. A sensitivity label classifies content and can apply protection, while a DLP policy detects specified conditions and applies configured actions. Create labels under Information protection and DLP policies under Data loss prevention.

Why can't I see a Microsoft Purview feature?

Feature availability can depend on your subscription, assigned roles, and portal configuration. Check your license and Purview role assignments with your Microsoft 365 administrator.

Can I import an old Exchange DLP template into Microsoft Purview?

Legacy Exchange documentation describes template imports, but those steps should not be assumed to work in the current Purview portal. Check the current Microsoft documentation for your environment or create a custom policy in Data loss prevention > Policies.