> ## Documentation Index
> Fetch the complete documentation index at: https://docs.getcollate.io/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 Collate, 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, Collate masks that column’s sample data and displays it as `******` in the UI.

  <img src="https://mintcdn.com/collatedocs/LUQwLPA4Y6ndbf92/public/images/ai-2.0/data-governance/column-level-pii-tags.png?fit=max&auto=format&n=LUQwLPA4Y6ndbf92&q=85&s=570b37b3c4894ae566f74e0fba1f42a4" alt="PII Tag Application at Column Level" width="2013" height="756" data-path="public/images/ai-2.0/data-governance/column-level-pii-tags.png" />

* If a **PII tag** is applied at the table level, Collate automatically masks sample data for all columns in that table.

  <img src="https://mintcdn.com/collatedocs/LUQwLPA4Y6ndbf92/public/images/ai-2.0/data-governance/table-level-pii-tags2.png?fit=max&auto=format&n=LUQwLPA4Y6ndbf92&q=85&s=36b88d661feb3e76d91d6c05bbd8148a" alt="PII Tag Application at Table Level" width="2013" height="761" data-path="public/images/ai-2.0/data-governance/table-level-pii-tags2.png" />

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

## 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 Collate UI.
2. In the **Tags** column, click **+ Add** next to the column or table you want to apply PII tag.
   <img src="https://mintcdn.com/collatedocs/LUQwLPA4Y6ndbf92/public/images/ai-2.0/data-governance/tag-column.png?fit=max&auto=format&n=LUQwLPA4Y6ndbf92&q=85&s=17e09dbd11983d18b26db46cc851d975" alt="Click Tag" width="2736" height="1176" data-path="public/images/ai-2.0/data-governance/tag-column.png" />
3. Search and select PII tags, and click **Update**.
   <img src="https://mintcdn.com/collatedocs/LUQwLPA4Y6ndbf92/public/images/ai-2.0/data-governance/select-pii-tags.png?fit=max&auto=format&n=LUQwLPA4Y6ndbf92&q=85&s=6220d57fd5bf67455d628ec99c8fe3c0" alt="Click Tag" width="2094" height="1148" data-path="public/images/ai-2.0/data-governance/select-pii-tags.png" />

<Tip>
  **Tip**:
  **Tip:** Auto-classification can also capture and tag PII columns automatically during ingestion, reducing the need for manual tagging.
</Tip>
