How to Mask Sensitive Data in Attachment Files (e.g., Driver License, Passport) in Incident Table?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-21-2025 09:12 PM
Hi everyone,
I'm working on a use case in my ServiceNow Personal Developer Instance (PDI) where I need to automatically mask sensitive information (like driver license and passport numbers) when a file is attached to the Incident table.
Goal:
Detect patterns like:
Driver license number: VIC1234567
Passport number: N1234567
Automatically mask them as:
VIC*******
N*******
This should happen immediately after the file is attached.
This is my requirement can I get any suggestions how can be it done.
Thanks in advance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-21-2025 09:31 PM
Hello @DhinakarS ,
That's not possible.
ServiceNow has data redaction features, but only for inbound emails and data added to a record itself.
Not for attachments. Also consider that someone could just attach a screen shot that shows these sensitive numbers.
Regards,
Robert
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-21-2025 10:09 PM
you can't read attachment content and mask particular info within it.
why not use Column level encryption and show attachments only to the users passing encryption context?
check these links
Column Level Encryption in ServiceNow
Encryption Breakthrough: Secure ServiceNow Attachments with CLE
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-22-2025 12:56 AM
Hi @DhinakarS
you forgot to mention which types of files you are referring to: Plain Text? Images? Write protected PDFs?
Do you really expect for all these different types a generic solution?
Maik