---
title: Experiment Overrides
description: Learn how to override group allocation for experiments during development and testing.
product: general
lang: en
token_estimate: 1272
---
# Experiment Overrides

Experiment overrides force individuall chosen users into specific experiment groups instead of a randomly assigned group. When your app fetches an experiment's parameters, Statsig first checks for overrides. It then, if a user is assigned into an ovrride group, returns that override group immediately. You can use an override during development to put yourself into each group and confirm that every variant works.

> For AI agents: a documentation index is available at [/llms.txt](/llms.txt). Append `.md` to any page URL for markdown, or send `Accept: text/markdown`.

To test each variant across a whole environment without pinning individual users, [enable the experiment for a lower environment](https://docs.statsig.com/experiments/implementation/implement#test-in-a-lower-environment).

Statsig supports two kinds of overrides:

- **ID Overrides**: Force specific unit IDs, such as a user ID or stable ID, into a group.
- **Conditional Overrides**: Force every user who passes a feature gate or segment into a group.

## How Statsig evaluates overrides

- Statsig evaluates ID overrides first, then conditional overrides from top to bottom.
- The ID type of an ID override doesn't have to match the experiment's ID type.
- Each override applies to either one, single, environment or to all environments.
- For experiments in a layer, set overrides at the layer level. Layers make their experiments mutually exclusive which lets Statsig override a user into a single experiment within a layer.
- By default, Statsig excludes overridden users from experiment results, because those users aren't randomized. To count them, select **Include Overrides in Results** at the bottom of the dialog. Statsig includes only overrides whose ID type matches the experiment's ID type.
- Add overrides before the experiment starts, or at least before a user's first exposure. Adding a large number of users to an override can reduce the reliability of your results.

> **Warning:**
>
> If you add an override after Statsig has already exposed a user to the experiment, Statsig honors the override but doesn't exclude that user from experiment results. Statsig keeps attributing the user's events and metrics to the group it first assigned them to, even though the user now sees a different group. This can pollute your results. The impact depends on how many users fall into this category.

## Open the Manage Overrides dialog

1. In the [Statsig console](https://console.statsig.com), go to _Experimentation > Experiments_ and select the experiment.
2. On the _Setup_ tab, scroll to _Groups and Parameters_ and click **Manage Overrides**. You can also click **Test**, then **Override IDs**.

The button shows the number of saved overrides, for example **Manage Overrides (1)**.

## Add an ID override

1. [Open the Manage Overrides dialog](#open-the-manage-overrides-dialog) and select the **ID Overrides** tab.
2. Click the **IDs** field, enter or paste one or more IDs, and press Enter after each one.
3. Choose the **Experiment Group** to force these IDs into.
4. Choose the **ID Type** of the IDs you entered, for example **User ID** or **Stable ID**.
5. Choose the **Environment** where the override applies, or keep **All Environments**.
6. Click **Add**. The override appears in the table with its IDs, group, unit ID type, and environment.
7. Click **Save**.

To change the group for an existing ID override, use the **Group** dropdown in its table row, then click **Save**. To find an override in a long list, use the **Search** field above the table.

## Add a conditional override

1. [Open the Manage Overrides dialog](#open-the-manage-overrides-dialog) and select the **Conditional Overrides** tab.
2. Click **Add Override**.
3. In the new row, choose **Gate** or **Segment**, then select the gate or segment.
4. Choose the environment where the override applies, or keep **All Environments**.
5. Choose the experiment group to force matching users into.
6. To add more conditions, click **Add Another Override**. Drag rows by their handle to change the order; Statsig evaluates them from top to bottom.
7. Click **Save**.

## Delete an override

Remove an override you no longer need so that Statsig evaluates the experiment's rules as normal.

1. [Open the Manage Overrides dialog](#open-the-manage-overrides-dialog) on the experiment or layer that contains the override.
2. On the **ID Overrides** or **Conditional Overrides** tab, click the trash can icon next to the override.
3. Click **Save**.

## Test an override

Confirm that Statsig returns the overridden group for a user:

1. On the experiment, open the _Diagnostics_ tab and click **Check Group for a User**.
2. In the _Evaluate_ dialog, edit the user object. For an ID override, set the ID field to an overridden ID, for example `"userID": "my-test-user"`. For a conditional override, add the properties a user needs to pass the gate or segment.
3. Read the result below the editor. An overridden user shows the group name followed by the override type, for example **Test (ID Override)**.

