# Masking Rules

Vault allows users to define data masking rules at the organization level, enabling secure data anonymization during operations such as backup or replication.

***

## Creating Masking Rules

To create a new masking rule:

1. Navigate to the **Masking Rules** section and click **New Masking Rules**.
2. Select the **Salesforce Org** for which the masking rule will be created.

![Select Org](https://1912836914-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9vAxMuDrkUkB4OXlH9CL%2Fuploads%2FEXhBM3EZKLKXu3VJxV1h%2Fimage.png?alt=media\&token=e95d0508-9e77-4d8c-8351-8e457a323074)

3. Click **Select Orgs** to view and choose from the available orgs.
4. Click **New Masking Rules** to open the **Masking Rule** creation dialog.

![New Rule Window](https://1912836914-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9vAxMuDrkUkB4OXlH9CL%2Fuploads%2FiNgWUSCmchnLWNszLTem%2Fimage.png?alt=media\&token=adb39394-6eca-4fdc-ac4b-45a30feff334)

5. Fill in all required details in the rule creation form and click **Save**.

![Rule Creation Form](https://1912836914-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9vAxMuDrkUkB4OXlH9CL%2Fuploads%2FvmskSjdeN2qQ5I9Zf5lY%2Fimage.png?alt=media\&token=c5272fe7-3896-4aaa-a5d5-54f461c43a4f)

6. Upon successful creation, a confirmation notification will appear.

![Save Notification](https://1912836914-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9vAxMuDrkUkB4OXlH9CL%2Fuploads%2FI01p1Kqn9rB51OAG1JS5%2Fimage.png?alt=media\&token=434c2469-90ca-45da-82d8-89ba66aec926)

7. Click **OK**. The newly created rule will now appear in the **Masking Rules** list.

![Rules List](https://1912836914-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9vAxMuDrkUkB4OXlH9CL%2Fuploads%2FOshxrb9VN7qcISVGi0GM%2Fimage.png?alt=media\&token=cd12317d-3b0b-4744-8b0b-61a9d4634518)

8. Created rules are globally accessible at the org level and can be selected during config creation.

***

## Cloning Masking Rules

* Users can clone existing masking rules to streamline future configurations and reduce repetitive effort.


---

# Agent Instructions: Querying This Documentation

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://knowledgebase.autorabit.com/product-guides/vault/vault-features/replicate/masking-rules.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
