Create Custom Classification and DLP Policies in Microsoft 365
Question details
An administrator needs to create custom classification and data loss prevention options for an organization.

- 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.
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.
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.
Sign in to the Microsoft Purview portal, open Data classification, and find Classifiers > Sensitive info types. Portal navigation may vary by configuration.
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.
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.
Open Data loss prevention > Policies and select Create policy. Choose a custom policy or an applicable template, then select the locations to cover.
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 and Publish a Sensitivity Label
Use a sensitivity label when users need to classify content and, where supported, apply protection such as encryption.
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.

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.




