Exclude a group of users in a sharepoint DLP policy

adela gonzalez 0 Reputation points
2025-06-19T09:42:33.2633333+00:00

I need to create a DLP policy that monitors PDF extensions for a specific SharePoint site, but I need to exclude a group of users. How do I configure this? Is it possible?

I can't find a way to configure this.

Microsoft Security | Microsoft Purview
{count} votes

3 answers

Sort by: Most helpful
  1. Anonymous
    2025-06-19T10:04:08.6133333+00:00

    Hi @adela gonzalez
    To set up a DLP policy in Microsoft Purview that monitors PDF files on a SharePoint site but excludes a group of users, follow these steps: 

    1. Create a DLP Policy 
    2. Go to the Microsoft Purview compliance portal: 
    3. Policies > Data loss prevention > Create a policy. 
    4. Choose a Custom Policy  Select Custom policy template to get full control over locations and rules. 
    5. Select Locations  Choose SharePoint and optionally narrow it down to a specific site collection (you can select specific sites). 
    6. Define Policy Rules  a) Under Rules, add a new rule and set the condition to detect file type = PDF.  b) You can also combine with content detection (e.g., sensitive info types) if needed. 
    7. Set the User Scope with Exclusions  In the “Choose users or groups” section of the rule:  Select All users and groups (or specific ones). 
      • Then exclude the group you want to exempt using the Exclude users and groups option. 
      Run in test mode first to validate the exclusions work as expected. 

    You must use the Exclude users and groups setting inside the location configuration for SharePoint/OneDrive. 

    I hope this information helps. Please do let us know if you have any further queries.


    If this answers your query, do click Accept Answer and Yes for was this answer helpful. And, if you have any further query do let us know.

    As your feedback is valuable and can assist others in the community facing similar issues.

    Thank you.

     


  2. adela gonzalez 0 Reputation points
    2025-08-21T07:42:42.6166667+00:00

    You tell me that:

    Exclusions are configured in the location scope, not in the rule conditions.  When you select the SharePoint location (during policy setup), you must click “Edit” next to it. That’s where you’ll find:  a)Include users/groups 

    b)Exclude users/groups

    When I access Sharepoint location these options do not appear, I can only include or exclude Sharepoint sites.

    Can you help me with this setup?

    Thanks in advance

    0 comments No comments

  3. Prathista Ilango 345 Reputation points Microsoft Employee
    2025-08-22T14:18:22.2+00:00

    Hello adela gonzalez,

    For SharePoint DLP, scoping is possible only at the site level. Refer to: https://learn.microsoft.com/en-us/purview/dlp-policy-reference#locations

    Hope this helps! Need further assistance or to raise a feature request, contact support: https://support.microsoft.com/en-us

    If you found the information above helpful, please Accept the answer. This will assist others in the community who encounter a similar issue, enabling them to quickly find the solution and benefit from the guidance provided.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.