> ## Documentation Index
> Fetch the complete documentation index at: https://statsig-4b2ff144-serverless-cloudflare.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Feature Gate overrides

> During development, it can be useful to explicitly state which users should pass or fail a given feature gate. This is where overrides come in.

## Override results of a feature gate

During development, it can be useful to explicitly state which users should pass or fail a given feature gate. This is where overrides come in.

Overrides are based of user IDs and can be set to pass or fail for a given user ID. During evaluation of a gate, if the user ID is overridden, the overridden result will be returned immediately before any rules are evaluated.

### Adding an Override

* Log into the Statsig console at [https://console.statsig.com](https://console.statsig.com)
* On the left-hand navigation panel, select **Feature Gates**
* Select the feature gate where you want to add an Override
* Click the **Add Override** button

<Frame>
  <img src="https://user-images.githubusercontent.com/95646168/148461864-4a5efd47-2e40-478f-81e5-49edfc5ea2e9.png" alt="image-add-overrides" />
</Frame>

* Select either 'Pass List' or 'Fail List' from the tabs in the dialog

<Frame>
  <img src="https://user-images.githubusercontent.com/95646168/148462020-417c007f-d492-46f7-8d25-d7a5178b4fe2.png" alt="image-manage-overrides-dialog" />
</Frame>

* For users you want to pass the gate, add them to the 'Pass List'

* For users you want to fail the gate, add them to the 'Fail List'

  <Info>
    A user can only exist on one of these lists at a time.
  </Info>

* Once you have added the user IDs, hit **Save**

### Deleting an Override

If you add an override but later decide it is no longer needed. You can remove it so the rules will be evaluated as normal.

* Log into the Statsig console at [https://console.statsig.com](https://console.statsig.com)
* On the left-hand navigation panel, select **Feature Gates**
* Select the feature gate where you want to add an Override
* Click the **Edit Overrides** button

<Frame>
  <img src="https://user-images.githubusercontent.com/95646168/148469394-9f86db83-26f6-4a5b-809f-8a53f0b4f1fa.png" alt="Screen Shot 2022-01-06 at 3 27 43 PM" />
</Frame>

* Hit the trashcan icon next to the user ID you wish to remove from a list.

  <Frame>
    <img src="https://user-images.githubusercontent.com/95646168/148463292-6740a09f-337f-441a-9cfa-a547a5dc6183.png" alt="image-remove-override" />
  </Frame>

* Once you have updated the lists, hit **Save**

### Testing an Override

Once your override has been added, you can test it in the "Test Gate" window by simply adding userID as a property of the user object.

<Frame>
  <img src="https://user-images.githubusercontent.com/95646168/148462648-e7da94bb-a681-4b0a-ad53-1254c6abe623.png" alt="image-testing-gates" />
</Frame>

Users that pass will see "PASS (User ID Override)"

<Frame>
  <img src="https://user-images.githubusercontent.com/95646168/148462641-57b544c1-bbdb-48cf-bb7f-967b0b20fc63.png" alt="image-pass-gate" />
</Frame>

Users that fail will see "FAIL (User ID Override)"

<Frame>
  <img src="https://user-images.githubusercontent.com/95646168/148462634-de69b838-f7b1-431c-9119-64ce123ad218.png" alt="image-failed-gate" />
</Frame>
