- Create segments of whitelisted users (Group A and Group B).
- Create a targeted delivery rule for each group of users.
Avoid setting many user IDs (fewer than 20 per variation): the size of your data file increases, and so does the latency, since the SDK must fetch a larger file. If you want to target more users, you can set a custom data attribute for the whole audience (for example, internal users only), 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 receive Variation A of your flag.

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