allowListStrategy

Configures an AllowListStrategy for this feature.

Only users whose ID is in the allow list will have the feature enabled. Requires userId to be set in the com.yonatankarp.ff4k.core.FlippingExecutionContext.

Example

feature("vip-feature") {
allowListStrategy {
+"user-123"
+"user-456"
add("user-789")
}
}

Author

Yonatan Karp-Rudin

Parameters

block

A DSL block to configure the list of allowed user IDs.

See also

for the inverse behavior