# PII redaction by record type: a de-identification matrix

Canonical: https://refer.sourcex.si/resources/pii-redaction
Last updated: 2026-10-09

PII redaction depends on the record type: email and chat need entity redaction and channel scoping, tickets need tokenized identifiers, recordings need transcription and consent checks, and code needs secret scanning. Requirements are agreed with the company before any work begins, and referral partners never handle records.

## Why use a record-type matrix for PII redaction?

PII redaction is not one task. Email, chat, tickets, CRM notes, call recordings and code each carry different personal data in different places, so the method that works for one fails on another. This matrix lists the common record types, the personal data they usually contain and the redaction methods that are typically considered. Every requirement is agreed with the company before any work begins, and a referral partner never touches the records.

Use it to ask better questions of a company contact, not to design a redaction plan. [Redaction is also not the same as permission](/guides/how-to-distinguish-de-identification-from-permission-to-license): removing names does not create a right to license.

## Which methods are used, and what do they do?

| Method | What it does | Best for | Watch out for |
|---|---|---|---|
| Deletion | Removes the field or message | Fields with no training value | Loses context |
| Masking | Replaces characters with placeholders | Account and ID numbers | Pattern can remain identifying |
| Tokenization | Swaps a value for a consistent token | Names and IDs that recur | Keeps links between records, so key handling matters |
| Generalization | Reduces precision | Dates, ages, locations | Rare values can still point to a person |
| Named-entity redaction | Finds names and places in free text | Email, chat, notes | Misses nicknames, typos, context clues |
| Transcription then redaction | Converts audio to text, then redacts | Call recordings | Voice itself is identifying |
| Secret scanning | Finds keys and credentials | Code and configs | Old commits still hold secrets |

## What personal data sits in each record type?

| Record type | Typical personal data | Usual redaction approach | Extra question for the company |
|---|---|---|---|
| Email | Names, addresses, signatures, phone numbers, attachments | Entity redaction, drop attachments or scan them | Are personal mailboxes mixed with business ones? |
| Slack or Teams chat | Handles, mentions, links, shared files, private channels | Tokenize handles, exclude private channels | Which channels are in scope? |
| Support tickets | Customer names, order numbers, free-text complaints | Tokenize IDs, redact entities in notes | Do customers upload documents? |
| CRM notes | Contact names, titles, deal notes | Entity redaction, field-level deletion | Whose contacts are they? |
| Call recordings | Voices, spoken names, account details | Transcribe, redact, handle audio separately | Were notices given and consents obtained? |
| HR and payroll | Salaries, IDs, benefits | Usually excluded | Is it in scope at all? |
| Source code and git | Author emails, secrets, test fixtures with real data | Secret scan, rewrite author fields | Are real customer records in test data? |
| Finance and invoices | Bank details, tax IDs, signatories | Mask, tokenize, exclude | Which counterparties' terms bar use? |

## What should the company have answered before a redaction plan?

### Scope

- [ ] Which systems and date ranges are in the data inventory?
- [ ] Which folders, channels or mailboxes are excluded?
- [ ] Are the records mainly business-to-business, or mainly consumer personal data?

### Rights

- [ ] Do customer contracts, privacy notices and employee policies allow the use?
- [ ] Has counsel reviewed any recordings, health information or financial account data?
- [ ] Does any client or outsourcer own the content?

### Method

- [ ] Who owns the redaction task, the company or SourceX's team?
- [ ] Is a key kept for tokens, and who holds it?
- [ ] How will leftovers be sampled and checked?

Several laws give consumers rights over their personal information. California's privacy regulator publishes an [overview of the CCPA](https://oag.ca.gov/privacy/ccpa) covering rights to know, delete and opt out of sale or sharing. Call recording is governed federally by the [Wiretap Act](https://www.law.cornell.edu/uscode/text/18/2511) and by state consent rules that vary. This is general information, not legal, tax or financial advice. Confirm with your own counsel before acting.

## Which records carry the heaviest limits?

Health information is the sharpest case. Billing and claims notes can contain protected health information, which is covered in [medical billing company data](/guides/medical-billing-company-data). Aviation, freight and other regulated records raise different ownership issues, for example [who owns aircraft maintenance records](/questions/who-owns-aircraft-maintenance-records). Structured decision logs such as [architecture decision records](/data-types/architecture-decision-records) and [freight claims files](/data-types/os-and-d-freight) tend to hold fewer personal details than raw email, but names still appear.

## How should a partner use this matrix?

1. Ask the sponsor which record families they would put in scope, using the table above as a vocabulary list.
2. Note "yes", "no" or "unsure" for each, nothing more.
3. Do not ask for samples, screenshots or exports.
4. Introduce the company, and let SourceX and the company agree redaction in writing before work starts.
5. Data is delivered only after an executed agreement and the company's authorization.

## What are red flags?

- Data is mainly consumer personal information with no licensing basis.
- Data is mainly PHI without HIPAA authorization or de-identification.
- Nobody can export the data.
- Records belong to a client who has not consented.

## Next step

When the company's contact answers the scope questions comfortably, [register as a partner](/register) and send the introduction. The company can list its systems with the [data inventory builder](/tools/data-inventory-builder), and [who qualifies](/who-qualifies) sets out the company baseline.

## Sources

- https://oag.ca.gov/privacy/ccpa
- https://www.law.cornell.edu/uscode/text/18/2511
