---
title: "Mask sensitive data"
slug: "new-pdf-builder-mask-sensitive-data"
updated: 2024-05-16T14:16:14Z
published: 2024-05-16T14:16:14Z
---

> ## Documentation Index
> Fetch the complete documentation index at: https://knowledge.lightico.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Mask sensitive data

If you are completing documents that have sensitive data, you may want to hide this data from the agent. This feature enables the agent to send, preview, and download a completed document PDF that blacks out all sensitive information.![](https://cdn.document360.io/473bb8c5-ff1b-4930-8109-2321ac6ab967/Images/Documentation/Snag_226fa0d7.png)

## Outline

Here is an outline of the steps for masking sensitive data in a PDF:

1. [Enable masking sensitive data in System Settings](/v2/docs/mask-sensitive-data-in-a-document#enable-masking-sensitive-data-in-system-settings)
2. [Create sensitive attributes](/v2/docs/mask-sensitive-data-in-a-document#create-sensitive-attributes)
3. [Bind sensitive attributes to document fields](/v2/docs/mask-sensitive-data-in-a-document#bind-sensitive-attributes-to-document-fields)
4. [Configure document settings to mask sensitive data](/v2/docs/mask-sensitive-data-in-a-document#configure-document-settings-to-mask-sensitive-data)

These steps are detailed in the sections below.

## Enable masking sensitive data in System Settings

Without this setting, even PDF templates with sensitive fields will not mask data.

Go to **System Settings** > **Security**> **General**and make sure the **Mask Sensitive Data From Agent** toggle is on.

## Create sensitive attributes

1. From the Lightico Administration Screen, go to **Attributes mapping**and click**Add custom attribute.**
2. Fill in all the fields (see [Create basic attributes](/v2/docs/create-a-document-entity-attribute)).
3. In the **Sensitive data** field, select **Yes**.![](https://cdn.document360.io/473bb8c5-ff1b-4930-8109-2321ac6ab967/Images/Documentation/Snag_2210e8db.png)
4. Repeat these steps for any other sensitive attributes you need for your PDF template.

## Bind sensitive attributes to PDF fields

1. Open a PDF template in the [PDF Builder](/v1/docs/getting-started-creating-esign-documents).
2. Select a field, click **Bind to Attribute**, and select an attribute **that you defined as sensitive. ![](https://cdn.document360.io/473bb8c5-ff1b-4930-8109-2321ac6ab967/Images/Documentation/Snag_daac24f.png)**

## Configure document settings to mask sensitive data

1. In the left panel of the PDF Builder, open the settings tab and turn on the **Mask sensitive fields** toggle.![](https://cdn.document360.io/473bb8c5-ff1b-4930-8109-2321ac6ab967/Images/Documentation/Snag_dad9517.png)
2. Click **Publish**.  
The template is ready to use in a session.
