Get started with the data loss prevention simulation mode
You can use Microsoft Purview Data Loss Prevention (DLP) simulation mode to see:
- The impact of a policy on your production environment without enforcement.
- All the items that would be matched by a policy if it were enforced.
This article walks you through simulation mode prerequisites, configuration options and how to view simulation results.
Tip
Get started with Microsoft Copilot for Security to explore new ways to work smarter and faster using the power of AI. Learn more about Microsoft Copilot for Security in Microsoft Purview.
Before you begin
Licensing
Before you start using DLP policies, confirm your Microsoft 365 subscription and any add-ons.
For information on licensing, see Microsoft 365, Office 365, Enterprise Mobility + Security, and Windows 11 Subscriptions for Enterprises.
Permissions
The account you use to interact with simulation mode must be in the Information Protection admin role. For more information on the roles and role groups necessary to use simulation mode, see Permissions. For more information on roles and role groups in Microsoft Purview compliance, see Roles and role groups in Microsoft Defender for Office 365 and Microsoft Purview compliance
System configuration
To see matched items from endpoint devices in their native application on the Items for review, you must configure evidence collection for file activities on devices.
Manage DLP simulation mode
You can set a policy to be in simulation mode when you create it or after it's been created. You can also turn off simulation mode for a policy that's already in simulation mode.
- Use the steps in Create and Deploy data loss prevention policies to create a new policy or edit an existing policy.
- The last step in the policy configuration workflow is Simulate or turn on the policy. Select Run the policy in simulation mode to enable simulation mode. Select either Turn it on right away or Keep it off to disable simulation mode. You can further select:
- Show policy tips with in simulation mode to help educate your users when they take actions that might trigger policy actions.
- Turn the policy on if it's not edited within fifteen days of the simulation to turn the policy on without further interaction.
- Select Next and Submit.
After disabling, it can take up to 24 hours for the insights to stop appearing on the Overview page.
Viewing DLP policies in simulation mode
Select the appropriate tab for the portal you're using. To learn more about the Microsoft Purview portal, see Microsoft Purview portal. To learn more about the Compliance portal, see Microsoft Purview compliance portal.
Sign in to the Microsoft Purview portal > Data Loss Prevention > Policies.
Select a policy with a status of In simulation or In simulation with notifications to open the fly-out pane.
Select View simulation to see the Simulation overview, Items for review, and Alerts tabs.
Simulation mode status messages
Note
Scan results from running a policy in simulation mode are saved for 30 days. You can continue to run the policy in simulation mode longer than that, but only the results for the most recent 30-day period are displayed.
When a policy runs in simulation mode, content scanning in most locations occurs in real time, that is, it occurs when an email or Teams message is sent. Content scanning for the SharePoint and OneDrive locations works a little differently. In addition to scanning content when documents are uploaded to these locations, policies running in simulation mode can display three additional progress messages: Completed, In progress, and Expired. The following table identifies and describes the status messages available for each location:
Simulation mode scan status by location
Location | Status message descriptions |
---|---|
Exchange | Real-time - Content is scanned when message is sent |
SharePoint | Completed - Signifies that scanning the existing content in Sharepoint and/or OneDrive is complete. This status message only displays when SharePoint and/or OneDrive are the only locations in scope. In progress - Signifies that the simulation is running. Results are updated as more matches are found. |
OneDrive | Completed - Signifies that scanning the existing content in Sharepoint and/or OneDrive is complete. This status message only displays when SharePoint and/or OneDrive are the only locations in scope. In progress - Signifies that the simulation is running. Results are updated as more matches are found. |
Teams chat and channel messages | Real-time - Content is scanned when message is sent |
Devices | Real-time - Content is scanned when transferred off the device |
Fabric and Power BI | Real-time - Content is scanned when uploaded |
The next table explains the status messages related to the progress of the overall policy simulation.
Overall simulation mode status
Simulation status | Description |
---|---|
Completed | Only available when a DLP policy scope is limited to SharePoint, OneDrive, or both. Indicates that all data at rest has been scanned. |
In progress | Simulation scanning is underway. Results are updated as additional policy matches are detected. |
Expired | The policy being simulated is more than 30 days old. Microsoft Purview retains simulation data for only 30 days. To get scan results for data at rest scanned prior to the most recent 30-day window, re-run the scan. |
Only the first 100 items matched in the SharePoint and OneDrive locations are displayed for review. This might differ from the total number of matched items.
Simulation events are displayed up in activity explorer. You can filter on Policy mode, which has TestWithNotifyUser, TestWithoutNotifyUser and enforce values.