Why doesn't my Microsoft Teams DLP Policy Work?
About a year and a half ago, I tested a DLP policy to block messages containing credit card numbers in Microsoft Teams chat and it worked perfectly.
Now, I am being tasked to implement that same DLP policy. Since, I didn't fully remember all the settings and the Purview Compliance portal has changed some, I configured the policy and used this Microsoft Documentation as a reference: Data loss prevention and Microsoft Teams | Microsoft Learn. I set the following main criteria:
Rule: PCI Restriction
- Scope: Teams Chat and Channel Messages - All users & groups
- Conditions:
- Content Contains: Sensitive Info Types - Credit Card Number - High Confidence - 1 to Any [AND]
- Content Contains [NOT]: Sensitive Info Types - Test Credit Card Numbers***** - High Confidence - 1 to Any [AND]
- Content is Shared from Microsoft 365: Only with people inside my organization
- Actions: Restrict access or encrypt the content in Microsoft 365 locations****** - Block everyone
*These are just a select few numbers provided by a proprietary system for testing.
**This is the only action available to me with the options to me.
The above rule didn't work initially. It wouldn't block messages in Microsoft Teams containing credit card numbers and instead was alerting my team on files in OneDrive. I eventually deduced that the following is incorrect:
Conditions:
- Content is Shared from Microsoft 365: Only with people inside my organization
- Actions: Restrict access or encrypt the content in Microsoft 365 locations - Block everyone
They seem to override the scope and apply to other core 365 products. Once removed, the policy stopped the scanning of files in OneDrive. Now the only criteria left are:
- Scope: Teams Chat and Channel Messages - All users & groups
- Conditions:
- Content Contains: Sensitive Info Types - Credit Card Number - High Confidence - 1 to Any [AND]
- Content Contains [NOT]: Sensitive Info Types - Test Credit Card Numbers***** - High Confidence - 1 to Any
I left this policy to sync overnight, but it still doesn't block messages in Microsoft Teams containing credit card numbers. I don't understand what changed since I originally tested this.
I've tried looking this up, but the only thing that I could find was this Microsoft Community post: https://answers.microsoft.com/en-us/msteams/forum/all/data-loss-prevention-for-microsoft-teams/f1c8ce9a-13c5-47db-a335-2c6d383fb62f?page=2
Any suggestions to what I might be doing incorrectly?