When creating a custom classification policy in Secure & Govern, you can use file and/or folder naming convention as a criterion for the policy with the option to use wildcards for a single or many characters. This can focus the classification policy on specific locations or files with specified extensions or names.
Setting up a Classification Policy
When using wildcards in custom policy criteria, a simplified version of regular expression wildcarding is available:
- '*' = zero or more characters of any kind (space or non-space)
- '?' = exactly 1 character of any kind (space or non-space)
You can use combinations of wildcards to specify exact or minimum numbers of characters:
- '???' = exactly 3 characters of any kind (space or non-space)
- '??*' = 2 or more characters of any kind (space or non-space)
To configure your Custom Policy using path/file classification, navigate to Settings->Content Classification->Policies->Add Custom Policy and then select File Paths & Attributes. You may also edit an existing custom classification policy to add a file path as a criterion.
Configure your list of path and file attributes that you want to match. Each File Path is a combination of location and file name/extension. If you set up multiple file paths, files that match at least one of the rules will be considered a match.
Example criteria that cover jpg images with DSC_ followed by four or more characters in Shared folders
Once you have set up all the file paths you want to match, click Save to return to the main custom policy window to add additional configuration items or save the policy.
Examples
Here are some examples of inputs for location paths and file names/extensions and what they will match:
Location path input | Filename / extension input | WILL match | WILL NOT match |
---|---|---|---|
* | *.docx | /Shared/Legal/contract.docx | /Shared/contract.doc |
/HR | * | /HR/file.docx /hr/file.docx |
/HR/Documents/file.docx /Shared/hr/file.docx |
*/Legal/* | Contract*.* |
/Legal/Contract34.doc /Shared/Legal/Contract.pdf |
/Shared/IT/Contract.doc /Legal/Contract_no_extension |
*Finance* | * | /FINANCE123/Report.pdf /Shared/Finance/Report.pdf /Corporate Finance/Rep.pdf |
/FIN/Report.pdf /Shared/Report.pdf /Corporate/Report.pdf |
* | PROMO???.mov | /Shared/foo/promo123.mov /Shared/PROMO456.mov /Documents/promoTEN.mov |
/Shared/promo1234.mov /Shared/PROMO567.avi /Shared/pRoMotion.mov |