> ## Documentation Index
> Fetch the complete documentation index at: https://statsig-4b2ff144-devin-1763168466-llm-docs-audit.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-devin-1763168466-llm-docs-audit/irMbAnbt5SZMvu00/images/segments/implement/129115596-fbaeb686-8adb-4ebe-9dcb-6dfecf0cf043.png?fit=max&auto=format&n=irMbAnbt5SZMvu00&q=85&s=0249bf8a94d5af50f6576075bb94cf25" 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
