Forum Discussion
miaeb
Dec 26, 2024Copper Contributor
Microsoft Purview (DLP Policy via PowerShell)
Hello, I created a DLP policy within Microsoft Purview centered around Microsoft teams to block external users outside of my organization from sending/receiving sensitive data over teams, but th...
LainRobertson
Dec 30, 2024Silver Contributor
Hi miaeb ,
Your command looks fine.
Have you checked the priority of your compliance rule? It's possible that your "SensitiveInfoRule" is fine (but check it with Get-DlpComplianceRule just to be sure), but a different rule with a higher priority is winning.
By default, if you create a new rule and do not specify a value for "priority", it will be created as the lowest priority rule.
Cheers,
Lain