Skip to content

Commit 3fa688c

Browse files
authored
Create README.md
1 parent bc7be8f commit 3fa688c

File tree

1 file changed

+22
-0
lines changed
  • Integration/Mail Scripts/Redact PII from outbound email body

1 file changed

+22
-0
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Redact PII from outbound email body
2+
3+
## What this solves
4+
Notifications sometimes leak personal data into emails. This mail script replaces common identifiers in the email body with redacted tokens before send.
5+
6+
## Where to use
7+
Notification or Email Script record, Advanced view, "Mail script" field. Invoke the function to get a safe body string and print it.
8+
9+
## How it works
10+
- Applies regex patterns to the email text for emails, phone numbers, IP addresses, NI number style patterns, and 16-digit card-like numbers
11+
- Replaces matches with descriptive placeholders
12+
- Leaves HTML tags intact by operating on the plain text portion you pass in
13+
14+
## Configure
15+
- Extend or tighten patterns for your organisation
16+
- Toggle specific scrubs on or off in the config block
17+
18+
## References
19+
- Email Scripts
20+
https://www.servicenow.com/docs/bundle/zurich-platform-administration/page/administer/notification/reference/email-scripts.html
21+
- Notifications
22+
https://www.servicenow.com/docs/bundle/zurich-platform-administration/page/administer/notification/concept/c_EmailNotifications.html

0 commit comments

Comments
 (0)