To share data safely with an offshore team, a contractor, or a third-party vendor, you de-identify it first — replacing the personal and regulated values with realistic, safe substitutes while preserving the structure, relationships, and edge cases the recipient needs to build and test against. Done well, de-identified data lets an external team work against production-like data without any real personal information leaving your control, and when the data is genuinely anonymized this can place the exchange outside the scope of regulations that govern personal data, such as GDPR and HIPAA. The practical challenge is de-identifying thoroughly enough to remove re-identification risk while keeping the data realistic enough to be useful.
Why you can't just hand a vendor a copy of production
The reason you can't zip up a production database and send it to a vendor is that a raw copy carries live personal and regulated data into an environment you don't govern. An offshore development team, a QA contractor, or an analytics vendor needs data that behaves like production to do useful work — realistic distributions, real edge cases, intact relationships between tables. A production extract delivers all of that, but it also delivers everything that makes production dangerous to move: real names, emails, government identifiers, payment details, and health information, sitting in an environment with its own access controls, its own retention, and its own geography.
That last point matters more than teams expect. Copying production data into an environment you don't control widens your attack surface — every system that now holds the data is something you have to trust and account for — and it widens your regulatory exposure at the same time. Moving personal data across borders can trigger transfer restrictions on its own, and putting regulated fields into a lower environment a vendor operates can breach obligations you are the one accountable for.
The way out isn't to slow the vendor down or wall them off from realistic data. It's to change what you send. De-identifying the data before it leaves — so the copy the vendor receives carries the shape of production without the sensitive contents — is the standard answer. The difficulty is doing it thoroughly enough to remove the risk and carefully enough to keep the data worth working with.
What de-identification means, and how far to take it
De-identification is not a single technique but a toolkit, and the right combination depends on how sensitive the data is, which regulation applies, and what the recipient needs to do with it. At its core, de-identification and masking replace sensitive values with substitutes that preserve enough of the original's shape to stay useful. Which substitute you reach for — and how aggressive it is — is the real decision.
The techniques sit on a spectrum from reversible to irreversible. Data masking replaces a value with a realistic fake — a real name becomes a plausible fake name — and, applied consistently, keeps the data usable while severing the tie to a real person. Tokenization swaps a value for a token that maps back to the original through a separate, protected lookup. Generalization blurs precision: an exact birth date becomes a birth year, a full postal code becomes its first few digits. The sharpest line for third-party sharing is the one between pseudonymization and anonymization. Pseudonymized data is reversible — the mapping to the real person still exists somewhere — which is why GDPR still treats it as personal data. Anonymized data is irreversible: there is no key, and no reasonable path back to an individual.
That line defines the tradeoff you are managing. The further you push toward true anonymization, the lower the re-identification risk, but the more of the original signal you can lose — coarsen a field too far and the vendor's tests stop reflecting real behavior. Sharing safely means going far enough down that spectrum to remove the risk without flattening the data past the point of usefulness.
| Technique | What it does | Reversible? | Typical use |
|---|---|---|---|
| Masking | Replaces a value with a realistic fake of the same type | No | The default for most PII in a shared dataset |
| Tokenization | Swaps a value for a token backed by a protected lookup | Yes, via the lookup | When a system must reconcile records to the original later |
| Generalization | Reduces precision (exact date → year, full ZIP → prefix) | No | Quasi-identifiers that don't need exact values |
| Pseudonymization | Replaces identifiers but retains a re-identification key | Yes, by design | Internal linkage; still personal data under GDPR |
| Anonymization | Removes any reasonable path back to an individual | No | Sharing outside your control, where re-ID risk must be gone |
De-identify structured and unstructured data alike
What you hand a vendor is rarely a clean set of database tables. Real datasets mix structured columns with free-text fields — support tickets, agent notes, comments, attached documents — and personal information hides in both. A de-identification pass that cleans the columns but ignores the prose leaves regulated data sitting in plain sight, which is why sharing safely means treating structured and unstructured data as two problems with two methods.
Structured data is handled at the column level. Tonic Structural connects to a production database, runs a sensitivity scan that flags which columns hold PII or PHI, and applies a configurable generator to each — replacing values so the output preserves each column's type, format, and distribution without carrying the original contents. Free text needs a different approach, because the sensitive value isn't in a known column; it's a name buried mid-sentence in a note. Tonic Textual handles that side, using proprietary named-entity-recognition models to locate entities such as names, dates, and account numbers inside free text and replace the PII hiding in those fields with realistic synthetic substitutes, so the surrounding text stays intact and usable. A single support-ticket record shows why both are needed: the customer ID, email, and account columns are structured fields Structural transforms in place, while the ticket's free-text body — where a customer may have typed their own name, a phone number, or an order reference — is exactly what Textual's entity detection is built to catch. The two are complementary rather than competing: Structural covers the relational side, Textual covers the free-text and document side, and a dataset that contains both needs both.
The Tonic Advantage: nothing regulated slips into the shared copy. Structural's sensitivity scan is what makes de-identification-before-sharing reliable instead of manual. Rather than trusting an engineer to remember which of hundreds of columns hold sensitive data, the scan flags PII and PHI across the schema and recommends a generator for each detected column — so the safe copy you provision for a vendor is built from a complete inventory of what needed protecting, not a hand-maintained list that misses a column.
Keep the shared data usable: referential integrity and scope
De-identification that breaks the data's internal logic hands a vendor something they can't actually test against. If a customer ID is masked to one value in the orders table and a different value in the payments table, the join that ties an order to its payment fails, and the vendor ends up debugging your de-identification instead of building their feature. Keeping shared data usable comes down to two properties: consistency and scope.
Consistency means the same input always transforms to the same output. Consistent, deterministic masking maps customer 12345 to the same replacement everywhere it appears, so the relationships between tables survive the transformation — a masked foreign key still points where it should, and a join across the de-identified copy returns the same shape of result it would in production. Tonic Structural applies its transformations deterministically for exactly this reason, preserving referential integrity across related tables rather than masking each column in isolation.
Scope is the second lever, and it is about how much you send, not how you transform it. A vendor fixing a checkout bug doesn't need your entire warehouse; they need a referentially intact slice of it. Subsetting — carving out a smaller, self-consistent portion of the database with its relationships intact — is the minimum-necessary principle in practice: a smaller footprint means less exposure and a lighter dataset to move. Structural's patented subsetter builds that slice while keeping foreign keys intact, so the vendor gets a coherent miniature of production rather than a broken fragment of it.
How to de-identify a dataset before you share it
Turning a production database into a dataset that's safe to share follows a repeatable sequence. Tonic Structural implements each step, but the workflow is the same whatever tooling you use.
- Discover and scan for sensitive data. Point the tool at the source and inventory what's actually there, across structured columns and any free-text fields or documents. Structural's sensitivity scan automatically flags the columns that hold PII or PHI, so you start from a complete picture rather than assumptions about a schema you may not have written.
- Classify by sensitivity and applicable regulation. Not every flagged field is equal — a payment card number carries PCI obligations, a diagnosis carries HIPAA obligations, an email is general PII. Grouping fields by what governs them tells you how far each one has to be transformed.
- Apply the right transformation per field. Assign a generator to each sensitive column: a consistent generator where relationships must hold, and a format-preserving one where a downstream system expects a specific shape, such as a valid-looking card number or postal code. This is where scanning and masking the database happens as one configured pass rather than field by field.
- Validate that no sensitive values remain. Before anything leaves, confirm the result — a privacy report that lists every sensitive column and the generator applied to it turns "we think it's clean" into an auditable record that it is.
- Provision the safe dataset to the vendor. Deliver through self-service provisioning rather than a one-off manual export, so the vendor can pull a refreshed, already-de-identified copy on demand instead of waiting on a hand-built extract each time.
Governance and compliance for third-party sharing
Technique keeps the data safe; process keeps the sharing safe over time. The durable version is a standing rule that anything leaving the organization is de-identified by default, a clear definition of who has access to a given dataset recorded in a data sharing agreement or DPA, and a record of which recipient received which data. This is also the frame for de-identifying data shared across borders with offshore resources, where transfer rules apply on top of everything else.
The regulatory payoff tracks the technique directly. Under GDPR in lower environments, genuinely anonymized data falls outside the regulation's scope because it is no longer personal data, while pseudonymized data stays in scope — which is why the anonymization-versus-pseudonymization line is a compliance decision, not only a technical one. For health data, sharing HIPAA-safe data rests on recognized methods: Tonic Structural supports HIPAA Safe Harbor and Expert Determination de-identification workflows, the two paths the rule actually names. Used this way, de-identification helps teams meet GDPR obligations and helps reduce your sensitive data footprint before data ever reaches a third party — it supports compliance rather than promising it, which remains a property of your overall program.
Structural grounds the governance side in role-based access control, workspace sharing, privacy reports, and audit trails, so who can reach a dataset and what was done to it are both accountable. After putting a de-identification workflow in place, Bluedrop Learning Networks achieved CSA STAR certification and was able to outsource development to external teams.
The Tonic Advantage: governed sharing, not just masked data. Role-based access control and workspace sharing decide who can provision a given dataset, and every generation produces a privacy report and an audit-trail entry. That turns "we de-identified it" into a defensible record of what left, in what state, and to whom — the evidence a third-party sharing arrangement has to stand on when someone asks.