Audiences
Audiences are reusable groups of users defined at the organisation level. They can be referenced in targeting rule conditions.
Examples
beta-testers— Users opted into the beta programmeenterprise-customers— Organisations on the Enterprise planinternal-team— Your own team members
Using Audiences in Targeting
When evaluating a flag, pass the user's audience slugs in the context:
{
"feature": "new-dashboard",
"user": {
"id": "user-123",
"audiences": ["beta-testers", "internal-team"]
}
}
A targeting condition with property audience and operator contains will check if the target audience slug is present in the user's audience list.