> For the complete documentation index, see [llms.txt](https://developer.harness.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.harness.io/feature-management-experimentation/use-fme/feature-management/targeting/target-segments.md).

# Target segments

Once you create a feature flag, you can [create feature flag targeting rules](/feature-management-experimentation/use-fme/feature-management/setup/define-feature-flag-treatments-and-targeting.md#setting-up-targeting) that target individual user IDs (or user keys), or use segments to target groups of users.

[Segments](/feature-management-experimentation/use-fme/feature-management/targeting/segments.md) are lists of user IDs. In a feature flag definition, you can assign treatments to one or more segments in your targeting rules. If a segment does not appear in search, it may not be [defined](/feature-management-experimentation/use-fme/feature-management/targeting/segments.md#adding-user-ids-to-a-segment) in the selected FME environment.

![](/files/yVKS0ebVWa9mPEzvFtSw)

{% hint style="danger" %}
**SERVER-SIDE SDK SUPPORT**

[Server-side SDKs](/feature-management-experimentation/new-to-fme/sdks-and-customer-deployed-components/server-side-sdks.md) do not support **Large segments**. Evaluations of feature flags targeting Large segments return `control`.

If you need this capability, contact [Harness Support](/feature-management-experimentation/troubleshooting-and-resources/fme-support.md) or open a [feature request](https://ideas.harness.io/feature-request).
{% endhint %}

### Target segments in individual targeting rules <a href="#target-segments-in-individual-targeting-rules" id="target-segments-in-individual-targeting-rules"></a>

You can target segments in individual targeting rules. These rules assign a treatment to the segment. In the following example, the feature flag will serve **on** to all user IDs in the given segments.

![](/files/T7dqvfXBvOQ1i6433vev)

After you select a segment, you can see the segment type indicated by the input pill icon in the To segments field.

![](/files/4KE8110y5UqflsVdDSv6)

### Target segments in attribute-based targeting rules <a href="#target-segments-in-attribute-based-targeting-rules" id="target-segments-in-attribute-based-targeting-rules"></a>

You can also target Standard, Large, and Rule-based segments in attribute based targeting rules. The following example is equivalent to the individual targeting rule shown above.

![](/files/mjZFbSj0EmocUSH8r0F8)

You can also use ***percentage distribution*** to randomly distribute treatments among the user IDs in a segment, as shown below.

![](/files/FE0XkIdKNTUruMxyXZZJ)

See [Targeting rules](/feature-management-experimentation/use-fme/feature-management/setup/define-feature-flag-treatments-and-targeting.md#targeting-rules) for more information on feature flag targeting, percentage distribution, and rules' evaluation order.
