# Manage Rules

**Requirements**:

* SDD enabled and [turned on](/2024.2/application-settings/how-to-guides/config-builder-guide.md#enable-sensitive-data-discovery)
* Immuta permission `GOVERNANCE`

## Create a rule

You can only have one rule per pattern in the framework. If you do not see the pattern for the rule you want to create, then it already has a rule built off of it.

1. Click the **Discover** icon in the navigation menu and select the **Framework** tab.
2. Select the framework you want to edit and navigate to the **Discovery Rules** tab.
3. Click **Create New**.
4. Select the **Tags to apply** from the dropdown. The tags you select are the tags applied when the pattern is matched. *Note that resulting tags must be under the Discovered parent tag and cannot be parent tags themselves unless they have already been manually applied to a data source.*
5. Select the **Criteria type** from the dropdown. See the [overview page for more information about the criteria types](/2024.2/discover-your-data/data-discovery.md#criteria).
   1. Competitive pattern analysis is for regex and dictionary patterns.
   2. Column name is for column name patterns.
6. Select the **Pattern** from the dropdown.
7. Click **Create Rule**.

## Edit a rule

1. Click the **Discover** icon in the navigation menu and select the **Frameworks** tab.
2. Select the framework of the rule you want to edit and navigate to the **Discovery Rules** tab.
3. Select the rule you want to edit.
4. Click **Edit**.
5. Edit the field you want to change. Note any field shadowed is not editable, and the rule must be deleted and re-created to change them.
6. Click **Save**.

## Delete a rule

Deleting a rule removes the tags once applied by that rule the next time SDD runs on a data source. To delete a rule,

1. Click the **Discover** icon in the navigation menu and select the **Frameworks** tab.
2. Select the framework you want to edit and navigate to the **Discovery Rules** tab.
3. Click the three dot menu in the **Action** column for the rule you want to delete.
4. Select **Remove**.
5. Click **Confirm**.


---

# 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://documentation.immuta.com/2024.2/discover-your-data/data-discovery/how-to-guides/manage-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.
