Title:
Enhance Data Masking to Preserve Format (Spaces/Hyphens) and Support Regex Capture Group Replacement
Creating based on the ICM: 21000000969604
Description:
Currently, the data masking (redaction) feature in Dynamics 365 Customer Service does not preserve formatting (such as spaces or hyphens) when masking sensitive data like credit card numbers.
Although custom regex rules correctly identify patterns, the masking output removes separators and over-masks the string, resulting in reduced readability.
Problem Statement:
- The redaction engine masks detected patterns but does not retain original formatting (e.g., spaces or hyphens).
- It does not support capture group-based replacement, limiting control over masking behavior.
Expected Behavior:
Support enhanced masking capabilities that:
- ✅ Preserve original formatting (spaces and hyphens)
- ✅ Mask only sensitive portions of the data (e.g., hide first 12 digits, show last 4 digits)
- ✅ Allow use of regex capture groups in replacement logic
Example:
Input:
My card is 4242 4242 4242 4242
Expected Output:
My card is #### #### #### 4242
Current Output:
My card is ###############4242
Business Impact:
- Improves readability and usability of masked data
- Aligns with industry-standard masking formats (PCI compliance)
- Enables more flexible and accurate PII data protection
Enhancement Request:
Introduce support for:
- ✅ Format-preserving masking (retain separators like spaces/hyphens)
- ✅ Flexible masking behavior for structured sensitive data
