> For the complete documentation index, see [llms.txt](https://docs.snyk.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.snyk.io/scan-fix-and-prevent/scan-with-snyk/snyk-code/rule-extensions/configure-rule-extensions.md).

# Configure Rule Extensions

Rule Extensions are managed at the **Group** level in the Snyk Web UI, under **Group settings → Snyk Code**. You need the [UI access permissions](/scan-fix-and-prevent/scan-with-snyk/snyk-code/rule-extensions/rule-extensions-permissions.md#permissions-for-ui-access) to reach these screens.

<figure><img src="/files/dwP81voqW4M1sJqYSTt3" alt="Rule Extensions under Group settings, Snyk Code in the Snyk Web UI"><figcaption><p>Rule Extensions in Group settings → Snyk Code</p></figcaption></figure>

## Create a Rule Extension

Add a custom sanitizer to an existing Snyk Code rule.

1. Log in to the Snyk Web UI and select your [Group](https://docs.snyk.io/snyk-admin/groups-and-organizations).
2. Navigate to **Group settings → Snyk Code → Rule Extensions**.
3. Click **Create sanitizer** and define the functional attributes:

   1. **Sanitizer**: Provide the fully qualified name (FQN). Need help identifying your FQN? See the [FQN identification guide](/scan-fix-and-prevent/scan-with-snyk/snyk-code/rule-extensions/identify-your-sanitizers-fqn.md).
   2. **Rule key**: Select one or more rules you want this extension to apply to. This is the rule key specified on the [Supported rules](/scan-fix-and-prevent/scan-with-snyk/snyk-code/rule-extensions/supported-rules.md) page.
   3. **Sanitization type**: Select one of the four ways your function sanitizes data. For more details, see [Custom sanitizers](/scan-fix-and-prevent/scan-with-snyk/snyk-code/rule-extensions/custom-sanitizers.md).

   <figure><img src="/files/6Afu01r0fFgik6fpA4T0" alt="Add sanitizer as a rule extension in Snyk Code" width="378"><figcaption><p>Add sanitizer as a rule extension in Snyk Code</p></figcaption></figure>
4. Define the rule extension outline attributes:
   1. **Scope**: Choose whether to apply the rule extension to the entire Group or to a subset of Organizations within the Group.
   2. **Description** (Optional): Add a short description of what the rule extension does.
   3. **Status**: Specifies how the rule extension is treated after you save it:
      * **Published**: The rule extension is live; Snyk applies it starting with the next test.
      * **Draft**: Snyk excludes the Rule Extension from tests after you save it. Use this when collaborating with others for review. Once review is complete, change the status to publish it.
5. Click **Save**.

## Update a Rule Extension

You can update attributes such as sanitization type, scope, description, or status. The sanitizer, the rule selections, and the Rule Extension name are not editable.

1. Log in to the Snyk Web UI and select your [Group](https://docs.snyk.io/snyk-admin/groups-and-organizations).
2. Navigate to **Rule Extensions**.
3. Select the horizontal ellipsis and then select **Edit**.
4. Click **Save**.

## Delete a Rule Extension

After you delete a Rule Extension, tests no longer pick it up.

1. Log in to the Snyk Web UI and select your [Group](https://docs.snyk.io/snyk-admin/groups-and-organizations).
2. Navigate to **Rule Extensions**.
3. Select the horizontal ellipsis and then select **Delete**.
4. Confirm the deletion.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.snyk.io/scan-fix-and-prevent/scan-with-snyk/snyk-code/rule-extensions/configure-rule-extensions.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
