> ## Documentation Index
> Fetch the complete documentation index at: https://openmetadata-fix-release-notes.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Sample Data Handling Using PII Tags

# Sample Data Handling Using PII Tags

In OpenMetadata, sensitive information is protected through **automatic masking** of sample data when PII (Personally Identifiable Information) tags are applied.

## How It Works

* If a **PII tag** is applied to a **specific column**:
  * Only that column’s sample data will be **masked** and displayed as `******` in the UI.

<img src="https://mintcdn.com/openmetadata-fix-release-notes/SRTtCXegBbOYmGNI/public/images/how-to-guides/governance/pii-tags.png?fit=max&auto=format&n=SRTtCXegBbOYmGNI&q=85&s=5b46a30bb698c7b5193ef0994eb1eece" alt="PII Tag Application at Column Level" width="2159" height="1268" data-path="public/images/how-to-guides/governance/pii-tags.png" />

* If a **PII tag** is applied at the **table level**:
  * **All columns** within that table will have their sample data masked automatically.

<img src="https://mintcdn.com/openmetadata-fix-release-notes/SRTtCXegBbOYmGNI/public/images/how-to-guides/governance/pii-tags2.png?fit=max&auto=format&n=SRTtCXegBbOYmGNI&q=85&s=1e35aa9145a2e5d644f21a0b5deafd3e" alt="PII Tag Application at Table Level" width="2159" height="1268" data-path="public/images/how-to-guides/governance/pii-tags2.png" />

This behavior ensures that sensitive data is not exposed through sample data views in OpenMetadata.

## Example

| Column Name | Tag           | Sample Data Displayed |
| ----------- | ------------- | --------------------- |
| email       | PII.Sensitive | \*\*\*\*\*\*          |
| phoneNumber | PII.Sensitive | \*\*\*\*\*\*          |
| age         | (None)        | 25                    |

When the tag is applied at the **table level**, the result would be:

| Column Name | Tag                  | Sample Data Displayed |
| ----------- | -------------------- | --------------------- |
| email       | Inherited from Table | \*\*\*\*\*\*          |
| phoneNumber | Inherited from Table | \*\*\*\*\*\*          |
| age         | Inherited from Table | \*\*\*\*\*\*          |

## How to Apply PII Tags

1. Navigate to the **column** or **table** in the OpenMetadata UI.
2. Apply the **PII.Sensitive** tag via the tagging options.

<img src="https://mintcdn.com/openmetadata-fix-release-notes/SRTtCXegBbOYmGNI/public/images/how-to-guides/governance/pii-tags1.png?fit=max&auto=format&n=SRTtCXegBbOYmGNI&q=85&s=297b6a5261fc4b2fce247137aa025ad3" alt="PII.Sensitive Tagging" width="2733" height="1271" data-path="public/images/how-to-guides/governance/pii-tags1.png" />

3. Ensure auto-classification or manual tagging captures the correct columns during ingestion.
