Auto-Labeling for specific sites only

Mark Sannuti (C-Admin) 175 Reputation points
2025-08-19T17:04:23.24+00:00

Our company uses one domain url : https://mycompany.sharepoint.com

I want only specific sites to auto label files containing PII, but they all start with , https://mycompany.sharepoint.com

If I add the following url to the auto labeling policy, https://mycompany.sharepoint/sites/site1

will the site url, https://mycompany.sharepoint/sites/site2 also have auto labeling enabled without adding /sites/site2 to the policy?

My goal would be too have, sites/site2 with no auto labeling capabilities and sites/site1 with auto labeling capabilities.

Hope that makes sense.

Microsoft Security | Microsoft Purview
0 comments No comments
{count} votes

Accepted answer
  1. Smaran Thoomu 29,415 Reputation points Microsoft External Staff Moderator
    2025-08-19T18:30:21.9633333+00:00

    Hi Mark Sannuti (C-Admin)
    In Microsoft Purview auto-labeling policies the scope is evaluated against the exact locations you configure. If you add https://mycompany.sharepoint.com/sites/site1 as the location, the policy will only apply to that site collection. It will not automatically cascade to other site collections like /sites/site2, unless you explicitly include them.

    So in your case:

    /sites/site1 → Auto-labeling enabled (since you added it).

    /sites/site2 → Auto-labeling not applied (since it’s not in scope).

    This allows you to control which sites are subject to auto-labeling. If you need fine-grained control at the library or folder level, keep in mind that Purview currently supports scoping at the site (collection) level, not below.

    Docs for reference: Configure auto-labeling policies.


    Hope this helps. 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.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

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.