> ## 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.

# Adding Rules

> Learn how to create rules that define which users are included in a segment

## Create a rule for a segment

A rule defines the criteria for which users are included in a segment. To add a rule to a segment,

* Log into the Statsig console at [https://console.statsig.com](https://console.statsig.com)
* On the left-hand navigation panel, select **Segments**
* Select the segment where you want to add a rule
* Click the **Add New Rule** button
* Select the criteria to target a set of users. For example, select Email and the Contains any of operator, and enter the email domain of your company to target only internal employees

<Frame>
  <img src="https://user-images.githubusercontent.com/1315028/129094975-a78b8caf-ac0d-4b14-96f7-adba2fe73f1f.png" alt="Segment rule configuration interface" />
</Frame>

* Click the **Add Rule** button
* Click the **Save Changes** button at the top right of the **Rules** section
