:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
feat(rbac): add org setting to restrict member list visibility (#72704)
Alex Lider333f06dfd388
diff --git a/ee/api/rbac/access_control.py b/ee/api/rbac/access_control.pyindex 1566312f15a1..5abf469ea71d 100644--- a/ee/api/rbac/access_control.py+++ b/ee/api/rbac/access_control.py@@ -642,6 +642,11 @@ class AccessControlViewSetMixin(_GenericViewSet):.prefetch_related("role_memberships"))+ can_edit = user_access_control.check_can_modify_access_levels_for_object(team)+ hide_non_project_members = (+ not team.organization.members_can_see_org_members and not user_access_control.is_organization_admin+ )+results = []for membership in memberships:mid = str(membership.id)@@ -663,6 +668,19 @@ class AccessControlViewSetMixin(_GenericViewSet):is_org_admin=is_org_admin,)+ # When the org restricts member list visibility, project members only see users with+ # project-scoped access (explicit grant, role, or default) — org admins aren't implied in+ if hide_non_project_members:+ project_scoped_result = get_effective_access_level_for_member(+ resource="project",+ default_level=project_default_level,+ role_levels=project_role_levels,+ member_level=project_member_level,+ is_org_admin=False,+ )+ if project_scoped_result.effective_access_level in (None, "none"):+ continue+resource_entries: dict[str, dict] = {}for resource in ACCESS_CONTROL_RESOURCES:resource_member_level = member_resource_overrides.get((mid, resource))@@ -715,7 +733,7 @@ class AccessControlViewSetMixin(_GenericViewSet):{"available_project_levels": list(ordered_access_levels("project")),"available_resource_levels": list(ACCESS_CONTROL_LEVELS_RESOURCE),- "can_edit": user_access_control.check_can_modify_access_levels_for_object(team),+ "can_edit": can_edit,"results": results,})diff --git a/ee/api/rbac/role.py b/ee/api/rbac/role.pyindex 12451f015167..8567ed0afc87 100644--- a/ee/api/rbac/role.py+++ b/ee/api/rbac/role.py@@ -1,5 +1,8 @@+from functools import cached_property+from typing import TYPE_CHECKING, Optional, cast+from django.db import IntegrityError-from django.db.models import Prefetch+from django.db.models import Prefetch, QuerySetfrom django_otp.plugins.otp_totp.models import TOTPDevicefrom drf_spectacular.utils import extend_schema, extend_schema_field@@ -10,12 +13,18 @@ from social_django.models import UserSocialAuthfrom posthog.api.organization_member import OrganizationMemberSerializerfrom posthog.api.routing import TeamAndOrgViewSetMixinfrom posthog.api.shared import UserBasicSerializer-from posthog.models import OrganizationMembership+from posthog.models import OrganizationMembership, Userfrom posthog.models.webauthn_credential import WebauthnCredentialfrom posthog.permissions import OrganizationAdminWritePermissions, TimeSensitiveActionPermission+from posthog.rbac.user_access_control import restricted_visible_membership_idsfrom ee.models.rbac.role import Role, RoleMembership+if TYPE_CHECKING:+ _MixinBase = TeamAndOrgViewSetMixin+else:+ _MixinBase = object+def role_memberships_prefetch() -> Prefetch:"""Prefetch role members with the relations the member serializer reads, so listing roles@@ -37,6 +46,26 @@ def role_memberships_prefetch() -> Prefetch:)+class RestrictedMemberVisibilityMixin(_MixinBase):+ """Role endpoints disclose member records, so they scope them the same way the members list+ does when the org restricts member list visibility."""++ @cached_property+ def visible_membership_ids(self) -> Optional[set[str]]:+ return restricted_visible_membership_ids(self.organization, cast(User, self.request.user))++ @cached_property+ def visible_user_ids(self) -> Optional[set[int]]:+ if self.visible_membership_ids is None:+ return None+ return set(+ OrganizationMembership.objects.filter(+ organization=self.organization,+ id__in=self.visible_membership_ids,+ ).values_list("user_id", flat=True)+ )++class RoleSerializer(serializers.ModelSerializer):created_by = UserBasicSerializer(read_only=True)members = serializers.SerializerMethodField()@@ -71,7 +100,23 @@ class RoleSerializer(serializers.ModelSerializer):)def get_members(self, role: Role):# role.roles are the memberships; reuse RoleViewSet's prefetch instead of re-querying per role.- return RoleMembershipSerializer(role.roles.all(), many=True).data+ memberships = list(role.roles.all())+ visible_membership_ids = self.context.get("visible_membership_ids")+ if visible_membership_ids is not None:+ memberships = [+ rm+ for rm in memberships+ if rm.organization_member_id and str(rm.organization_member_id) in visible_membership_ids+ ]+ return RoleMembershipSerializer(memberships, many=True).data++ def to_representation(self, instance: Role):+ data = super().to_representation(instance)+ # Hide the role creator from members who can't see them in the members list.+ visible_user_ids = self.context.get("visible_user_ids")+ if visible_user_ids is not None and instance.created_by_id and instance.created_by_id not in visible_user_ids:+ data["created_by"] = None+ return data@extend_schema_field(serializers.BooleanField())def get_is_default(self, role: Role):@@ -87,12 +132,18 @@ class RoleSerializer(serializers.ModelSerializer):@extend_schema(extensions={"x-product": "platform_features"})-class RoleViewSet(TeamAndOrgViewSetMixin, viewsets.ModelViewSet):+class RoleViewSet(RestrictedMemberVisibilityMixin, TeamAndOrgViewSetMixin, viewsets.ModelViewSet):scope_object = "organization"serializer_class = RoleSerializerqueryset = Role.objects.prefetch_related(role_memberships_prefetch())permission_classes = [OrganizationAdminWritePermissions, TimeSensitiveActionPermission]+ def get_serializer_context(self) -> dict:+ context = super().get_serializer_context()+ context["visible_membership_ids"] = self.visible_membership_ids+ context["visible_user_ids"] = self.visible_user_ids+ return context+class RoleMembershipSerializer(serializers.ModelSerializer):user = UserBasicSerializer(read_only=True)@@ -134,6 +185,7 @@ class RoleMembershipSerializer(serializers.ModelSerializer):@extend_schema(extensions={"x-product": "platform_features"})class RoleMembershipViewSet(+ RestrictedMemberVisibilityMixin,TeamAndOrgViewSetMixin,mixins.ListModelMixin,mixins.RetrieveModelMixin,@@ -146,3 +198,10 @@ class RoleMembershipViewSet(serializer_class = RoleMembershipSerializerqueryset = RoleMembership.objects.select_related("role")filter_rewrite_rules = {"organization_id": "role__organization_id"}++ def safely_get_queryset(self, queryset: QuerySet) -> QuerySet:+ # Legacy rows predating the organization_member FK have it NULL and can't be+ # visibility-checked, so this filter hides them from restricted members rather than leaking.+ if self.visible_membership_ids is not None:+ queryset = queryset.filter(organization_member_id__in=self.visible_membership_ids)+ return querysetdiff --git a/ee/api/rbac/test/test_access_control.py b/ee/api/rbac/test/test_access_control.pyindex 9b25a8b866a7..7e5182fa4724 100644--- a/ee/api/rbac/test/test_access_control.py+++ b/ee/api/rbac/test/test_access_control.py@@ -2008,6 +2008,57 @@ class TestAccessControlMembersEndpoint(BaseAccessControlTest):assert project["inherited_access_level"] == "member"assert project["inherited_access_level_reason"] == "project_default"+ def test_members_without_project_access_hidden_when_org_restricts_member_list_visibility(self):+ # Private project: default access "none", explicit grants for everyone but user3 and the org admin+ user3 = self._create_user("[email protected]")+ user3_membership = user3.organization_memberships.get(organization=self.organization)+ org_admin = self._create_user("[email protected]")+ org_admin_membership = org_admin.organization_memberships.get(organization=self.organization)+ org_admin_membership.level = OrganizationMembership.Level.ADMIN+ org_admin_membership.save()+ self._put_project_access_control({"access_level": "none"})+ self._put_project_access_control(+ {"organization_member": str(self.organization_membership.id), "access_level": "member"}+ )+ self._put_project_access_control(+ {"organization_member": str(self.user2_membership.id), "access_level": "member"}+ )++ # Non-editor with default visibility: full roster (current behavior preserved)+ self._org_membership(OrganizationMembership.Level.MEMBER)+ res = self.client.get("/api/projects/@current/access_control_members")+ assert self._find_member(res.json()["results"], user3_membership.id) is not None++ self.organization.members_can_see_org_members = False+ self.organization.save()++ # Non-editor with restricted visibility: members without project-scoped access are+ # hidden — including org admins, whose implicit access doesn't count+ res = self.client.get("/api/projects/@current/access_control_members")+ data = res.json()+ assert data["can_edit"] is False+ assert self._find_member(data["results"], user3_membership.id) is None+ assert self._find_member(data["results"], org_admin_membership.id) is None+ assert self._find_member(data["results"], self.user2_membership.id) is not None+ assert self._find_member(data["results"], self.organization_membership.id) is not None++ # Org admins always see the full roster so they can grant access+ self._org_membership(OrganizationMembership.Level.ADMIN)+ res = self.client.get("/api/projects/@current/access_control_members")+ results = res.json()["results"]+ assert self._find_member(results, user3_membership.id) is not None+ assert self._find_member(results, org_admin_membership.id) is not None++ # Explicit project admins who aren't org admins can edit, but still don't see the full roster+ self._put_project_access_control(+ {"organization_member": str(self.organization_membership.id), "access_level": "admin"}+ )+ self._org_membership(OrganizationMembership.Level.MEMBER)+ res = self.client.get("/api/projects/@current/access_control_members")+ data = res.json()+ assert data["can_edit"] is True+ assert self._find_member(data["results"], user3_membership.id) is None+def test_only_returns_current_team_member_overrides(self):"""Member overrides from other teams are not included."""from ee.models.rbac.access_control import AccessControldiff --git a/ee/api/test/test_role.py b/ee/api/test/test_role.pyindex 880540f6f4d4..1ef238297cee 100644--- a/ee/api/test/test_role.py+++ b/ee/api/test/test_role.py@@ -239,3 +239,60 @@ class TestRoleAPI(APILicensedTest):results = res.json()self.assertEqual(results["count"], 2)self.assertNotContains(res, str(other_org.id))+++class TestRoleMemberVisibilityRestriction(APILicensedTest):+ """When members_can_see_org_members is off, role endpoints must not disclose members the+ requester can't see in the members list."""++ def setUp(self):+ super().setUp()+ from posthog.constants import AvailableFeature++ from ee.models.rbac.access_control import AccessControl++ self.organization.available_product_features = [+ {"key": AvailableFeature.ACCESS_CONTROL, "name": AvailableFeature.ACCESS_CONTROL},+ {"key": AvailableFeature.ROLE_BASED_ACCESS, "name": AvailableFeature.ROLE_BASED_ACCESS},+ ]+ self.organization.members_can_see_org_members = False+ self.organization.save()++ self.mate = User.objects.create_and_join(self.organization, "[email protected]", None)+ self.hidden = User.objects.create_and_join(self.organization, "[email protected]", None)+ self.role = Role.objects.create(name="Engineering", organization=self.organization, created_by=self.hidden)+ for user in [self.mate, self.hidden]:+ RoleMembership.objects.create(+ role=self.role,+ user=user,+ organization_member=user.organization_memberships.get(organization=self.organization),+ )+ # Private project: explicit access for the requester and one project mate, none for `hidden`+ AccessControl.objects.create(team=self.team, resource="project", access_level="none")+ for membership in [+ self.organization_membership,+ self.mate.organization_memberships.get(organization=self.organization),+ ]:+ AccessControl.objects.create(+ team=self.team, resource="project", organization_member=membership, access_level="member"+ )++ def test_restricted_member_cannot_see_hidden_members_via_roles(self):+ response = self.client.get("/api/organizations/@current/roles")+ assert response.status_code == status.HTTP_200_OK+ role = response.json()["results"][0]+ assert {m["user"]["email"] for m in role["members"]} == {self.mate.email}+ assert role["created_by"] is None++ def test_restricted_member_cannot_see_hidden_members_via_role_memberships(self):+ response = self.client.get(f"/api/organizations/@current/roles/{self.role.id}/role_memberships")+ assert response.status_code == status.HTTP_200_OK+ assert {m["user"]["email"] for m in response.json()["results"]} == {self.mate.email}++ def test_admin_still_sees_all_role_members(self):+ self.organization_membership.level = OrganizationMembership.Level.ADMIN+ self.organization_membership.save()+ response = self.client.get("/api/organizations/@current/roles")+ role = response.json()["results"][0]+ assert {m["user"]["email"] for m in role["members"]} == {self.mate.email, self.hidden.email}+ assert role["created_by"]["email"] == self.hidden.emaildiff --git a/frontend/src/generated/core/api.schemas.ts b/frontend/src/generated/core/api.schemas.tsindex 00130c7cfd1b..e76d7b6d31a7 100644--- a/frontend/src/generated/core/api.schemas.ts+++ b/frontend/src/generated/core/api.schemas.ts@@ -3334,6 +3334,8 @@ export interface OrganizationApi {*/members_can_create_projects?: boolean | nullmembers_can_use_personal_api_keys?: boolean+ /** When False, members (below admin) only see themselves in the members list and only project members in access control. */+ members_can_see_org_members?: booleanallow_publicly_shared_resources?: booleanreadonly member_count: number/** @nullable */diff --git a/frontend/src/layout/navigation-3000/sidepanel/panels/access_control/accessControlLogic.ts b/frontend/src/layout/navigation-3000/sidepanel/panels/access_control/accessControlLogic.tsindex 6cd2c587d7d1..2464504ebcf8 100644--- a/frontend/src/layout/navigation-3000/sidepanel/panels/access_control/accessControlLogic.ts+++ b/frontend/src/layout/navigation-3000/sidepanel/panels/access_control/accessControlLogic.ts@@ -1365,7 +1365,10 @@ export const accessControlLogic = kea<accessControlLogicType>([(member) => member === accessControl.organization_member)) as (AccessControlTypeMember | AccessControlTypeOrganizationAdmins)[]- return members.concat(organizationAdminsAsAccessControlMember)+ // No row when no admins are visible (org may hide them from restricted members)+ return organizationAdminsAsAccessControlMember.organization_admin_members.length > 0+ ? members.concat(organizationAdminsAsAccessControlMember)+ : members},],diff --git a/frontend/src/scenes/organizationLogic.tsx b/frontend/src/scenes/organizationLogic.tsxindex 8bb3f61d246b..4006c929a208 100644--- a/frontend/src/scenes/organizationLogic.tsx+++ b/frontend/src/scenes/organizationLogic.tsx@@ -27,6 +27,7 @@ export type OrganizationUpdatePayload = Partial<| 'members_can_invite'| 'members_can_create_projects'| 'members_can_use_personal_api_keys'+ | 'members_can_see_org_members'| 'is_ai_data_processing_approved'| 'is_ai_training_opted_in'| 'default_experiment_stats_method'diff --git a/frontend/src/scenes/settings/organization/Members.tsx b/frontend/src/scenes/settings/organization/Members.tsxindex e93cf1301bb4..8cfc01ab666d 100644--- a/frontend/src/scenes/settings/organization/Members.tsx+++ b/frontend/src/scenes/settings/organization/Members.tsx@@ -185,7 +185,7 @@ function ActionsComponent(_: any, member: OrganizationMemberType): JSX.Element |}export function Members(): JSX.Element | null {- const { filteredMembers, membersLoading, search } = useValues(membersLogic)+ const { filteredMembers, members, membersLoading, search } = useValues(membersLogic)const { downloadMembersListDisabledReason } = useValues(membersExportLogic)const { currentOrganization } = useValues(organizationLogic)const { preflight } = useValues(preflightLogic)@@ -196,6 +196,8 @@ export function Members(): JSX.Element | null {const { openTwoFactorSetupModal } = useActions(twoFactorLogic)const adminRestrictionReason = useRestrictedArea({ minimumAccessLevel: OrganizationMembershipLevel.Admin })+ const hasHiddenMembers =+ (members?.length ?? 0) > 0 && (members?.length ?? 0) < (currentOrganization?.member_count ?? 0)useOnMountEffect(ensureAllMembersLoaded)@@ -351,6 +353,29 @@ export function Members(): JSX.Element | null {data-attr="org-members-table"defaultSorting={{ columnKey: 'level', order: -1 }}pagination={{ pageSize: 50 }}+ footer={+ hasHiddenMembers && (+ <div className="flex items-center gap-2 px-3 py-2">+ <div className="flex">+ {[0, 1, 2].map((index) => (+ <ProfilePicture+ key={index}+ name="?"+ index={index}+ size="md"+ className={index > 0 ? '-ml-1.5' : ''}+ />+ ))}+ </div>+ <span className="text-secondary">+ Other organization members{' '}+ <Tooltip title="Your organization only shows the full member list to admins.">+ <IconInfo className="text-base align-middle" />+ </Tooltip>+ </span>+ </div>+ )+ }/><h3 className="mt-4">Two-factor authentication</h3><PayGateMini feature={AvailableFeature.TWOFA_ENFORCEMENT}>diff --git a/frontend/src/scenes/settings/organization/OrganizationSecuritySettings.tsx b/frontend/src/scenes/settings/organization/OrganizationSecuritySettings.tsxindex 18261d1c49b7..2cc95edb8c9d 100644--- a/frontend/src/scenes/settings/organization/OrganizationSecuritySettings.tsx+++ b/frontend/src/scenes/settings/organization/OrganizationSecuritySettings.tsx@@ -18,7 +18,7 @@ export function OrganizationSecuritySettings(): JSX.Element | null {const { user } = useValues(userLogic)const { updateOrganization } = useActions(organizationLogic)- const allowPubliclySharedResourcesRestrictionReason = useRestrictedArea({+ const adminRestrictionReason = useRestrictedArea({minimumAccessLevel: OrganizationMembershipLevel.Admin,})@@ -70,7 +70,25 @@ export function OrganizationSecuritySettings(): JSX.Element | null {updateOrganization({ allow_publicly_shared_resources })}}}- disabledReason={allowPubliclySharedResourcesRestrictionReason}+ disabledReason={adminRestrictionReason}+ />+ <LemonSwitch+ label={+ <span>+ Members can see the full member list{' '}+ <Tooltip title="When disabled, only admins and owners can see all organization members. Members will only see themselves in the members list, and only people with project access in a project's access control.">+ <IconInfo className="mr-1" />+ </Tooltip>+ </span>+ }+ bordered+ className="mt-2"+ data-attr="org-members-can-see-org-members-toggle"+ checked={currentOrganization?.members_can_see_org_members ?? true}+ onChange={(members_can_see_org_members) => {+ updateOrganization({ members_can_see_org_members })+ }}+ disabledReason={adminRestrictionReason}/></PayGateMini></>diff --git a/frontend/src/types.ts b/frontend/src/types.tsindex 4afdf9f7e692..134aba05070c 100644--- a/frontend/src/types.ts+++ b/frontend/src/types.ts@@ -576,6 +576,7 @@ export interface OrganizationType extends OrganizationBasicType {members_can_invite?: booleanmembers_can_create_projects?: booleanmembers_can_use_personal_api_keys: boolean+ members_can_see_org_members?: booleanallow_publicly_shared_resources: booleanmetadata?: OrganizationMetadatamember_count: numberdiff --git a/posthog/api/organization.py b/posthog/api/organization.pyindex 255267591f6d..b9006d62b15c 100644--- a/posthog/api/organization.py+++ b/posthog/api/organization.py@@ -179,6 +179,7 @@ class OrganizationSerializer("members_can_invite","members_can_create_projects","members_can_use_personal_api_keys",+ "members_can_see_org_members","allow_publicly_shared_resources","member_count","is_ai_data_processing_approved",@@ -343,6 +344,15 @@ class OrganizationSerializer()return value+ def validate_members_can_see_org_members(self, value: bool) -> bool:+ if self.instance and self.instance.members_can_see_org_members != value:+ if not self.instance.is_feature_available(AvailableFeature.ORGANIZATION_SECURITY_SETTINGS):+ raise serializers.ValidationError(+ "You must upgrade your plan to configure member list visibility.",+ code="payment_required",+ )+ return value+@extend_schema_field(serializers.IntegerField())@tracer.start_as_current_span("organization_serializer.member_count")def get_member_count(self, organization: Organization) -> int:diff --git a/posthog/api/organization_member.py b/posthog/api/organization_member.pyindex 14a8423c104f..07dbc5e22ac7 100644--- a/posthog/api/organization_member.py+++ b/posthog/api/organization_member.py@@ -38,6 +38,7 @@ from posthog.models import OrganizationMembershipfrom posthog.models.user import Userfrom posthog.models.webauthn_credential import WebauthnCredentialfrom posthog.permissions import TimeSensitiveActionPermission, extract_organization+from posthog.rbac.user_access_control import get_project_scoped_visible_membership_idsfrom posthog.utils import posthoganalyticstracer = trace.get_tracer(__name__)@@ -222,6 +223,19 @@ class OrganizationMemberViewSet()def safely_get_queryset(self, queryset) -> QuerySet:+ organization = self.organization+ if not organization.members_can_see_org_members:+ requesting_membership = OrganizationMembership.objects.filter(+ organization=organization, user_id=cast(User, self.request.user).id+ ).first()+ if requesting_membership is None:+ queryset = queryset.filter(user_id=cast(User, self.request.user).id)+ elif requesting_membership.level < OrganizationMembership.Level.ADMIN:+ # Restricted members only see themselves and members of their projects+ visible_membership_ids = get_project_scoped_visible_membership_ids(organization, requesting_membership)+ if visible_membership_ids is not None:+ queryset = queryset.filter(id__in=visible_membership_ids)+if self.action == "list":params = self.request.GET.dict()diff --git a/posthog/api/test/__snapshots__/test_element.ambr b/posthog/api/test/__snapshots__/test_element.ambrindex 806996abe943..dcc6352f8fcd 100644--- a/posthog/api/test/__snapshots__/test_element.ambr+++ b/posthog/api/test/__snapshots__/test_element.ambr@@ -64,6 +64,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -477,6 +478,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -526,6 +528,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -601,6 +604,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",diff --git a/posthog/api/test/__snapshots__/test_preflight.ambr b/posthog/api/test/__snapshots__/test_preflight.ambrindex 0f3df25c535a..4b2d46e5d987 100644--- a/posthog/api/test/__snapshots__/test_preflight.ambr+++ b/posthog/api/test/__snapshots__/test_preflight.ambr@@ -64,6 +64,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",diff --git a/posthog/api/test/dashboards/__snapshots__/test_dashboard.ambr b/posthog/api/test/dashboards/__snapshots__/test_dashboard.ambrindex 37e0ac8e11b8..8d435393e3e3 100644--- a/posthog/api/test/dashboards/__snapshots__/test_dashboard.ambr+++ b/posthog/api/test/dashboards/__snapshots__/test_dashboard.ambr@@ -64,6 +64,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -526,6 +527,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -569,6 +571,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -706,6 +709,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -756,6 +760,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -831,6 +836,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -1372,6 +1378,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -2337,6 +2344,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -2495,6 +2503,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -2562,6 +2571,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -2967,6 +2977,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -3010,6 +3021,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -3147,6 +3159,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -3197,6 +3210,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -3272,6 +3286,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -3475,6 +3490,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -3550,6 +3566,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -3821,6 +3838,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -3941,6 +3959,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -4078,6 +4097,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -4128,6 +4148,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -4203,6 +4224,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -4487,6 +4509,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -4816,6 +4839,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -4953,6 +4977,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -5003,6 +5028,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -5078,6 +5104,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -6951,6 +6978,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -7088,6 +7116,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -7226,6 +7255,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -7276,6 +7306,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -7351,6 +7382,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -7576,6 +7608,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -8088,6 +8121,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -8225,6 +8259,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -8275,6 +8310,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -8374,6 +8410,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -8678,6 +8715,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -8745,6 +8783,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -9068,6 +9107,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -9205,6 +9245,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -9255,6 +9296,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -9330,6 +9372,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -9610,6 +9653,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -9936,6 +9980,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -10073,6 +10118,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -10123,6 +10169,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -10198,6 +10245,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -10572,6 +10620,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -11833,6 +11882,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -11970,6 +12020,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -12020,6 +12071,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -12095,6 +12147,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -12292,6 +12345,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -12839,6 +12893,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -12976,6 +13031,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -13114,6 +13170,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -13164,6 +13221,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -13239,6 +13297,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -13464,6 +13523,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -13976,6 +14036,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -14113,6 +14174,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -14163,6 +14225,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -14262,6 +14325,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -14486,6 +14550,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",diff --git a/posthog/api/test/notebooks/__snapshots__/test_notebook.ambr b/posthog/api/test/notebooks/__snapshots__/test_notebook.ambrindex d7813752fd0f..ead3d918377c 100644--- a/posthog/api/test/notebooks/__snapshots__/test_notebook.ambr+++ b/posthog/api/test/notebooks/__snapshots__/test_notebook.ambr@@ -64,6 +64,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -151,6 +152,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -288,6 +290,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -352,6 +355,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -427,6 +431,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -820,6 +825,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -965,6 +971,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -1229,6 +1236,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -1366,6 +1374,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -1430,6 +1439,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -1505,6 +1515,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -1624,6 +1635,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -1699,6 +1711,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",diff --git a/posthog/api/test/test_organization_members.py b/posthog/api/test/test_organization_members.pyindex 886dd9058535..6e55fb57c877 100644--- a/posthog/api/test/test_organization_members.py+++ b/posthog/api/test/test_organization_members.py@@ -44,6 +44,98 @@ class TestOrganizationMembersAPI(APIBaseTest, QueryMatchingTest):# assert len(response.json()["results"]) == 2+ def _restrict_member_list_visibility(self) -> tuple[User, User, User]:+ from posthog.constants import AvailableFeature++ from ee.models.rbac.access_control import AccessControl++ project_mate = User.objects.create_and_join(self.organization, "[email protected]", None)+ outsider = User.objects.create_and_join(self.organization, "[email protected]", None)+ admin = User.objects.create_and_join(+ self.organization, "[email protected]", None, level=OrganizationMembership.Level.ADMIN+ )+ # Private project: default "none" with explicit grants for the requester and one project mate+ AccessControl.objects.create(team=self.team, resource="project", access_level="none")+ AccessControl.objects.create(+ team=self.team,+ resource="project",+ organization_member=self.organization_membership,+ access_level="member",+ )+ AccessControl.objects.create(+ team=self.team,+ resource="project",+ organization_member=project_mate.organization_memberships.get(organization=self.organization),+ access_level="member",+ )+ self.organization.available_product_features = [+ {"key": AvailableFeature.ACCESS_CONTROL, "name": AvailableFeature.ACCESS_CONTROL}+ ]+ self.organization.members_can_see_org_members = False+ self.organization.save()+ return project_mate, outsider, admin++ def test_members_only_see_project_mates_when_org_restricts_member_list_visibility(self):+ project_mate, outsider, admin = self._restrict_member_list_visibility()++ # Restricted members see themselves and their project mates — not org admins or other members+ response = self.client.get("/api/organizations/@current/members/")+ assert {m["user"]["email"] for m in response.json()["results"]} == {self.user.email, project_mate.email}++ self.organization_membership.level = OrganizationMembership.Level.ADMIN+ self.organization_membership.save()++ response = self.client.get("/api/organizations/@current/members/")+ assert {m["user"]["email"] for m in response.json()["results"]} == {+ self.user.email,+ project_mate.email,+ outsider.email,+ admin.email,+ }++ def test_stale_access_control_rules_are_ignored_without_the_entitlement(self):+ project_mate, outsider, admin = self._restrict_member_list_visibility()+ # Plan downgrade: the private-project rows stay in the DB but must stop being enforced+ self.organization.available_product_features = []+ self.organization.save()++ response = self.client.get("/api/organizations/@current/members/")+ assert {m["user"]["email"] for m in response.json()["results"]} == {+ self.user.email,+ project_mate.email,+ outsider.email,+ admin.email,+ }++ def test_open_project_keeps_all_members_visible_when_restricted(self):+ from posthog.constants import AvailableFeature++ from ee.models.rbac.access_control import AccessControl++ other = User.objects.create_and_join(self.organization, "[email protected]", None)+ demoted = User.objects.create_and_join(self.organization, "[email protected]", None)+ AccessControl.objects.create(team=self.team, resource="project", access_level="member")+ # An explicit "none" override can't lower access below an open default today (max-wins);+ # this pins the open-team visibility path — expectations flip if more-specific-wins lands.+ AccessControl.objects.create(+ team=self.team,+ resource="project",+ organization_member=demoted.organization_memberships.get(organization=self.organization),+ access_level="none",+ )+ self.organization.available_product_features = [+ {"key": AvailableFeature.ACCESS_CONTROL, "name": AvailableFeature.ACCESS_CONTROL}+ ]+ self.organization.members_can_see_org_members = False+ self.organization.save()++ response = self.client.get("/api/organizations/@current/members/")+ assert {m["user"]["email"] for m in response.json()["results"]} == {+ self.user.email,+ other.email,+ demoted.email,+ }+def test_cant_list_members_for_an_alien_organization(self):org = Organization.objects.create(name="Alien Org")user = User.objects.create(email="[email protected]")diff --git a/posthog/api/test/test_welcome.py b/posthog/api/test/test_welcome.pyindex 6dd896e3f610..479b0efae43f 100644--- a/posthog/api/test/test_welcome.py+++ b/posthog/api/test/test_welcome.py@@ -72,6 +72,32 @@ class TestWelcomeEndpoint(APIBaseTest):self.assertIn(other.email, emails)self.assertNotIn(self.user.email, emails)+ def test_team_members_respect_member_list_visibility(self):+ from posthog.constants import AvailableFeature++ from ee.models.rbac.access_control import AccessControl++ project_mate = User.objects.create_and_join(self.organization, "[email protected]", None, "Mate")+ User.objects.create_and_join(self.organization, "[email protected]", None, "Hidden")+ # Private project: default "none" with explicit grants for the requester and one project mate+ AccessControl.objects.create(team=self.team, resource="project", access_level="none")+ for membership in (+ self.organization_membership,+ project_mate.organization_memberships.get(organization=self.organization),+ ):+ AccessControl.objects.create(+ team=self.team, resource="project", organization_member=membership, access_level="member"+ )+ self.organization.available_product_features = [+ {"key": AvailableFeature.ACCESS_CONTROL, "name": AvailableFeature.ACCESS_CONTROL}+ ]+ self.organization.members_can_see_org_members = False+ self.organization.save()++ response = self.client.get("/api/organizations/@current/welcome/current/")+ emails = [m["email"] for m in response.json()["team_members"]]+ self.assertEqual(emails, [project_mate.email])+def test_members_never_logged_in_show_never_status(self):User.objects.create_and_join(self.organization, "[email protected]", None, "Never")response = self.client.get("/api/organizations/@current/welcome/current/")diff --git a/posthog/api/welcome.py b/posthog/api/welcome.pyindex 94b21a9c76b7..d54b9eebf492 100644--- a/posthog/api/welcome.py+++ b/posthog/api/welcome.py@@ -17,7 +17,7 @@ from posthog.api.routing import TeamAndOrgViewSetMixinfrom posthog.models import Organization, Userfrom posthog.models.activity_logging.activity_log import ActivityLogfrom posthog.models.organization import OrganizationMembership-from posthog.rbac.user_access_control import UserAccessControl+from posthog.rbac.user_access_control import UserAccessControl, restricted_visible_membership_idslogger = structlog.get_logger(__name__)@@ -183,7 +183,7 @@ def _get_welcome_payload(organization: Organization, user: User) -> dict[str, Anreturn {**cacheable,"inviter": _get_inviter(user, organization),- "team_members": _filter_self(cacheable["team_members"], user),+ "team_members": _filter_self(_filter_visible(cacheable["team_members"], organization, user), user),"suggested_next_steps": _build_suggested_next_steps(user, cacheable["products_in_use"]),"is_organization_first_user": _is_organization_first_user(user, organization),}@@ -276,6 +276,23 @@ def _get_accessible_team_ids(organization: Organization, access_control: UserAccreturn list(queryset.order_by("id").values_list("id", flat=True)[:_MAX_TEAMS_SCANNED])+def _filter_visible(members: list[dict[str, Any]], organization: Organization, user: User) -> list[dict[str, Any]]:+ """Drop members hidden from `user` by the org's member list visibility setting.++ The cached payload is org-wide, so per-user visibility must be applied after cache retrieval."""+ visible_membership_ids = restricted_visible_membership_ids(organization, user)+ if visible_membership_ids is None:+ return members+ visible_emails = {+ email.lower()+ for email in OrganizationMembership.objects.filter(+ organization=organization, id__in=visible_membership_ids+ ).values_list("user__email", flat=True)+ if email+ }+ return [m for m in members if (m.get("email") or "").lower() in visible_emails]++def _filter_self(members: list[dict[str, Any]], user: User) -> list[dict[str, Any]]:user_email = (user.email or "").lower() if user.email else ""if not user_email:diff --git a/posthog/management/migration_analysis/hot_table_acknowledged_migrations.txt b/posthog/management/migration_analysis/hot_table_acknowledged_migrations.txtindex e492d1cb7577..3754b9e4054b 100644--- a/posthog/management/migration_analysis/hot_table_acknowledged_migrations.txt+++ b/posthog/management/migration_analysis/hot_table_acknowledged_migrations.txt@@ -17,3 +17,4 @@# Format: one "<app_label>.<migration_name>" per line, e.g.# posthog.1234_team_some_genuinely_core_fieldposthog.1244_team_event_retention_months+posthog.1262_organization_members_can_see_org_membersdiff --git a/posthog/migrations/1262_organization_members_can_see_org_members.py b/posthog/migrations/1262_organization_members_can_see_org_members.pynew file mode 100644index 000000000000..f95848d8a944--- /dev/null+++ b/posthog/migrations/1262_organization_members_can_see_org_members.py@@ -0,0 +1,19 @@+from django.db import migrations, models+++class Migration(migrations.Migration):+ dependencies = [+ ("posthog", "1261_alter_personalapikey_scoped_organizations_and_more"),+ ]++ operations = [+ migrations.AddField(+ model_name="organization",+ name="members_can_see_org_members",+ field=models.BooleanField(+ db_default=True,+ default=True,+ help_text="When False, members (below admin) only see themselves in the members list and only project members in access control.",+ ),+ ),+ ]diff --git a/posthog/migrations/max_migration.txt b/posthog/migrations/max_migration.txtindex af37778359e5..c648fb0c5913 100644--- a/posthog/migrations/max_migration.txt+++ b/posthog/migrations/max_migration.txt@@ -1 +1 @@-1261_alter_personalapikey_scoped_organizations_and_more+1262_organization_members_can_see_org_membersdiff --git a/posthog/models/organization.py b/posthog/models/organization.pyindex b779ae992256..946dff4da3c9 100644--- a/posthog/models/organization.py+++ b/posthog/models/organization.py@@ -243,6 +243,11 @@ class Organization(ModelActivityMixin, UUIDTModel):help_text="When True, organization members (below admin) are allowed to create new projects. Admins and owners can always create projects.",)members_can_use_personal_api_keys = models.BooleanField(default=True)+ members_can_see_org_members = models.BooleanField(+ default=True,+ db_default=True,+ help_text="When False, members (below admin) only see themselves in the members list and only project members in access control.",+ )allow_publicly_shared_resources = models.BooleanField(default=True)default_role = models.ForeignKey("ee.Role",diff --git a/posthog/rbac/user_access_control.py b/posthog/rbac/user_access_control.pyindex 8d1d8e6ac1fd..e2bef593ec8e 100644--- a/posthog/rbac/user_access_control.py+++ b/posthog/rbac/user_access_control.py@@ -29,6 +29,7 @@ else:try:from ee.models.rbac.access_control import AccessControl+ from ee.models.rbac.role import RoleMembershipexcept ImportError:pass@@ -295,6 +296,103 @@ def get_effective_access_level_for_member()+def get_project_scoped_visible_membership_ids(+ organization: Organization, requesting_membership: OrganizationMembership+) -> Optional[set[str]]:+ """Membership ids a restricted (non-org-admin) member may see: their own, plus members with+ project-scoped access (explicit grant, role, or project default — no org-admin bypass) to any+ project the requester has access to. Returns None when every member is visible, so callers can+ skip filtering without materializing the roster."""+ # Without the entitlement, stale AccessControl rules in the DB must be ignored, not enforced —+ # every project falls back to its default access, so every member is visible.+ if not organization.is_feature_available(AvailableFeature.ACCESS_CONTROL):+ return None++ team_ids = list(organization.teams.values_list("id", flat=True))+ role_based_access = organization.is_feature_available(AvailableFeature.ROLE_BASED_ACCESS)++ default_by_team: dict[int, AccessControlLevel] = {}+ member_overrides: dict[tuple[int, str], AccessControlLevel] = {}+ role_overrides: dict[tuple[int, str], AccessControlLevel] = {}+ for ac in AccessControl.objects.filter(team_id__in=team_ids, resource="project"):+ if ac.organization_member_id is None and ac.role_id is None:+ default_by_team[ac.team_id] = ac.access_level+ elif ac.organization_member_id:+ member_overrides[(ac.team_id, str(ac.organization_member_id))] = ac.access_level+ elif ac.role_id and role_based_access:+ role_overrides[(ac.team_id, str(ac.role_id))] = ac.access_level++ # A member's effective access can differ from the team default only if a rule mentions them —+ # directly, or via a role they hold. Everyone else has exactly the default outcome, so only+ # rule-mentioned candidates need individual evaluation.+ candidate_role_ids: dict[str, list[str]] = defaultdict(list)+ referenced_role_ids = {role_id for (_, role_id) in role_overrides}+ if referenced_role_ids:+ for rm in RoleMembership.objects.filter(role_id__in=referenced_role_ids):+ if rm.organization_member_id:+ candidate_role_ids[str(rm.organization_member_id)].append(str(rm.role_id))+ candidate_ids = {membership_id for (_, membership_id) in member_overrides} | set(candidate_role_ids)++ def has_scoped_access(team_id: int, membership_id: str) -> bool:+ result = get_effective_access_level_for_member(+ resource="project",+ default_level=default_by_team.get(team_id, default_access_level("project")),+ role_levels=[+ role_overrides[(team_id, rid)]+ for rid in candidate_role_ids.get(membership_id, [])+ if (team_id, rid) in role_overrides+ ],+ member_level=member_overrides.get((team_id, membership_id)),+ is_org_admin=False,+ )+ return result.effective_access_level not in (None, NO_ACCESS_LEVEL)++ requester_id = str(requesting_membership.id)+ accessible_team_ids = [team_id for team_id in team_ids if has_scoped_access(team_id, requester_id)]++ open_team_accessible = any(+ default_by_team.get(team_id, default_access_level("project")) != NO_ACCESS_LEVEL+ for team_id in accessible_team_ids+ )+ if open_team_accessible:+ # An open team makes every non-candidate visible; a candidate is hidden only if every+ # accessible team denies them (dead branch under max-wins, real under more-specific-wins).+ hidden = {+ membership_id+ for membership_id in candidate_ids+ if all(not has_scoped_access(team_id, membership_id) for team_id in accessible_team_ids)+ }+ if not hidden:+ return None+ all_ids = {+ str(membership_id)+ for membership_id in OrganizationMembership.objects.filter(organization=organization).values_list(+ "id", flat=True+ )+ }+ return (all_ids - hidden) | {requester_id}++ # Only private teams are accessible: non-candidates have the "none" default everywhere.+ visible = {requester_id}+ for membership_id in candidate_ids:+ if any(has_scoped_access(team_id, membership_id) for team_id in accessible_team_ids):+ visible.add(membership_id)+ return visible+++def restricted_visible_membership_ids(organization: Organization, user: User) -> Optional[set[str]]:+ """Membership ids `user` may see when the org restricts member list visibility, or None when+ unrestricted (the setting is enabled, or the user is an org admin)."""+ if organization.members_can_see_org_members:+ return None+ membership = OrganizationMembership.objects.filter(organization=organization, user_id=user.id).first()+ if membership is None:+ return set()+ if membership.level >= OrganizationMembership.Level.ADMIN:+ return None+ return get_project_scoped_visible_membership_ids(organization, membership)++def model_to_resource(model: Model) -> Optional[APIScopeObject]:"""Given a model, return the resource type it representsdiff --git a/posthog/session_recordings/test/__snapshots__/test_session_recording_playlist.ambr b/posthog/session_recordings/test/__snapshots__/test_session_recording_playlist.ambrindex b1f16d46ee6d..049e6ca96809 100644--- a/posthog/session_recordings/test/__snapshots__/test_session_recording_playlist.ambr+++ b/posthog/session_recordings/test/__snapshots__/test_session_recording_playlist.ambr@@ -360,6 +360,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -497,6 +498,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -547,6 +549,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -622,6 +625,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -1450,6 +1454,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -1587,6 +1592,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -1637,6 +1643,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -1705,6 +1712,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -1754,6 +1762,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -2201,6 +2210,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -2260,6 +2270,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -2335,6 +2346,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",diff --git a/posthog/session_recordings/test/__snapshots__/test_session_recordings.ambr b/posthog/session_recordings/test/__snapshots__/test_session_recordings.ambrindex 5fc18d7c6549..2fd24a868dc7 100644--- a/posthog/session_recordings/test/__snapshots__/test_session_recordings.ambr+++ b/posthog/session_recordings/test/__snapshots__/test_session_recordings.ambr@@ -72,6 +72,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -371,6 +372,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -421,6 +423,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -496,6 +499,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -828,6 +832,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -1123,6 +1128,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -1173,6 +1179,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -1248,6 +1255,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -1580,6 +1588,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -1871,6 +1880,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -1921,6 +1931,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -1996,6 +2007,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -2328,6 +2340,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -2619,6 +2632,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -2669,6 +2683,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -2744,6 +2759,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -3076,6 +3092,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -3371,6 +3388,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -3421,6 +3439,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -3496,6 +3515,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -3828,6 +3848,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -4123,6 +4144,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -4173,6 +4195,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -4248,6 +4271,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -4580,6 +4604,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -4875,6 +4900,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -4925,6 +4951,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -5000,6 +5027,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -5332,6 +5360,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -5457,6 +5486,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -5594,6 +5624,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -5644,6 +5675,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -5719,6 +5751,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -6261,6 +6294,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -6398,6 +6432,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -6448,6 +6483,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -6492,6 +6528,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -6565,6 +6602,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -7096,6 +7134,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -7204,6 +7243,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -7341,6 +7381,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -7391,6 +7432,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -7466,6 +7508,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -7747,6 +7790,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -8022,6 +8066,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -8159,6 +8204,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -8209,6 +8255,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -8308,6 +8355,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -8757,6 +8805,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -9148,6 +9197,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -9390,6 +9440,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -9527,6 +9578,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -9577,6 +9629,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -9628,6 +9681,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -9703,6 +9757,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -10204,6 +10259,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -10341,6 +10397,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -10391,6 +10448,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -10466,6 +10524,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -10747,6 +10806,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -10996,6 +11056,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -11133,6 +11194,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -11183,6 +11245,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -11359,6 +11422,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -11937,6 +12001,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -12074,6 +12139,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -12124,6 +12190,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -12199,6 +12266,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -12726,6 +12794,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -12863,6 +12932,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -12913,6 +12983,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -13060,6 +13131,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",diff --git a/posthog/tasks/test/__snapshots__/test_process_scheduled_changes.ambr b/posthog/tasks/test/__snapshots__/test_process_scheduled_changes.ambrindex 48ac7dc41f13..02809d541cdd 100644--- a/posthog/tasks/test/__snapshots__/test_process_scheduled_changes.ambr+++ b/posthog/tasks/test/__snapshots__/test_process_scheduled_changes.ambr@@ -312,6 +312,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -595,6 +596,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -1045,6 +1047,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -1461,6 +1464,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",diff --git a/products/actions/backend/api/test/__snapshots__/test_action.ambr b/products/actions/backend/api/test/__snapshots__/test_action.ambrindex 66088d342b3c..9e56876e2763 100644--- a/products/actions/backend/api/test/__snapshots__/test_action.ambr+++ b/products/actions/backend/api/test/__snapshots__/test_action.ambr@@ -64,6 +64,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -201,6 +202,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -265,6 +267,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -340,6 +343,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -535,6 +539,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -672,6 +677,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -810,6 +816,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -874,6 +881,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -949,6 +957,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -1120,6 +1129,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -1195,6 +1205,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -1364,6 +1375,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",diff --git a/products/annotations/backend/api/test/__snapshots__/test_annotation.ambr b/products/annotations/backend/api/test/__snapshots__/test_annotation.ambrindex 28bf4a1f5a8b..b58942954050 100644--- a/products/annotations/backend/api/test/__snapshots__/test_annotation.ambr+++ b/products/annotations/backend/api/test/__snapshots__/test_annotation.ambr@@ -64,6 +64,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -201,6 +202,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -265,6 +267,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -340,6 +343,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -545,6 +549,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -682,6 +687,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -820,6 +826,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -884,6 +891,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -959,6 +967,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -1140,6 +1149,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -1215,6 +1225,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -1318,6 +1329,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",diff --git a/products/cdp/backend/api/test/__snapshots__/test_plugin.ambr b/products/cdp/backend/api/test/__snapshots__/test_plugin.ambrindex 1c99332e626f..70cbba2a4a9a 100644--- a/products/cdp/backend/api/test/__snapshots__/test_plugin.ambr+++ b/products/cdp/backend/api/test/__snapshots__/test_plugin.ambr@@ -64,6 +64,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -115,6 +116,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -164,6 +166,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -247,6 +250,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -342,6 +346,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -384,6 +389,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -435,6 +441,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -477,6 +484,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -526,6 +534,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -609,6 +618,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -704,6 +714,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -746,6 +757,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -797,6 +809,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -846,6 +859,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -938,6 +952,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -988,6 +1003,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -1037,6 +1053,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -1140,6 +1157,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -1182,6 +1200,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",diff --git a/products/feature_flags/backend/api/test/__snapshots__/test_feature_flag.ambr b/products/feature_flags/backend/api/test/__snapshots__/test_feature_flag.ambrindex 943e9a719fcc..781aa587ed4b 100644--- a/products/feature_flags/backend/api/test/__snapshots__/test_feature_flag.ambr+++ b/products/feature_flags/backend/api/test/__snapshots__/test_feature_flag.ambr@@ -512,6 +512,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -1044,6 +1045,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -1450,6 +1452,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -1525,6 +1528,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",diff --git a/products/feature_flags/backend/api/test/__snapshots__/test_organization_feature_flag.ambr b/products/feature_flags/backend/api/test/__snapshots__/test_organization_feature_flag.ambrindex c3a03dde1479..3a9a5d4692a6 100644--- a/products/feature_flags/backend/api/test/__snapshots__/test_organization_feature_flag.ambr+++ b/products/feature_flags/backend/api/test/__snapshots__/test_organization_feature_flag.ambr@@ -64,6 +64,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -371,6 +372,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -589,6 +591,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -631,6 +634,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -1314,6 +1318,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -2062,6 +2067,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -2142,6 +2148,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -2374,6 +2381,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -2495,6 +2503,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -2544,6 +2553,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -2616,6 +2626,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -2811,6 +2822,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -2869,6 +2881,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -3038,6 +3051,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",diff --git a/products/platform_features/frontend/generated/api.schemas.ts b/products/platform_features/frontend/generated/api.schemas.tsindex b7b210e4e88e..7b07492e450d 100644--- a/products/platform_features/frontend/generated/api.schemas.ts+++ b/products/platform_features/frontend/generated/api.schemas.ts@@ -86,6 +86,8 @@ export interface OrganizationApi {*/members_can_create_projects?: boolean | nullmembers_can_use_personal_api_keys?: boolean+ /** When False, members (below admin) only see themselves in the members list and only project members in access control. */+ members_can_see_org_members?: booleanallow_publicly_shared_resources?: booleanreadonly member_count: number/** @nullable */@@ -182,6 +184,8 @@ export interface PatchedOrganizationApi {*/members_can_create_projects?: boolean | nullmembers_can_use_personal_api_keys?: boolean+ /** When False, members (below admin) only see themselves in the members list and only project members in access control. */+ members_can_see_org_members?: booleanallow_publicly_shared_resources?: booleanreadonly member_count?: number/** @nullable */diff --git a/products/platform_features/frontend/generated/api.ts b/products/platform_features/frontend/generated/api.tsindex 7242a5c9a356..07fa3907ec7b 100644--- a/products/platform_features/frontend/generated/api.ts+++ b/products/platform_features/frontend/generated/api.ts@@ -330,6 +330,10 @@ export const getRolesListUrl = (organizationId: string, params?: RolesListParams: `/api/organizations/${organizationId}/roles/`}+/**+ * Role endpoints disclose member records, so they scope them the same way the members list+ * does when the org restricts member list visibility.+ */export const rolesList = async (organizationId: string,params?: RolesListParams,@@ -345,6 +349,10 @@ export const getRolesCreateUrl = (organizationId: string) => {return `/api/organizations/${organizationId}/roles/`}+/**+ * Role endpoints disclose member records, so they scope them the same way the members list+ * does when the org restricts member list visibility.+ */export const rolesCreate = async (organizationId: string,roleApi: NonReadonly<RoleApi>,@@ -362,6 +370,10 @@ export const getRolesRetrieveUrl = (organizationId: string, id: string) => {return `/api/organizations/${organizationId}/roles/${id}/`}+/**+ * Role endpoints disclose member records, so they scope them the same way the members list+ * does when the org restricts member list visibility.+ */export const rolesRetrieve = async (organizationId: string, id: string, options?: RequestInit): Promise<RoleApi> => {return apiMutator<RoleApi>(getRolesRetrieveUrl(organizationId, id), {...options,@@ -373,6 +385,10 @@ export const getRolesUpdateUrl = (organizationId: string, id: string) => {return `/api/organizations/${organizationId}/roles/${id}/`}+/**+ * Role endpoints disclose member records, so they scope them the same way the members list+ * does when the org restricts member list visibility.+ */export const rolesUpdate = async (organizationId: string,id: string,@@ -391,6 +407,10 @@ export const getRolesPartialUpdateUrl = (organizationId: string, id: string) =>return `/api/organizations/${organizationId}/roles/${id}/`}+/**+ * Role endpoints disclose member records, so they scope them the same way the members list+ * does when the org restricts member list visibility.+ */export const rolesPartialUpdate = async (organizationId: string,id: string,@@ -409,6 +429,10 @@ export const getRolesDestroyUrl = (organizationId: string, id: string) => {return `/api/organizations/${organizationId}/roles/${id}/`}+/**+ * Role endpoints disclose member records, so they scope them the same way the members list+ * does when the org restricts member list visibility.+ */export const rolesDestroy = async (organizationId: string, id: string, options?: RequestInit): Promise<void> => {return apiMutator<void>(getRolesDestroyUrl(organizationId, id), {...options,@@ -436,6 +460,10 @@ export const getRolesRoleMembershipsListUrl = (: `/api/organizations/${organizationId}/roles/${roleId}/role_memberships/`}+/**+ * Role endpoints disclose member records, so they scope them the same way the members list+ * does when the org restricts member list visibility.+ */export const rolesRoleMembershipsList = async (organizationId: string,roleId: string,@@ -452,6 +480,10 @@ export const getRolesRoleMembershipsCreateUrl = (organizationId: string, roleId:return `/api/organizations/${organizationId}/roles/${roleId}/role_memberships/`}+/**+ * Role endpoints disclose member records, so they scope them the same way the members list+ * does when the org restricts member list visibility.+ */export const rolesRoleMembershipsCreate = async (organizationId: string,roleId: string,@@ -470,6 +502,10 @@ export const getRolesRoleMembershipsRetrieveUrl = (organizationId: string, roleIreturn `/api/organizations/${organizationId}/roles/${roleId}/role_memberships/${id}/`}+/**+ * Role endpoints disclose member records, so they scope them the same way the members list+ * does when the org restricts member list visibility.+ */export const rolesRoleMembershipsRetrieve = async (organizationId: string,roleId: string,@@ -486,6 +522,10 @@ export const getRolesRoleMembershipsDestroyUrl = (organizationId: string, roleIdreturn `/api/organizations/${organizationId}/roles/${roleId}/role_memberships/${id}/`}+/**+ * Role endpoints disclose member records, so they scope them the same way the members list+ * does when the org restricts member list visibility.+ */export const rolesRoleMembershipsDestroy = async (organizationId: string,roleId: string,diff --git a/products/platform_features/frontend/generated/api.zod.ts b/products/platform_features/frontend/generated/api.zod.tsindex 5caf46a5680e..e7fab3ecae18 100644--- a/products/platform_features/frontend/generated/api.zod.ts+++ b/products/platform_features/frontend/generated/api.zod.ts@@ -23,6 +23,12 @@ export const CreateBody = /* @__PURE__ */ zod.object({'When True, organization members (below admin) are allowed to create new projects. Admins and owners can always create projects.'),members_can_use_personal_api_keys: zod.boolean().optional(),+ members_can_see_org_members: zod+ .boolean()+ .optional()+ .describe(+ 'When False, members (below admin) only see themselves in the members list and only project members in access control.'+ ),allow_publicly_shared_resources: zod.boolean().optional(),is_ai_data_processing_approved: zod.boolean().nullish(),is_ai_training_opted_in: zod@@ -63,6 +69,12 @@ export const UpdateBody = /* @__PURE__ */ zod.object({'When True, organization members (below admin) are allowed to create new projects. Admins and owners can always create projects.'),members_can_use_personal_api_keys: zod.boolean().optional(),+ members_can_see_org_members: zod+ .boolean()+ .optional()+ .describe(+ 'When False, members (below admin) only see themselves in the members list and only project members in access control.'+ ),allow_publicly_shared_resources: zod.boolean().optional(),is_ai_data_processing_approved: zod.boolean().nullish(),is_ai_training_opted_in: zod@@ -103,6 +115,12 @@ export const PartialUpdateBody = /* @__PURE__ */ zod.object({'When True, organization members (below admin) are allowed to create new projects. Admins and owners can always create projects.'),members_can_use_personal_api_keys: zod.boolean().optional(),+ members_can_see_org_members: zod+ .boolean()+ .optional()+ .describe(+ 'When False, members (below admin) only see themselves in the members list and only project members in access control.'+ ),allow_publicly_shared_resources: zod.boolean().optional(),is_ai_data_processing_approved: zod.boolean().nullish(),is_ai_training_opted_in: zod@@ -143,24 +161,40 @@ export const MembersPartialUpdateBody = /* @__PURE__ */ zod.object({.describe('\* `1` - member\n\* `8` - administrator\n\* `15` - owner'),})+/**+ * Role endpoints disclose member records, so they scope them the same way the members list+ * does when the org restricts member list visibility.+ */export const rolesCreateBodyNameMax = 200export const RolesCreateBody = /* @__PURE__ */ zod.object({name: zod.string().max(rolesCreateBodyNameMax),})+/**+ * Role endpoints disclose member records, so they scope them the same way the members list+ * does when the org restricts member list visibility.+ */export const rolesUpdateBodyNameMax = 200export const RolesUpdateBody = /* @__PURE__ */ zod.object({name: zod.string().max(rolesUpdateBodyNameMax),})+/**+ * Role endpoints disclose member records, so they scope them the same way the members list+ * does when the org restricts member list visibility.+ */export const rolesPartialUpdateBodyNameMax = 200export const RolesPartialUpdateBody = /* @__PURE__ */ zod.object({name: zod.string().max(rolesPartialUpdateBodyNameMax).optional(),})+/**+ * Role endpoints disclose member records, so they scope them the same way the members list+ * does when the org restricts member list visibility.+ */export const RolesRoleMembershipsCreateBody = /* @__PURE__ */ zod.object({user_uuid: zod.uuid(),})diff --git a/products/product_analytics/backend/api/test/__snapshots__/test_insight.ambr b/products/product_analytics/backend/api/test/__snapshots__/test_insight.ambrindex 0a9b9b37e15b..8e6a331ed82e 100644--- a/products/product_analytics/backend/api/test/__snapshots__/test_insight.ambr+++ b/products/product_analytics/backend/api/test/__snapshots__/test_insight.ambr@@ -474,6 +474,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -714,6 +715,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -851,6 +853,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -989,6 +992,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -1039,6 +1043,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -1114,6 +1119,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -1426,6 +1432,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",@@ -1501,6 +1508,7 @@"posthog_organization"."members_can_invite","posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys",+ "posthog_organization"."members_can_see_org_members","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id","posthog_organization"."plugins_access_level",diff --git a/services/mcp/src/api/generated.ts b/services/mcp/src/api/generated.tsindex e68d2f434e88..da5e03d6f23e 100644--- a/services/mcp/src/api/generated.ts+++ b/services/mcp/src/api/generated.ts@@ -39994,6 +39994,8 @@ export namespace Schemas {*/members_can_create_projects?: boolean | null;members_can_use_personal_api_keys?: boolean;+ /** When False, members (below admin) only see themselves in the members list and only project members in access control. */+ members_can_see_org_members?: boolean;allow_publicly_shared_resources?: boolean;readonly member_count: number;/** @nullable */@@ -49718,6 +49720,8 @@ export namespace Schemas {*/members_can_create_projects?: boolean | null;members_can_use_personal_api_keys?: boolean;+ /** When False, members (below admin) only see themselves in the members list and only project members in access control. */+ members_can_see_org_members?: boolean;allow_publicly_shared_resources?: boolean;readonly member_count?: number;/** @nullable */diff --git a/services/mcp/src/generated/platform_features/api.ts b/services/mcp/src/generated/platform_features/api.tsindex c490eabf9f93..88e6df8b8879 100644--- a/services/mcp/src/generated/platform_features/api.ts+++ b/services/mcp/src/generated/platform_features/api.ts@@ -90,6 +90,10 @@ export const MembersGithubLoginRetrieveParams = /* @__PURE__ */ zod.object({user__uuid: zod.string(),})+/**+ * Role endpoints disclose member records, so they scope them the same way the members list+ * does when the org restricts member list visibility.+ */export const RolesListParams = /* @__PURE__ */ zod.object({organization_id: zod.string()@@ -103,6 +107,10 @@ export const RolesListQueryParams = /* @__PURE__ */ zod.object({offset: zod.number().optional().describe('The initial index from which to return the results.'),})+/**+ * Role endpoints disclose member records, so they scope them the same way the members list+ * does when the org restricts member list visibility.+ */export const RolesRetrieveParams = /* @__PURE__ */ zod.object({id: zod.string().describe('A UUID string identifying this role.'),organization_id: zod@@ -112,6 +120,10 @@ export const RolesRetrieveParams = /* @__PURE__ */ zod.object({),})+/**+ * Role endpoints disclose member records, so they scope them the same way the members list+ * does when the org restricts member list visibility.+ */export const RolesRoleMembershipsListParams = /* @__PURE__ */ zod.object({organization_id: zod.string()