> For the complete documentation index, see [llms.txt](https://docs.docontrol.io/docontrol-user-guide/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.docontrol.io/docontrol-user-guide/workflows/define-workflow-settings/action-settings/query/pii-scan.md).

# PII scan

SaaS data loss prevention is one of the biggest challenges organizations face today. Employees can routinely share personally identifiable information (PII) in SaaS apps.&#x20;

DoControl uses natural-language processing (NLP) to provide near real-time scanning and classification for sensitive data types, such as PII, across all files stored in your SaaS applications.&#x20;

#### What does a PII scan look for and what does it return?

A PII scan uses an external probability engine to detect the probability that a file includes predefined labels. You can search for a specific set (up to 33) of predefined labels, such as credit card details and social insurance numbers. You need a file with a critical mass of data to initiate a PII scan. Files which contain a small amount of text data might result in inaccurate results or false findings. A PII scan returns the probability as a percentage that an exact match was found.

#### **When to use a PII scan?**

We recommend you use a PII scan when you're not 100% sure about the spelling of the search items. For example, if you're looking for any password that varies between possible patterns, it's best to use an engine that will give you a probability estimate you can rely on.

You can scan text-based files for PII in these apps:

* [Google](#google-pii-scan)
* [Slack](#slack-pii-scan)&#x20;
* [Slack Enterprise](#slack-enterprise-pii-scan)
* [Zoom](#zoom-pii-scan)
* [OneDrive](#onedrive-pii-scan)
* [SharePoint](#sharepoint-pii-scan)
* [Jira Software](#jira-pii-scan)

{% hint style="info" %}
Learn more about setting up a PII scan with [DoControl videos](/docontrol-user-guide/help/videos.md#pii-file-scanning).
{% endhint %}

## How does PII scanning work?

The PII scanning mechanism is based on an NLP service that uses machine learning concepts. You can select which [PII labels](/docontrol-user-guide/system-management/settings/legal-consent-for-pii.md) (for example, PASSWORD, PIN, EMAIL) to scan. The execution output shows for each label:

* **Probability** - The probability between 0 and 1 (0%-100%) that the finding matches the label.
* **Recommended threshold** - The recommended threshold to consider with high certainty that the finding contains PII for each selected label. These recommendations are based on DoControl data science research to optimize the PII findings. &#x20;

<figure><img src="https://3236294211-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MesrnyDMZGYg1V-tOBo%2Fuploads%2FuvXMt2BRYLPaLgkcXc0J%2Fimage.png?alt=media&amp;token=0b8f9b6b-d40d-4f38-80e0-29c72d30c0dc" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
**Note**:&#x20;

* The DoControl PII scanning module is based on an external NLP engine that scans for PII patterns. NLP engines are probability-based and might provide skewed results based on the number of labels and content structure.&#x20;
* As a general best practice: Use the finding probabilities and recommended thresholds, and avoid unnecessary PII labels. Increasing the number of scanned PII labels might increase the inaccuracy rate.
* Maximum file size for running a PII scan is 10 MB.
* Currently we support PII scanning in English only.
  {% endhint %}

## Enable PII scanning

For your organization to use the PII file scan action, you must first provide [legal consent](/docontrol-user-guide/system-management/settings/legal-consent-for-pii.md).

{% hint style="info" %}
Once enabling the PII scan, this option remains enabled permanently. To disable it, send an email to <support@docontrol.io>.
{% endhint %}

<figure><img src="https://3236294211-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MesrnyDMZGYg1V-tOBo%2Fuploads%2F580UDKJhw4VOCTHl3erh%2Flegal%20consent.png?alt=media&amp;token=2c7c9094-0dd6-464b-85da-48072d6a2095" alt=""><figcaption></figcaption></figure>

#### To provide legal consent for PII scanning:

1. From the DoControl side menu, click **Settings** > **Admin** > **Legal consent.**
2. From **Scan for Personal Identifiable Information (PII)**, click **Approve** **PII scanning.**
3. After enabling PII scanning, you can set workflows to scan for PII, and when found, you can prevent sharing of such information.

## PII patterns

DoControl detects these PII patterns:

<table data-header-hidden><thead><tr><th width="259"></th><th></th></tr></thead><tbody><tr><td>BANK ACCOUNT NUMBER</td><td>BANK ROUTING</td></tr><tr><td>CREDIT DEBIT NUMBER</td><td>CREDIT DEBIT CVV</td></tr><tr><td>CREDIT DEBIT EXPIRY</td><td>PIN</td></tr><tr><td>EMAIL</td><td>ADDRESS</td></tr><tr><td>NAME</td><td>PHONE</td></tr><tr><td> SSN</td><td>DATE TIME</td></tr><tr><td>PASSPORT NUMBER</td><td>DRIVER ID</td></tr><tr><td>URL</td><td>AGE</td></tr><tr><td>USERNAME</td><td>PASSWORD</td></tr><tr><td>AWS ACCESS KEY</td><td>AWS SECRET KEY</td></tr><tr><td>IP ADDRESS</td><td>MAC ADDRESS</td></tr><tr><td>LICENSE PLATE</td><td>VEHICLE IDENTIFICATION NUMBER</td></tr><tr><td>NATIONAL INSURANCE NUMBER (UK)</td><td>SOCIAL INSURANCE NUMBER (CANADA)</td></tr><tr><td>INDIVIDUAL TAX IDENTIFICATION NUMBER (US)</td><td>UNIQUE TAXPAYER REFERENCE NUMBER (UK)</td></tr><tr><td>PERMANENT ACCOUNT NUMBER (INDIA)</td><td>NREGA (INDIA)</td></tr><tr><td>INTERNATIONAL BANK ACCOUNT NUMBER</td><td>SWIFT CODE</td></tr><tr><td>NATIONAL HEALTH SERVICE NUMBER (UK)</td><td>HEALTH NUMBER (UK)</td></tr><tr><td>AADHAAR (INDIA)</td><td>VOTER NUMBER (UK)</td></tr><tr><td>VOTER NUMBER (INDIA)</td><td></td></tr></tbody></table>

## Supported file types

DoControl supports these files types when running a PII file scan query:

<table><thead><tr><th width="148">App</th><th width="301">File type</th><th>Supported MIME type</th></tr></thead><tbody><tr><td>General</td><td><ul><li>TXT (text)</li><li>CSV (comma separated values)</li><li>TSV (tab separated values)</li><li>PDF (portable document format)</li></ul></td><td><ul><li>text/plain</li><li>text/csv</li><li>text/tab-separated-values</li><li>application/pdf</li></ul></td></tr><tr><td>Google Drive</td><td><ul><li>GDOC (Google Docs)</li><li>GSLIDES (Google Slides)</li><li>GSHEET (Google Sheets)</li></ul></td><td><ul><li>application/vnd.google-apps.document</li><li>application/vnd.google-apps.presentation</li><li>application/vnd.google-apps.spreadsheet</li></ul></td></tr><tr><td>Microsoft</td><td><ul><li>DOCX (Word version 2007 and up)</li><li>XLS (Excel up to version 2003)</li><li>XLSX (Excel version 2007 and up), XLT</li><li>PPTX (Powerpoint version 2007 and up)</li></ul></td><td><ul><li>application/vnd.ms-excel</li><li>application/vnd.openxmlformats-officedocument.spreadsheetml.sheet</li><li>application/vnd.openxmlformats-officedocument.wordprocessingml.document</li><li>application/vnd.openxmlformats-officedocument.presentationml.presentation</li></ul></td></tr></tbody></table>

## Google PII scan

You can define a workflow to scan Google assets for personally identifiable information (PII), such as bank account details, PIN code, AWS keys, tax identification number (US), national insurance number (UK), and more.

If found, you can add actions to prevent external or public sharing of Google assets containing PII.

<div align="left"><figure><img src="https://3236294211-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MesrnyDMZGYg1V-tOBo%2Fuploads%2FAa5x4TFH06GP4oT9qYQZ%2Fscan%20Google%20PII%20.png?alt=media&amp;token=c20de4f5-bacd-4cc7-8406-dfe9df0260d3" alt=""><figcaption><p>Running a scan for PII labels in a Google Drive asset</p></figcaption></figure></div>

1. For the **App**, select Google Drive.
2. Select the relevant trigger.
3. From the Actions pane, select **Query > PII scan,** drag it to the canvas and connect it to the trigger.
4. Click the action to open its settings.
5. The asset ID is automatically populated.
6. Select the specific **PII labels** to scan for.
7. For **Error handling**, choose the relevant option:
   * Break on failure and warning errors
   * Break on failure error only
   * Continue workflow
8. Add more actions to your workflow.

## Slack PII scan

You can define a workflow to prevent PII file sharing in an external Slack channel.

<figure><img src="https://3236294211-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MesrnyDMZGYg1V-tOBo%2Fuploads%2FF0Dx8p6HPkRNVOojkiIy%2FSlack%20PII.png?alt=media&amp;token=8291db37-fbc0-45b6-abf2-12e51aba3fc2" alt=""><figcaption></figcaption></figure>

1. For the **App**, select Slack.
2. Select the relevant trigger, for example, User shared sensitive files in external channels.
3. The trigger conditions are automatically populated:
   * **Asset type supports file scanning** - File type supports PII data scanning.
   * **Channel is external** - Slack channel is shared.
4. From the Actions pane, select **Query > PII scan,** drag it to the canvas and connect it to the trigger. Click the action to open its settings.
   * Asset ID is automatically populated.
   * Select the specific **PII labels** to scan for.
   * For **Error handling**, choose the relevant option.
5. Add a **Conditional** action to your workflow to verify if the file contains PII:
   * If **False** - Add an **End workflow** step.
   * If **True -** Add a **Delete** action to remove the shared file.

## Slack Enterprise PII scan

You can define a workflow to prevent PII sharing of files and messages in a public Slack Enterprise channel.

<figure><img src="https://3236294211-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MesrnyDMZGYg1V-tOBo%2Fuploads%2FU43jhSth0DSKJ6N3DzOu%2FSlack%20Enterprise%20PII%20scan.png?alt=media&amp;token=4fc2f999-3d2b-4451-968c-3a714716a936" alt=""><figcaption></figcaption></figure>

1. For the **App**, select Slack Enterprise.
2. Select the relevant trigger, for example, User shared sensitive messages in public channels
3. From the Actions pane, select **Query > PII scan,** drag it to the canvas and connect it to the trigger. Click the action to open its settings.
   * Select the Slack entity to scan: Message or file
   * Select the specific **PII labels** to scan for.
   * For **Error handling**, choose the relevant option.
4. Add a **Conditional** action to your workflow to verify if the message contains PII:
   * If **False** - Add an **End workflow** step.
   * If **True -** Add a **Delete message** action to remove the shared message.

## Zoom PII scan

The DoControl integration with Zoom allows your organization to detect and prevent sensitive data and files, such as personally identifiable information (PII), from being shared on Zoom cloud recordings. This functionality is unique to DoControl, and essential to data loss prevention (DLP).&#x20;

People tend to share sensitive information, such as user and password credentials, more easily by spoken word than written text. DoControl runs PII scanning on all text-based files associated with Zoom cloud recordings, such as chat, closed captions, and audio transcripts. These text files have a high probability of including PII, such as passwords, emails, and bank account details.&#x20;

If PII is detected, DoControl automatically notifies your security team so they can take appropriate action, and delete any sensitive files if necessary.

### Use cases

The ability to run PII scanning on your organization's Zoom cloud recordings addresses a wide range of use cases:

* Visibility and exposure of a full inventory of every individual user and cloud-based recording.
* Automatic scanning of files for personally identifiable information (PII), and removal of unauthorized access to them.
* Identification of vulnerabilities within cloud recordings and their associated settings (i.e. sharing status, passcode protection, participants listed in the meeting, download-ability, generated files (recording, audio, chat, transcript, etc.)
* Governance of strong password protection for high-risk users.
* Secure access to sensitive video recordings and text-based files.
* Secure workflows that are future-proofed to mitigate the risk of data overexposure and exfiltration of Zoom data and files.
* Automated notification to individual actors and security teams on policy violations or anomalies that present material risk to the business.

### Prerequisites for Zoom PII scanning

DoControl scans for PII in Zoom cloud recordings within these text-based files:&#x20;

* Chat&#x20;
* Closed captions&#x20;
* Audio transcript&#x20;

{% hint style="warning" %}
To run a PII scan on Zoom cloud recordings, you must make sure that closed captions, audio transcript, and chat are available to Zoom users.
{% endhint %}

When there are no text files to scan, the PII output displays this message:

`NO_TXT_FILES_SCANNED`

#### To run a PII scan on a Zoom recording text file:

1. For the **App**, select Zoom.
2. Select the relevant trigger, for example, Recording completed.
3. From the Actions pane, select **Query > PII scan,** drag it to the canvas and connect it to the trigger. Click the action to open its settings.
   * The Meeting UUID is automatically populated.
   * Select the specific **PII labels** to scan for.
   * For **Error handling**, choose the relevant option.
4. Add a **Conditional** action to your workflow to verify if the recording contains PII:
   * If **False** - Add an **End workflow** step.
   * If **True -** Add a **Notify in Slack** action to notify the SecOps team.

<figure><img src="https://3236294211-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MesrnyDMZGYg1V-tOBo%2Fuploads%2F0T7OghpRQeilLPGHesqc%2FZoom%20scan%20PII.png?alt=media&amp;token=8b5b1baa-0f45-4cdc-aa44-102752899a0f" alt=""><figcaption><p>Run a PII file scan on a Zoom recording</p></figcaption></figure>

### Retrieve Zoom metadata

After a Zoom recording has been uploaded to the cloud, you can retrieve a wide range of metadata about the recording, such as participants, generated files, and their sharing status.

1. From the **Actions** pane, select **Workflows > New workflow > From scratch**.
2. From the Events field, select **Zoom > Recording completed**.
3. Add condition macros to retrieve metadata about the recording, such as:

<table data-header-hidden><thead><tr><th width="314"></th><th></th></tr></thead><tbody><tr><td>Get meeting UUID</td><td>Get meeting sharing status</td></tr><tr><td>Get host email</td><td>Get meeting participant email</td></tr><tr><td>Get meeting topic</td><td>Get participant name</td></tr><tr><td>Get meeting participant name</td><td>Is password protected</td></tr><tr><td>Get participant email</td><td>Is downloadable</td></tr></tbody></table>

<figure><img src="https://3236294211-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MesrnyDMZGYg1V-tOBo%2Fuploads%2FLrD6fsX3GhAS6h1ZZK9N%2FZoom%20webhook.png?alt=media&amp;token=2c041433-ed6d-46cd-9396-c48410254b1f" alt=""><figcaption><p>With the recording completed webhook, you can retrieve Zoom metadata</p></figcaption></figure>

## OneDrive PII scan

You can define a workflow to scan OneDrive assets for PII, such as bank account details, PIN code, AWS keys, tax identification number (US), national insurance number (UK), etc.

1. For the **App**, select OneDrive.
2. Select the relevant trigger, for example, File uploaded.
3. From the Actions pane, select **Query > PII scan,** drag it to the canvas and connect it to the trigger. Click the action to open its settings.
   * Asset ID is automatically populated.
   * Select the specific **PII labels** to scan for.
   * For **Error handling**, choose the relevant option.
4. Add a **Conditional** action to your workflow to verify if the file contains PII:
   * If **False** - Add an **End workflow** step.
   * If **True -** Add a **Notify in Slack** action to notify the SecOps team.

<div align="left"><figure><img src="https://3236294211-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MesrnyDMZGYg1V-tOBo%2Fuploads%2FiX3XlJhUVGHHRx7e8xGr%2FPII%20OneDrive.png?alt=media&amp;token=9190cf91-8c21-4f72-a5d6-f8b8b81bdf75" alt=""><figcaption><p>Running a scan for PII labels in a OneDrive asset</p></figcaption></figure></div>

## SharePoint PII scan

You can define a workflow to scan SharePoint assets for PII, such as bank account details, PIN code, AWS keys, tax identification number (US), national insurance number (UK), etc.

1. For the **App**, select SharePoint.
2. Select the relevant trigger, for example, File uploaded.
3. From the Actions pane, select **Query > PII scan,** drag it to the canvas and connect it to the trigger. Click the action to open its settings.
   * Asset ID is automatically populated.
   * Select the specific **PII labels** to scan for.
   * For **Error handling**, choose the relevant option.
4. Add a **Conditional** action to your workflow to verify if the file contains PII:
   * If **False** - Add an **End workflow** step.
   * If **True -** Add a **Notify by email** action to notify the SecOps team.

<div align="left"><figure><img src="https://3236294211-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MesrnyDMZGYg1V-tOBo%2Fuploads%2Fi9uUaKv4ohLBe9bCY04G%2FPII%20SharePoint.png?alt=media&amp;token=616b57b2-e246-4a60-81c5-273c2bc81183" alt=""><figcaption><p>Running a scan for PII labels in a SharePoint asset</p></figcaption></figure></div>

## Jira PII scan

DoControl can scan Jira issues for personally identifiable information (PII), such as a password or bank account details.

You can create a workflow to scan Jira issue descriptions, comments and attachments for PII. If a PII term is detected, your organization can send automatic notifications to relevant actors to handle the event appropriately.&#x20;

<figure><img src="https://3236294211-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MesrnyDMZGYg1V-tOBo%2Fuploads%2FNwuN0WXA2ZiCyhWsEDov%2FJira%20PII%20scan.png?alt=media&amp;token=bcccb0dc-a1b9-4aab-9fb9-957a3ad37200" alt=""><figcaption></figcaption></figure>

1. For the **App**, select Jira.
2. Select the relevant trigger, for example:
   * Issue created or issue updated
   * Comment created or comment updated
3. From the Actions pane, select **Query > PII scan,** drag it to the canvas and connect it to the trigger. Click the action to open its settings.
   * Issue ID is automatically populated.
   * Select the specific [sub-entity](#scanned-jira-sub-entities) to scan:&#x20;
     * Summary and description
     * Comments
     * Attachments
   * Select the specific PII labels to scan for.
   * For **Error handling**, choose the relevant option.
4. Add a **Conditional** action to your workflow to verify if the Jira issue contains PII:
   * If **False** - Add an **End workflow** step.
   * If **True -** Add a **Delete** **issue** action to remove the issue.

#### Scanned Jira sub-entities

&#x20;You can leverage the Jira PII action in DoControl to scan a single sub-entity in Jira, such as:

* Description and summary, OR
* Comments, OR
* Attachments

{% hint style="success" %}
If you want to scan several Jira sub-entities in a single workflow execution, you need to connect a PII scan action to each Jira sub-entity.
{% endhint %}

DoControl scans Jira issues and comments for these sub-entities:

<table><thead><tr><th width="227">Event type</th><th>Sub-entity scanned</th></tr></thead><tbody><tr><td>Issue created</td><td><ul><li>Summary</li><li>Description</li><li>Any attachments in the issue (up to 10 MB)</li></ul></td></tr><tr><td>Issue updated</td><td><ul><li>Summary</li><li>Description</li><li>New attachments added to the issue (up to 10 MB)</li></ul></td></tr><tr><td>Comment created</td><td><ul><li>Comment content only</li></ul></td></tr><tr><td>Comment updated</td><td><ul><li>Comment content only</li></ul></td></tr></tbody></table>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.docontrol.io/docontrol-user-guide/workflows/define-workflow-settings/action-settings/query/pii-scan.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
