targeting
In a feature flag system, the set of rules that define the scope in which a flag takes effect. Matching can be based on user ID, organization ID, attributes, or percentage-based buckets, and the mechanism is essentially a lightweight policy engine.
Timeline (last 90 days)
WorkOS has exposed Feature Flags targeting endpoints in its API, allowing developers to add and remove target organizations and users from their own systems.
Targeting is the set of rules in a Feature Flag system that defines the "scope of effect" for a flag; rules can match by user ID, organization ID, attributes, or percentage buckets.
In a typical evaluation model for Feature Flags, a flag's final value is jointly determined by explicit targeting rules, percentage rollout, and the default value.
When a target is removed, the system skips that targeting rule and continues evaluating downward; if the flag's default value is on, users may still see the new feature.
"Explicit exclusion" usually exists as a separate exclusion rule with higher priority than targeting rules, ensuring that the target never enters the rollout under any circumstances.
Removing an organization or user from a flag's targeting does not equal turning off the flag's global state, nor does it necessarily mean the user immediately reverts to the old behavior.
It is recommended to include targeting changes in auditing, recording who added or removed which organization from which flag at what time.
Organization and user IDs often differ between test and production environments, so automation scripts should avoid hardcoding them.
Removal paths need to be tested as thoroughly as addition paths, because removal semantics depend on the default value and can easily diverge from expectations.
All Facts (9)
Removal paths need to be tested as thoroughly as addition paths, because removal semantics depend on the default value and can easily diverge from expectations.
50%UnverifiedTargeting is the set of rules in a Feature Flag system that defines the "scope of effect" for a flag; rules can match by user ID, organization ID, attributes, or percentage buckets.
50%UnverifiedIn a typical evaluation model for Feature Flags, a flag's final value is jointly determined by explicit targeting rules, percentage rollout, and the default value.
50%UnverifiedWhen a target is removed, the system skips that targeting rule and continues evaluating downward; if the flag's default value is on, users may still see the new feature.
50%Unverified"Explicit exclusion" usually exists as a separate exclusion rule with higher priority than targeting rules, ensuring that the target never enters the rollout under any circumstances.
50%UnverifiedRemoving an organization or user from a flag's targeting does not equal turning off the flag's global state, nor does it necessarily mean the user immediately reverts to the old behavior.
50%UnverifiedIt is recommended to include targeting changes in auditing, recording who added or removed which organization from which flag at what time.
50%UnverifiedOrganization and user IDs often differ between test and production environments, so automation scripts should avoid hardcoding them.
50%UnverifiedWorkOS has exposed Feature Flags targeting endpoints in its API, allowing developers to add and remove target organizations and users from their own systems.
50%