Guardian: Custom Data Types in Data Masking
Table of Contents
Creating Custom Data Types for Data Masking in Guardian
Users can also utilize AI Assist for Regex Generation to simply the process.
Users can create a custom data type to ensure specific, unique data patterns are automatically masked within Guardian.
How to Create a Custom Data Type:
- Navigate to the Data Masking settings: https://app.sproutsocial.com/settings/data-masking/
- Click Create custom data type.
- Enter a Name for your new field. You can also add an optional internal description.
-
Input the Custom regex (Regular Expression) that matches the specific data pattern you want to mask.
Learn more about creating your regex pattern here.
-
Test your regex in the box below to ensure it works correctly:
- Enter a sample message that includes the data you expect to be matched and masked.
- Click Test regex.
- Verify the test was accurate by observing the black box masking the data it found.
Limitations for Regex Patterns:
For performance and security reasons, there are a few limitations on what can be included in your regex pattern:
-
Unsupported operations include include:
- Lookbehind
- Lookahead
- Start anchor (^)
- End anchor ($)
- Nested quantifiers
- Maximum Length: Regex patterns are limited to 256 characters.
Was this article helpful?