Platform
Targeting Rules
Configure targeting rules in the dashboard to control who sees a feature based on user attributes.
Overview
Targeting rules let you return different flag values based on user attributes (the evaluation context). Rules are configured per environment — each environment can have different rules.
Adding rules
- Navigate to your flag's detail page
- Select an environment
- Click Add Rule
- Configure the rule:
| Field | Description |
|---|---|
| Attribute | The context property to check (e.g. email, country, userId) |
| Operator | How to compare — see Operators |
| Value | What to compare against |
| Return Value | The value to return when this rule matches |
Rule evaluation
Rules are evaluated in order — first match wins. If no rules match, the flag returns its default behavior (see Evaluation Engine).
Common patterns
Internal access
Give your team early access:
| Attribute | Operator | Value | Return |
|---|---|---|---|
email | endsWith | @yourcompany.com | true |
Country-based rollout
Target specific regions:
| Attribute | Operator | Value | Return |
|---|---|---|---|
country | in | ["US", "CA"] | true |
Gradual percentage rollout
Roll out to 25% of users:
| Attribute | Operator | Value | Return |
|---|---|---|---|
| — | percent | 25 | true |
Combined rules
Internal team gets access, plus 10% of US users:
| # | Attribute | Operator | Value | Return |
|---|---|---|---|---|
| 1 | email | endsWith | @yourcompany.com | true |
| 2 | country | equals | US | — |
| 2 | — | percent | 10 | true |
Rule order matters — see Rule Ordering.