Skip to main content
Version: Studio 2.2.7

PII redaction

Personal data (PII) redaction replaces or removes personal data, such as counterparty contact names or client account numbers, at the stages of a Flow run you choose, and the run reports what it did. For anyone who builds or reads Flows that handle personal data. You set it per Flow version, in Flow settings and in the Redact PII step.

The deployment default is a floor that a Flow can tighten but never loosen. An Organisation administrator sets it when the deployment is created: Off on a standard deployment and Mask on a governed one unless they choose otherwise.

Set the Flow's protection​

  1. In the Flow editor, click Flow settings and find Personal data protection.

  2. Choose a Protection mode:

    ModeWhat it does (the product's own text)
    Use deployment default (named, for example "Use deployment default (Mask)")"Runs use the deployment default: Mask."
    No additional redaction"Nothing is redacted."
    Mask"Each value becomes a stable placeholder such as [EMAIL_1]; the same value gets the same placeholder within a run."
    Hash"Each value becomes a deployment-keyed token such as EMAIL:3f9a…; identical across runs, so files can still be joined."
    Drop rows"Rows that contain personal data are removed from CSV, JSON and Parquet files; free text is hashed."
  1. After choosing Mask, Hash or Drop rows, open Customise detection and processing to change what is detected and where:

    SettingOptionsDefault
    CategoriesE-mail addresses, Phone numbers, National ids, Bank accounts (IBAN), Card numbers, Postcodes and addresses, Person names, Dates of birth, IP addresses, Medical facts, Personal financial factsAll ticked
    Redact atRun inputs (files copied in from a connector before the first step), Uploads, Connector results (rows a step reads from a Data Bridge connector), Outputs (files under outputs/ and the run summary), result.json (the result the API returns)All ticked
    Additional model reviewPattern matching only; Review likely personal data (chunks with a name or date-of-birth cue are also read by your deployment's Coordinator model); Review all contentReview likely personal data
    Minimum detection confidence0.5 to 1, in steps of 0.050.8
    Maximum model review calls per run0 to 100,000200
  2. Save a new version and activate it (Flows: build a Flow).

Redact one file mid-run​

Add a Redact PII step after the step that writes the file and before the step that sends it on:

  1. File to redact: a run-relative path under inputs/ (what the run was given) or outputs/ (what an earlier step wrote), for example outputs/counterparties.csv.
  2. Redacted copy: a path under outputs/. Leave it empty for outputs/<name>.redacted.<ext>. The next step must read this copy, never the original.
  3. Redaction mode: The Flow's policy, Mask, Hash or Drop rows. "Only a tighter mode than the workflow's policy is honoured; the run's mode is never loosened."

What you should see​

In the run's Lens, the Work and Decisions view's outcome strip reads "PII redacted · N values · k categories", or "PII redaction · completing…" while the final sweep runs. Its history has a PII redaction entry that reads, for example, "Mask · model · 37 coordinator calls" and expands to one line per stage and file, such as "outputs · outputs/memo.md · 6 values (person_name 6) · 3 coordinator calls". Steps whose outputs were redacted carry an Outputs redacted shield, and Run details shows the Effective PII mode and what was applied under Data protection.

In the files: Mask gives a bracketed category and number ([EMAIL_1], [PERSON_NAME_3], [IBAN_1]), the same placeholder for the same value everywhere in a run (a name in a CSV and in the memo built from it read identically), with numbers restarting each run. Hash gives the category in capitals, a colon and sixteen hexadecimal characters (EMAIL:3f9a1c…), identical for the same value in every run and file on the deployment, so files can be joined but not reversed. Drop rows removes the whole row from CSV, JSON and Parquet files and hashes the value in free text.

Notes​

  • Redaction runs as part of the run, at the stages the policy names. Outputs are served through the API only once the final sweep completes.
  • A run always uses the stricter of the Flow's mode and the deployment default. Choosing a looser mode shows "The selected mode is less protective than the deployment minimum. Runs will use mask instead."
  • "The deployment default is unavailable. This selection cannot confirm the protection that will apply when the Flow runs.": Studio could not read the default; the floor still applies when the run starts.
  • A stage line ending in "capped", and "coordinator call cap reached" in the summary, mean the call limit stopped the model review; raise Maximum model review calls per run and save a new version. A line reading "skipped:" names why that file could not be processed.
  • "Name the file to redact (inputs/… or outputs/…).", "The file must be a run-relative path under inputs/ or outputs/." or "The redacted copy must go under outputs/.": fix the path in the step.
  • Detectors and how redaction is applied: PII redaction posture.