Share via

Powershell Script for existing DLP policy

Anonymous
2024-12-26T14:28:55+00:00

Hello,

I created a DLP policy within Microsoft Purview centered around Microsoft teams to block external users from sending sensitive information over teams. I was able to create the policy, and it is set to block, but with the script listed below it blocked everyone. I only want the condition to block those individuals outside of my organization. Any suggestions would be helpful. Thank you

My script:

Set-DlpComplianceRule -Identity SensitiveInfoRule -AccessScope $NotInOrganization -BlockAccess $true -GenerateAlert $true

Microsoft 365 and Office | Install, redeem, activate | For business | Other

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

1 answer

Sort by: Most helpful
  1. Anonymous
    2024-12-26T17:05:46+00:00

    Dear MiaEB

    Good day! Thank you for posting to Microsoft Community. We are happy to help you!

    Based on your description, for this, since your problem is related to PowerShell Script and this is really out of support scope, to help you better, we have now our dedicate team for this kind of consult and issue , I recommend that you post your query (based on) in Category: PowerShell | Microsoft Community Hub. Technical engineers over there specialize in PowerShell issues, and experts will focus on queries to further assist you.

    Thanks in advance for your understanding!

    Your patience and cooperation will be highly appreciated. Hope you all the best! Happy new year to you!

    Sincerely,

    Katherine

    Was this answer helpful?

    0 comments No comments