--- title: "Creating and editing data policies" slug: "creating-and-editing-data-policies-2" updated: 2026-09-12T16:32:51Z published: 2026-09-12T16:32:51Z canonical: "docs.trellix.com/creating-and-editing-data-policies-2" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.trellix.com/llms.txt > Use this file to discover all available pages before exploring further. # Creating and editing data policies A policy rule contains at least one constraint, which tests true or false depending on the defined values. The rule in the following example has one constraint that prevents the assigned user from seeing Network Security alert data in searches. ![XDR_CreateNewDataPolicy.png](https://cdn.us.document360.io/0d453a50-e1da-4d4a-9409-fea7959614d8/Images/Documentation/uuid-aa7c74fc-623b-8ed2-db01-a706a70580e8(3).png?sv=2026-02-06&spr=https&st=2026-11-20T01%3A42%3A52Z&se=2026-11-20T02%3A42%3A52Z&sr=c&sp=r&sig=qg36RkWX88QPuV%2BqLYptLSUcY%2F2b6xSXWDqmHvthDdE%3D) To create or modify a data policy: 1. To create a new policy, on the Policies tab, click **Create Data Policy** 2. To modify a data policy, on the Policies tab, click the policy in the **Name** column or select **Edit Data Policy** from the Options menu. 3. Provide a name and description of the policy. 4. (Optional) Select the checkbox to designate this as the default policy for the organization, described in [Configuring search-based data policies](/network-and-platform/docs/configuring-data-policies-for-access-control-2). 5. Define constraints for the policy rule. See [Example data policy rules](/network-and-platform/docs/user-access-examples-2). 1. Select a filter, an operator, and one or more values. Filters include **class**, **deviceid**, **_metadata_customer_id**, **meta_cbid** (Comm Broker ID), and **product**. Operators include **EQUALS** and **DOES NOT EQUAL**. Values depend on the selected filter. Select multiple values one at a time. Selecting multiple values automatically creates an OR grouping with values separated by commas and enclosed by square brackets. For example: `class!=[Trellix_ex_metadata,Trellix_ex_alert,Trellix_nx_alert]`. 2. To add additional constraints, click **AND** or **OR** and repeat the previous step. 6. (Recommended) Click the syntax in the syntax preview to copy it to the clipboard. You can use this in a test search to make sure it returns the expected results. 7. Click **Save**. ### Note You can hover over the device name for values such as **deviceid** and **meta_cbid** to see a human-readable name (for example, the domain name of the device). The human-readable name does not appear in the syntax preview.