@@ -172,7 +172,7 @@ def group_identify(
172172 """
173173 Set properties on a group
174174
175- A `set_once ` call requires
175+ A `group_identify ` call requires
176176 - `group_type` type of your group
177177 - `group_key` unique identifier of the group
178178 - `properties` with a dict with any key: value pairs
@@ -233,6 +233,7 @@ def feature_enabled(
233233 key , # type: str,
234234 distinct_id , # type: str,
235235 default = False , # type: bool
236+ groups = {}, # type: dict
236237):
237238 # type: (...) -> bool
238239 """
@@ -242,11 +243,13 @@ def feature_enabled(
242243 ```python
243244 if posthog.feature_enabled('beta feature', 'distinct id'):
244245 # do something
246+ if posthog.feature_enabled('groups feature', 'distinct id', groups={"organization": "id:5"}):
247+ # do something
245248 ```
246249
247250 You can call `posthog.load_feature_flags()` before to make sure you're not doing unexpected requests.
248251 """
249- return _proxy ("feature_enabled" , key = key , distinct_id = distinct_id , default = default )
252+ return _proxy ("feature_enabled" , key = key , distinct_id = distinct_id , default = default , groups = groups )
250253
251254
252255def page (* args , ** kwargs ):
0 commit comments