In Purview, how can you auto-apply sensitivity labels based on a defined text string in file names?

Paul Chasnoff 40 Reputation points
2024-12-12T20:12:31.6233333+00:00

With Purview we are using sensitivity labels. In the past (pre-sensitivity labeling for us) we used a project code as part of the file name that would indicate the file's sensitivity. Now that we are using Purview, we would like to automate the process and take advantage of sensitivity labeling benefits. I have tried (and failed) to create a Sensitive Information Type (SIT) as a Classifier to identify the files based on the project code in the file name:

Pattern #1

Primary element

Keyword list:VRS

Character proximity

Detect primary AND supporting elements​ within 300 characters

Our users are very accustomed to adding the code as part of the file name and wish to continue doing that.

I appreciate any help.

Microsoft Purview
Microsoft Purview
A Microsoft data governance service that helps manage and govern on-premises, multicloud, and software-as-a-service data. Previously known as Azure Purview.
1,330 questions
{count} votes

Accepted answer
  1. Clément BETACORNE 2,496 Reputation points
    2025-01-07T13:46:55.0766667+00:00

    Hi @Paul Chasnoff To do what you expect on file names I think you should explore auto-labeling. Below an example of an auto-labeling rule for SharePoint Online
    Screenshot 2025-01-07 143206

    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.