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

# Using a segment

> Learn how to use segments to target users in feature gates and dynamic configs

You can use a segment to target a set of users in a feature gate or a dynamic config as follows:

* Select the feature gate or dynamic config where you want to target a set of users

* Click the **Add New Rule** button

* In the criteria, select the **User in Segment** option

* Select the segment that you want to use and enter a name

  <Frame>
    <img src="https://mintcdn.com/statsig-4b2ff144-mintlify-add-local-eval-country-note-96362/roX4RW35EF2sDidk/images/segments/implement/129115596-fbaeb686-8adb-4ebe-9dcb-6dfecf0cf043.png?fit=max&auto=format&n=roX4RW35EF2sDidk&q=85&s=c55607b42197ca70cf5479311465e38b" alt="Segment targeting configuration interface" width="500" height="448" data-path="images/segments/implement/129115596-fbaeb686-8adb-4ebe-9dcb-6dfecf0cf043.png" />
  </Frame>

* Click the **Add Rule** button

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