- Create segments of whitelisted users (group A and B).
- Create a targeted delivery rule for each group of users.
We do not recommend setting many user IDs (< 20 per variation) as the size of your data file will increase and so will the latency, as the SDK must fetch a bigger file. If you wish to target more users, you can set a custom data attribute for the whole audience (for example, Internal users only) and then target the experience with that audience.
Create a targeted delivery rule for each group of users
- Click Activate > Feature flags and edit your feature flag.
- Add a new rule and select Targeted delivery.

- On the right side of the panel, create a new segment (Group A) and look for the Visitor code condition. Add the user IDs that you want to be part of Group A.
- Choose the variation you want to serve, for example, Variation A. All users from Group A will receive Variation A of your flag.

- Add a second Targeted delivery rule and replicate the steps for Variation B and Group B.