PII detection checks what users send to AI, and the text written in training cards, for personal data such as names, email addresses and card numbers. Use it to decide what happens when personal data is found, and to add rules for the identifiers your organisation uses.
Open Admin > PII Detection. The settings live on three tabs: Policy, Rules and Playground. The page opens on Policy, and the tab you have open is kept in the page address and in this browser, so a link opens the same tab.
| Setting | What it does | Default |
|---|---|---|
| Global PII detection | Turns detection on or off for the whole platform. Shows Active platform-wide or Off for the whole platform. | Off |
| Confidence threshold | How confident the AI model must be before something counts as PII. | 90% |
| What to do when PII is detected | Block User Traffic, Warn User or Tokenize. | Block User Traffic |
| User messages to AI | Checks chat messages, edits, and report and task prompts. | On, AI model |
| Training Cards | Checks text written in training cards. | On, AI model |
| SQL Outputs | Locked. Controlled in Lake or Warehouse. | Not checked here |
| Skip PII detection in private chats | Skips checks for private chats. | Off |
| PII detection logging | Records every detection and every skipped warning. | Enabled, cannot be changed |
On a new installation, both surfaces start on with AI model.
Each detected value becomes a bracketed label for the kind of personal data it is, so the AI works with labels instead of the real values. DataMind OS also keeps tokenised copies of covered data for each role and data area, and a Mind that uses the data is switched to the tokenised copy before its access to the original values is withdrawn.
Each surface has one control that turns it on or off and picks its engine:
A surface you switch on without picking an engine runs AI model, unless you choose otherwise.
Regex scans text of any size instantly. The AI model is slow on very large documents.
SQL Outputs is locked. PII in query results is controlled by the PII domain settings on Lake or Warehouse columns. See Configure a table and Define table columns.
Open the Rules tab.
Other things to know:
Changes to Policy and Rules take effect only after you click Save. Revert discards them. Save appears only while something has changed, shows Saving… while it runs, and stores only your changes; a confirmation reads "PII detection policy updated". The Global PII detection switch is the exception.
The Playground uses your unsaved changes and applies the same checks as enforcement. The panel names the engine it runs for the chosen surface.
If the global switch is off, the Playground says "PII detection is off platform-wide - enable the global switch to test." If the surface's engine has no enabled rules, it says "No enabled rules for this scope's engine - enable a rule or switch the engine." Before you paste anything it says "Enter sample text on the left.", and text with no findings reads "No PII detected."
Users can check a draft before sending it with Check PII, and a flagged message is held back with the parts shown to them. What a user sees depends on the mode you chose. The full experience is described in PII checks in chat.
While the switch is off, Check PII is not offered to users and the Playground cannot run a test.
While the switch is off, no PII is detected in chats or training cards.
| To do this | You need |
|---|---|
| See the PII Detection tab | PII Configuration Viewer or System Settings Viewer |
| Change the policy and rules, and click Save | PII Configuration Manager |
| Turn Global PII detection on or off | System Settings Manager |
| Continue after a warning with Send it anyway | PII Detection Bypass |
| Read PII log entries | PII Log Viewer |
| Export PII log entries | PII Log Manager |
Without change rights, the controls are shown but disabled, and the save actions are hidden. See the Permission reference and Roles and permissions.
Choose Block User Traffic when personal data must never reach the AI. Choose Warn User when people sometimes need to send it and you trust those users with PII Detection Bypass. Choose Tokenize when the AI should work without seeing the real values.
Detection stops everywhere at once: chats and training cards are not checked, Check PII disappears from message boxes, and the Playground cannot test. The dialog also tells you if any Minds lose enforced PII column clarification on Excel or CSV uploads, and turns it off for them. The switch is instant and does not wait for Save. Switch it back on to start checking again; turning it on has no dialog.
No. SQL output is locked on this page. Its PII is controlled by the PII domain settings on Lake or Warehouse columns. See Configure a table and Define table columns.
No. The Confidence threshold is for AI model detections. A regex rule either matches or it does not, so its matches carry no confidence score and the threshold does not change what it finds.
Add an AI label with a clear Description of the format, or a regex pattern if the format is always the same. Test a sample on Playground before you click Save.
DataMind OS uses RE2 syntax, which does not support backreferences or lookaround. Rewrite the pattern without them. Some invalid patterns are flagged as you type. Others fail when you click Save, with an "Invalid RE2 pattern" message.
Raise the Confidence threshold, which is 90% by default. Or set the surface to Regex if the data follows a fixed format, knowing that regex only finds what your patterns describe. Check the change on Playground first.
No. Built-in detectors can be switched on or off, but their labels, descriptions and patterns are fixed and they cannot be removed. A custom rule also cannot reuse a built-in label.
In Observability > Logs > PII. Every detection and every skipped warning is logged. You need PII Log Viewer to read the entries and PII Log Manager to export them. See AI, socket and PII logs.
The surface's engine has no enabled rule to run. Turn on a rule on Rules, or change the surface's engine to one that has enabled rules.
Yes. The tab you have open is kept in the page address, so a copied link opens the same tab. A link without a tab opens Policy.
A standard pack of sixteen, all switched off so you opt in: rules for personal ID numbers, IBANs, mobile numbers, vehicle plates, passports and bank codes, plus email addresses, card numbers, social security numbers, IP and MAC addresses, JWT tokens, AWS access keys, private-key blocks and URLs carrying credentials. Review the pack on Playground before you switch rules on: some patterns are deliberately loose. Unlike the built-in detectors, a regex rule can be edited or deleted, and an edit keeps your change through platform updates; a rule you delete is added back, switched off, by the next update.