---
title: "How to Create a Scan Playbook that Searches for a Single Data Type"
url: "https://dm0bkdes5q7a2ls.productfruits.help/en/article/how-to-create-a-playbook-that-searches-for-a-single-data-type"
language: "en"
last_updated: "2026-09-30T14:26:23.727Z"
---

# How to Create a Scan Playbook that Searches for a Single Data Type

Use these steps to create a playbook in Spirion Sensitive Data Platform that searches for a single data type such as a social security number (SSN).

## Overview

Recall that **Scan Playbooks** are a kind of decision tree which instruct Spirion Sensitive Data Platform on what to do during scans, such as quarantine, shred, or redact sensitive data. For more information about Scan Playbooks, see [How to Add a New Scan Playbook](https://dm0bkdes5q7a2ls.productfruits.help/en/article/add-a-new-scan-playbook).

Use the following steps to create a single playbook that searches for a single data type:

1.  Log in to **Spirion Sensitive Data Platform** with a user account that is a member of a role which contains the permission "Create Playbooks" (see [How to Add a New Role](https://docs.spirion.com/Content/Sensitive%20Data%20Platform/Platform/Settings/Manage%20Roles.htm?Highlight=add%20new%20role#Create_a_New_Role) for info about creating a new user role):  
      
    ![](https://cdn-assets.productfruits.com/d32d9543-d6e6-403c-9c78-eb4464252e4f)  
     
2.  From the left-side navigation menu, navigate to the **Scan Playbooks** page (select Scans > Scan Playbooks).  
      
    ![](https://cdn-assets.productfruits.com/fa21a53f-5890-4824-8308-57a7838400ab)  
     
3.  Select the blue "Actions" button in the top right corner and click **Add Playbook** from the sub-menu that appears.  
      
    ![](https://cdn-assets.productfruits.com/decb2904-5097-4a3f-b967-776d9d283fc3)  
     
4.  The **New Playbook** dialog appears. Enter a Name and Description for the new playbook and select the blue **Continue** button.  
      
    ![](https://cdn-assets.productfruits.com/384bdad0-c069-45f0-afa2-2ad4fd4458c4)  
     
5.  Select the pencil icon in the diamond-shaped decision point below the "Start" rectangle.  
      
    ![](https://cdn-assets.productfruits.com/4f18d35c-db95-4281-bc52-ea56c9c1424a)  
     
6.  On the **Decision Point** dialog, enter a descriptive name for this decision point, such as "Contains SSN," and select **Data Types** in the drop-down menu.  
      
    ![](https://cdn-assets.productfruits.com/d3d9f6ac-6a89-4a56-acfd-9e849d908361)
7.  Verify that the second drop-down menu is set to **Contains**.   
      
    ![](https://cdn-assets.productfruits.com/5dab7949-9ddc-4ac0-97e6-f2a396711c4c)  
     
8.  Select the **ellipsis button** (three dots) next to the following field.  
      
    ![](https://media.userguiding.com/files/knowledge-base/95602/file-1759423196223.png) 
9.  Navigate to your desired **data type** and select the right-arrow icon.
10.  1.  Data Type examples:
     2.  -   **Date of Birth**
         -   **Credit Card Number**
         -   **Email Address**
         -   **File Hash**
         -   **IMEI**
         -   **Keyword**
         -   **Password**
         -   **Personal Address**
         -   **Telephone Number**
         -   **Regular Expression**
         -   **Social Security Number**  
               
             ![](https://cdn-assets.productfruits.com/34c8795d-1220-4a84-8194-5131c4911d50)
     3.  For more about data types, see [Types of Custom Data Types and Examples](https://dm0bkdes5q7a2ls.productfruits.help/en/article/types-of-custom-data-types-and-examples).
11.  Click the **OK** button on the bottom of the window.  
       
     ![](https://media.userguiding.com/files/knowledge-base/95602/file-1759423387508.png)
12.  Click the blue "Save" button at the bottom of the window.   
       
     ![](https://media.userguiding.com/files/knowledge-base/95602/file-1759423397189.png)**Note**: At least one "Classification" or "Shred" action must be set in a playbook (on either the "Yes" or "No" path).
13.  On the **Yes** branch, click the **Select Action** drop-down menu and choose **Classification** from the list of options.  
       
     ![](https://cdn-assets.productfruits.com/9d1dfe9f-884e-48e9-9523-b549c0455a5e)
14.  In **Action Options**, select **Perform Action on Database Only**. This option ensures that when the playbook runs, the classification is applied solely to the database (classification.db) used by the Agent rather than modifying file metadata or the file itself. Essentially, the action updates only the internal database records and does not alter the original file on disk.  
       
     ![](https://cdn-assets.productfruits.com/16087984-f3b3-49fa-9110-83dc292474f7)
15.  In **Classification Type**, select **Add Classification** from the drop-down menu.  
       
     ![](https://media.userguiding.com/files/knowledge-base/95602/file-1759423572167.png)
16.  In **Select Classification**, choose your desired classification (for example, **Secret**).
17.  1.  The Classification options shown in this menu are sourced in the Global Classifications section of Spirion Sensitive Data Platform (Settings > Global Classifications). If the classification you seek does not appear in the "Select Classification" drop-down menu, you can create your own custom classification on the **Global Classifications** page (this requires your user account is a member of the Admin role).  
           
         ![](https://cdn-assets.productfruits.com/22b8f7e4-3c9b-4812-988b-e3d4a83fcfd1)
18.  Check the **Automate Action** checkbox.
19.  Click the circular plus ( **+** ) icon below the Classification rectangle to open the available options of what to do next: Terminate this (Yes) branch as **Completed** after classfication or create another step (**Decision** option).  
       
     ![](https://cdn-assets.productfruits.com/3c6f0fe4-c99a-4ed3-8ac7-fc1ca0b6d8f0)
20.  Select the **Completed** option.  
       
     ![](https://media.userguiding.com/files/knowledge-base/95602/file-1759423638159.png)
21.  On the **No** branch, click the **Select Action** drop-down menu and choose **Take No Action** from the list of options.  
       
     ![](https://cdn-assets.productfruits.com/c275dd8a-50c8-4308-b928-30ae139656e0)
22.  Check the **Automate Action** checkbox and click the plus (**+**) icon.  
       
     ![](https://cdn-assets.productfruits.com/00e1b5d8-fd39-4b31-adc3-c03071162e67)
23.  Select **Completed** to terminate the branch.  
       
     ![](https://cdn-assets.productfruits.com/ededda38-6949-4550-b2b0-54cc8634f2eb)
24.  Save by clicking the **Save** icon at the top of the page next to the blue "Actions" button.  
       
     ![](https://cdn-assets.productfruits.com/c1b3d414-3a98-4c2a-993a-8dfaedef501b)
25.  A message appears in the bottom left corner of the page stating that the playbook has been successfully saved.   
       
     ![](https://cdn-assets.productfruits.com/54a89665-8dcf-4d86-a3a2-72c9ebfbc7c2)
26.  To find your playbook, enter its name in the Search box on the **Scan Playbooks** page.  
       
     ![](https://cdn-assets.productfruits.com/9fa88a96-181c-40df-b5e3-791e3b9c5fa4)
