How resolution works
Given a scope with the hierarchyCompany → Department → Team → User, and a query for user rider-456 in Zomato → Online Ordering → Riders, Foff checks these paths in order:
The first path that has an override wins. If no override matches, the feature’s default value is returned.
Concrete example
You have adark-mode-ui feature with a default value of false. You want to disable it explicitly for everyone in the Zomato → Online Ordering → Riders team — regardless of which individual user is queried.
Create an override with:
- Hierarchy path:
Zomato→Online Ordering→Riders - Value:
false
false from the team-level override, even if a higher-level override (say, at the Zomato company level) sets a different value.
Adding an override
1
Open the feature
In the Foff dashboard, navigate to the scope and select the feature you want to override.
2
Click Add override
Click Add override on the feature detail page.
3
Enter the hierarchy path
Fill in the hierarchy levels you want to target. You can specify any prefix of the full hierarchy — for example, just
Company to target everyone in an organization, or Company + Department + Team to target a specific team.4
Set the override value
Enter the value to return for this path. It must be the same JSON type as the feature’s default value.
5
Save
Click Create override. The override is active immediately.
Next steps
To understand the full resolution algorithm — including exactly how Foff walks the hierarchy and what happens at each step — read the hierarchy reference.Hierarchy
Learn the full resolution algorithm and how hierarchy paths are evaluated.