Feature entitlements
Learn more about feature entitlements in Reflag
Why use flags for this use case?
Gate a feature based on subscription plan
Step 1: Initialize Reflag
// identify user
reflag.user(userId1356, {
name: “Rasmus Makwarth”,
});
// associate user with company
reflag.company(companyId51, {
name: “Acme Inc.”,
plan: “business”,
});Step 2: Group companies by plan

Step 3: Gate the feature

Grant individual companies access

How to handle usage-based gating
Step 1: Let Reflag know of the current usage
Step 2: Gate using usage attribute


Last updated
Was this helpful?