10 Apr 2018

Launched: Segments, Separate Your Users Into Reusable Segments

One of the core benefits of the LaunchDarkly feature management platform is the ability to target end-users on a granular level. This means you not only have control over when a feature is ‘on’, but can decide who will see/experience it. Teams using LaunchDarkly use targeting rules to perform beta releases, canary launches, test in production, or even manage entitlements like tiered pricing structures.

We’ve gotten feedback that teams often want to target the same group of people for multiple different features. Unfortunately this meant building that list of targeting rules each time for each flag. So to make that process easier, we’ve introduced a new feature called Segments that allow you to build a list of targeting rules that can be used for different feature flags.

Segments are great for dark launchers who are targeting the same group of users for different features. This can be users of a particular technology (e.g. all of your Gmail users), a long-lived beta testing group, a particular department within your organization–you get the idea. Segments makes it easier to consistently reach particular groups that you work with over time. To use this new feature, existing LaunchDarkly customers should make sure you update your SDK (you can read more about that here).

How does this work?

In this example, I describe a set of users called Gmail Users with email addresses ending with @gmail.com.

Then, in a feature flag called Use Rich Formatting for Email I add a rule to include Gmail Users in the list of users receiving this feature flag value.

In another feature flag called Encourage Users to Switch to Gmail I add a targeting rule to  exclude Gmail Users.

That’s all there is.

How are Segments different than Prerequisites?

Our more advanced dark launchers might have noticed that segments appear very similar to prerequisites. Just remember: segments allow you to target users by key or attributes, and prerequisites represent a dependency on a flag value served to a user.

How do I get this new feature?

If you created an account starting March 1, 2018, you have already Segments. Congratulations! If you joined before that, then use of Segments requires that you update your server-side SDKs (you can read more about that here). For specific requirements, see our documentation for building user segments. Contact us at support@launchdarkly.com if you think your application is ready to handle Segments.

15 Nov 2016

Launched: Bulk User Targeting

LaunchDarkly Bulk User Targeting - Feature Flags / Toggles

It’s always been easy to target individual users when you create a feature flag in LaunchDarkly.  You simply enter a user’s key, name, or email into the individual targeting field to serve to target that user. But, what if you want to target tens or even hundreds of users at once?

Our new bulk user targeting feature allows you to add, remove, or replace entire user populations by entering lists of user keys or emails. Our app will resolve each user, and you can decide what to do with them.

With bulk user targeting, you can:

  • Paste a CSV list that contains thousands of user keys or e-mails
  • Create user segments locally, like a beta group, and then add them to a variation
  • Look up multiple users at once and see which users currently exist and which do not

You can trigger Bulk User Targeting from the Bulk Edit button, or by using Ctrl-V to paste a list of users from your clipboard directly into the Add Users field:
LaunchDarkly Bulk User Management for Feature Flag / Toggle Targeting
This will open a bulk targeting modal that will let you add, remove, or replace users.
LaunchDarkly Bulk User Targeting and Segments

Check out our documentation to learn more about bulk user targeting and how users are resolved.

We’re really excited to bring you this new feature, as many of our customers have requested it. If you have any questions or feedback, we would love to hear from you at support@launchdarkly.com.