Skip to main content
PII Protection enables you to detect, redact, and control access to personally identifiable information (PII) across your project. You can configure built-in or custom patterns to identify sensitive information, define how detected values are rendered, and configure consumer access controls for the project. To configure PII protection:
  1. Go to Govern > PII.
  2. Enable PII Detection.
  3. Configure the PII protection settings.
  4. Enable and configure built-in patterns or create custom patterns.
  5. Save your changes.

PII protection settings

The following project-level settings control PII detection behavior.
Credential and secret scrubbing for API keys, access tokens, passwords, and similar credentials is always enabled and cannot be disabled.

Built-in patterns

Built-in patterns use platform-managed detection logic for commonly used PII types, including Email Address, Phone Number, Social Security Number, Credit Card Number, and Date of Birth. Each pattern can be enabled individually and configured with its own context anchoring, redaction strategies, consumer access settings, and live test configuration.

Custom patterns

In addition to built-in patterns, you can create custom patterns to identify organization-specific or domain-specific PII. Select Add Pattern to create a custom pattern and configure the following settings.
Custom regex replacement labels support capture-group backreferences using $1 or \1. Use $$ to insert a literal dollar sign $.For example:
  • Pattern: (John)\s(Doe)
  • Replacement Label: Mr. $1*** $2***
  • Result: Mr. J*** D***

Context anchoring

Context anchoring improves detection accuracy by evaluating context words that appear near a potential match.

Redaction strategies

Redaction strategies determine how detected PII is rendered before it is shared with a consumer.
Only enabled strategies are available when configuring render modes.

Consumer access

Consumer Access controls how detected PII is rendered for different consumers.
Large language model (LLM) consumers never receive plaintext PII. If Original is selected, the platform automatically replaces the detected value with a stable token before it is sent to the model.