Configuring Your Account
Understand Billing
Publishing
Analytics & Reporting
Engagement
AI and Automation
Social Listening
Sprout Integrations
Tagging
Customer Care
Salesforce Service Cloud
Instagram
Facebook
X
Tiktok
Threads
WhatsApp
LinkedIn
YouTube
Pinterest
Bluesky

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. 

Best Practices for Regex

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:

  1. Navigate to the Data Masking settings: https://app.sproutsocial.com/settings/data-masking/
  2. Click Create custom data type.

  1. Enter a Name for your new field. You can also add an optional internal description.
  2. Input the Custom regex (Regular Expression) that matches the specific data pattern you want to mask.

    Learn more about creating your regex pattern here.

  3. 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?

0 out of 0 found this helpful

Table of Contents