: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(projects): let orgs allow members to create projects (#60896)
Yasen1dba95b00bef
diff --git a/ee/api/test/test_project.py b/ee/api/test/test_project.pyindex 8b5af61b511a..77be4462634c 100644--- a/ee/api/test/test_project.py+++ b/ee/api/test/test_project.py@@ -102,7 +102,9 @@ class TestProjectEnterpriseAPI(team_enterprise_api_test_factory()): # type: ignassert other_org.id != self.user.current_organization_idresponse = self.client.post(f"/api/organizations/{other_org.id}/projects/", {"name": "Via path org"})self.assertEqual(response.status_code, 403, msg=response.json())- assert response.json() == self.permission_denied_response("Your organization access level is insufficient.")+ assert response.json() == self.permission_denied_response(+ "You need to be an organization admin or above to create new projects."+ )def test_user_that_does_not_belong_to_an_org_cannot_create_a_projec(self):user = User.objects.create(email="[email protected]")diff --git a/frontend/src/generated/core/api.schemas.ts b/frontend/src/generated/core/api.schemas.tsindex 36aa1ef80887..36ab960a2dc6 100644--- a/frontend/src/generated/core/api.schemas.ts+++ b/frontend/src/generated/core/api.schemas.ts@@ -2943,6 +2943,11 @@ export interface OrganizationApi {enforce_2fa?: boolean | null/** @nullable */members_can_invite?: boolean | null+ /**+ * When True, organization members (below admin) are allowed to create new projects. Admins and owners can always create projects.+ * @nullable+ */+ members_can_create_projects?: boolean | nullmembers_can_use_personal_api_keys?: booleanallow_publicly_shared_resources?: booleanreadonly member_count: numberdiff --git a/frontend/src/lib/components/NotificationsMenu/NotificationRow.tsx b/frontend/src/lib/components/NotificationsMenu/NotificationRow.tsxindex 1a1cf11fbbbf..6a23201e762e 100644--- a/frontend/src/lib/components/NotificationsMenu/NotificationRow.tsx+++ b/frontend/src/lib/components/NotificationsMenu/NotificationRow.tsx@@ -41,6 +41,10 @@ export const REALTIME_NOTIFICATION_TYPE_META: Record<string, { label: string; delabel: 'Experiments concluded',description: 'When an experiment you created ends',},+ project_created: {+ label: 'Projects created',+ description: 'When a member creates a new project in your organization',+ },}export function NotificationRow({diff --git a/frontend/src/lib/components/NotificationsMenu/notificationToasts.tsx b/frontend/src/lib/components/NotificationsMenu/notificationToasts.tsxindex 3105888ac199..64213aeda356 100644--- a/frontend/src/lib/components/NotificationsMenu/notificationToasts.tsx+++ b/frontend/src/lib/components/NotificationsMenu/notificationToasts.tsx@@ -3,6 +3,7 @@ import {IconCheckCircle,IconComment,IconFlask,+ IconFolder,IconNotification,IconPlug,IconWarning,@@ -21,6 +22,7 @@ const NOTIFICATION_TYPE_ICONS: Record<string, JSX.Element> = {pipeline_failure: <IconPlug className="size-5 text-danger shrink-0" />,issue_assigned: <IconBug className="size-5 text-primary shrink-0" />,experiment_concluded: <IconFlask className="size-5 text-primary shrink-0" />,+ project_created: <IconFolder className="size-5 text-primary shrink-0" />,}export function getNotificationIcon(notificationType: string): JSX.Element {diff --git a/frontend/src/scenes/organizationLogic.tsx b/frontend/src/scenes/organizationLogic.tsxindex 362834bfda86..4e0edaec3a86 100644--- a/frontend/src/scenes/organizationLogic.tsx+++ b/frontend/src/scenes/organizationLogic.tsx@@ -12,7 +12,7 @@ import { isUserLoggedIn } from 'lib/utils'import { getAppContext } from 'lib/utils/getAppContext'import { sidePanelStateLogic } from '~/layout/navigation-3000/sidepanel/sidePanelStateLogic'-import { OrganizationType } from '~/types'+import { AvailableFeature, OrganizationType } from '~/types'import type { organizationLogicType } from './organizationLogicType'import { urls } from './urls'@@ -25,6 +25,7 @@ export type OrganizationUpdatePayload = Partial<| 'logo_media_id'| 'enforce_2fa'| 'members_can_invite'+ | 'members_can_create_projects'| 'members_can_use_personal_api_keys'| 'is_ai_data_processing_approved'| 'is_ai_training_opted_in'@@ -131,12 +132,20 @@ export const organizationLogic = kea<organizationLogicType>([!currentOrganization?.membership_level && !currentOrganizationLoading,],projectCreationForbiddenReason: [- (s) => [s.currentOrganization],- (currentOrganization): string | null =>- !currentOrganization?.membership_level ||- currentOrganization.membership_level < OrganizationMembershipLevel.Admin- ? 'You need to be an organization admin or above to create new projects.'- : null,+ (s) => [s.currentOrganization, s.hasAvailableFeature],+ (currentOrganization, hasAvailableFeature): string | null => {+ const isAdminOrAbove =+ !!currentOrganization?.membership_level &&+ currentOrganization.membership_level >= OrganizationMembershipLevel.Admin+ // Mirror the backend: members can create only when the toggle is on AND the org has the entitlement.+ const membersCanCreate =+ !!currentOrganization?.members_can_create_projects &&+ hasAvailableFeature(AvailableFeature.ORGANIZATION_INVITE_SETTINGS)+ if (isAdminOrAbove || membersCanCreate) {+ return null+ }+ return 'You need to be an organization admin or above to create new projects.'+ },],isAdminOrOwner: [(s) => [s.currentOrganization],diff --git a/frontend/src/scenes/settings/organization/Members.tsx b/frontend/src/scenes/settings/organization/Members.tsxindex 355bfba98c85..c838aa0703cf 100644--- a/frontend/src/scenes/settings/organization/Members.tsx+++ b/frontend/src/scenes/settings/organization/Members.tsx@@ -195,16 +195,7 @@ export function Members(): JSX.Element | null {const { updateOrganization } = useActions(organizationLogic)const { openTwoFactorSetupModal } = useActions(twoFactorLogic)- const twoFactorRestrictionReason = useRestrictedArea({ minimumAccessLevel: OrganizationMembershipLevel.Admin })- const downloadMembersListRestrictionReason = useRestrictedArea({- minimumAccessLevel: OrganizationMembershipLevel.Admin,- })- const membersCanInviteRestrictionReason = useRestrictedArea({- minimumAccessLevel: OrganizationMembershipLevel.Admin,- })- const membersCanUsePersonalApiKeysRestrictionReason = useRestrictedArea({- minimumAccessLevel: OrganizationMembershipLevel.Admin,- })+ const adminRestrictionReason = useRestrictedArea({ minimumAccessLevel: OrganizationMembershipLevel.Admin })useOnMountEffect(ensureAllMembersLoaded)@@ -339,7 +330,7 @@ export function Members(): JSX.Element | null {onChange={setSearch}className="flex-1 basis-[min(100%,18rem)]"/>- {!downloadMembersListRestrictionReason && (+ {!adminRestrictionReason && (<LemonButtontype="secondary"onClick={downloadMembersList}@@ -369,7 +360,7 @@ export function Members(): JSX.Element | null {borderedchecked={!!currentOrganization?.enforce_2fa}onChange={(enforce_2fa) => updateOrganization({ enforce_2fa })}- disabledReason={twoFactorRestrictionReason}+ disabledReason={adminRestrictionReason}/></PayGateMini>@@ -386,7 +377,22 @@ export function Members(): JSX.Element | null {data-attr="org-members-can-invite-toggle"checked={!!currentOrganization?.members_can_invite}onChange={(members_can_invite) => updateOrganization({ members_can_invite })}- disabledReason={membersCanInviteRestrictionReason}+ disabledReason={adminRestrictionReason}+ />+ <p className="mt-4">+ Control who can create new projects. Admins and owners can always create projects.+ </p>+ <LemonSwitch+ label={+ <span>+ Members can create new projects in <i>{currentOrganization?.name}</i>+ </span>+ }+ bordered+ data-attr="org-members-can-create-projects-toggle"+ checked={!!currentOrganization?.members_can_create_projects}+ onChange={(members_can_create_projects) => updateOrganization({ members_can_create_projects })}+ disabledReason={adminRestrictionReason}/></PayGateMini>@@ -410,7 +416,7 @@ export function Members(): JSX.Element | null {onChange={(members_can_use_personal_api_keys) =>updateOrganization({ members_can_use_personal_api_keys })}- disabledReason={membersCanUsePersonalApiKeysRestrictionReason}+ disabledReason={adminRestrictionReason}/></PayGateMini></>diff --git a/frontend/src/types.ts b/frontend/src/types.tsindex fbf3964fc00a..9ede12af2c5c 100644--- a/frontend/src/types.ts+++ b/frontend/src/types.ts@@ -503,6 +503,7 @@ export interface OrganizationType extends OrganizationBasicType {is_ai_training_cta_shown?: booleanis_hipaa?: booleanmembers_can_invite?: boolean+ members_can_create_projects?: booleanmembers_can_use_personal_api_keys: booleanallow_publicly_shared_resources: booleanmetadata?: OrganizationMetadatadiff --git a/posthog/admin/admins/organization_admin.py b/posthog/admin/admins/organization_admin.pyindex 9f77db5e1f5d..ba10964719f4 100644--- a/posthog/admin/admins/organization_admin.py+++ b/posthog/admin/admins/organization_admin.py@@ -166,6 +166,7 @@ class OrganizationAdmin(admin.ModelAdmin):"is_hipaa","is_platform","members_can_invite",+ "members_can_create_projects","is_ai_data_processing_approved","is_ai_training_opted_in","is_ai_training_locked",diff --git a/posthog/api/organization.py b/posthog/api/organization.pyindex 6da940670113..c3bc400310e3 100644--- a/posthog/api/organization.py+++ b/posthog/api/organization.py@@ -276,6 +276,7 @@ class OrganizationSerializer("customer_id","enforce_2fa","members_can_invite",+ "members_can_create_projects","members_can_use_personal_api_keys","allow_publicly_shared_resources","member_count",@@ -390,6 +391,16 @@ class OrganizationSerializer()return value+ def validate_members_can_create_projects(self, value: bool) -> bool:+ # Gated behind the organization invite settings entitlement for now (will move to a dedicated feature later).+ if self.instance and self.instance.members_can_create_projects != value:+ if not self.instance.is_feature_available(AvailableFeature.ORGANIZATION_INVITE_SETTINGS):+ raise serializers.ValidationError(+ "You must upgrade your plan to configure who can create projects.",+ code="payment_required",+ )+ return value+def validate_enforce_2fa(self, value: bool | None) -> bool | None:if self.instance and self.instance.enforce_2fa != value:if not self.instance.is_feature_available(AvailableFeature.TWO_FACTOR_ENFORCEMENT):diff --git a/posthog/api/project.py b/posthog/api/project.pyindex d95656e52792..1ad322bc4fcf 100644--- a/posthog/api/project.py+++ b/posthog/api/project.py@@ -57,10 +57,10 @@ from posthog.models.utils import UUIDTfrom posthog.permissions import (CREATE_ACTIONS,APIScopePermission,- OrganizationAdminWritePermissions,OrganizationMemberPermissions,TeamMemberLightManagementPermission,TeamMemberStrictManagementPermission,+ UserCanCreateProjectPermission,get_organization_from_view,)from posthog.rbac.user_access_control import (@@ -73,6 +73,12 @@ from posthog.tasks.tasks import delete_project_data_and_notify_taskfrom posthog.user_permissions import UserPermissions, UserPermissionsSerializerMixinfrom posthog.utils import get_instance_realm, get_ip_address, get_week_start_for_country_code+from products.notifications.backend.facade.api import (+ NotificationData,+ NotificationType,+ TargetType,+ create_notification,+)from products.signals.backend.models import SignalSourceConfigfrom ee.api.rbac.access_control import AccessControlViewSetMixin@@ -711,6 +717,42 @@ class ProjectViewSet(TeamAndOrgViewSetMixin, AccessControlViewSetMixin, viewsetsreturn ProjectBackwardCompatBasicSerializerreturn super().get_serializer_class()+ def perform_create(self, serializer: serializers.BaseSerializer) -> None:+ super().perform_create(serializer)+ project = cast(Project, serializer.instance)+ self._notify_org_admins_of_member_project_creation(project)++ def _notify_org_admins_of_member_project_creation(self, project: Project) -> None:+ """When a member (below admin) creates a project, notify org admins/owners in-app. Best-effort."""+ try:+ user = cast(User, self.request.user)+ membership = OrganizationMembership.objects.filter(+ user=user, organization_id=project.organization_id+ ).first()+ if membership is None or membership.level >= OrganizationMembership.Level.ADMIN:+ return++ admin_user_ids = OrganizationMembership.objects.filter(+ organization_id=project.organization_id,+ level__gte=OrganizationMembership.Level.ADMIN,+ ).values_list("user_id", flat=True)++ creator = user.first_name or user.email+ for admin_user_id in admin_user_ids:+ create_notification(+ NotificationData(+ team_id=project.pk,+ notification_type=NotificationType.PROJECT_CREATED,+ title=f"{creator} created a new project",+ body=f'"{project.name}" was created by {creator}. Review it in project settings.',+ target_type=TargetType.USER,+ target_id=str(admin_user_id),+ source_url=f"/project/{project.pk}/settings",+ )+ )+ except Exception:+ logger.exception("Failed to dispatch member project creation notification", project_id=project.pk)+def dangerously_get_required_scopes(self, request, view) -> list[str] | None:# Used for the AccessControlViewSetMixinmixin_result = super().dangerously_get_required_scopes(request, view)@@ -747,7 +789,7 @@ class ProjectViewSet(TeamAndOrgViewSetMixin, AccessControlViewSetMixin, viewsetsif self.action:if self.action == "create":if "is_demo" not in self.request.data or not self.request.data["is_demo"]:- permissions.append(OrganizationAdminWritePermissions)+ permissions.append(UserCanCreateProjectPermission)else:permissions.append(OrganizationMemberPermissions)elif self.action != "list":diff --git a/posthog/api/team.py b/posthog/api/team.pyindex 7fb2eb1d6ae7..ebd41a706ebd 100644--- a/posthog/api/team.py+++ b/posthog/api/team.py@@ -62,10 +62,10 @@ from posthog.permissions import (CREATE_ACTIONS,AccessControlPermission,APIScopePermission,- OrganizationAdminWritePermissions,OrganizationMemberPermissions,TeamMemberLightManagementPermission,TeamMemberStrictManagementPermission,+ UserCanCreateProjectPermission,)from posthog.rbac.access_control_api_mixin import AccessControlViewSetMixinfrom posthog.rbac.user_access_control import UserAccessControlSerializerMixin@@ -1607,7 +1607,7 @@ class TeamViewSet(TeamAndOrgViewSetMixin, AccessControlViewSetMixin, viewsets.Moif self.action:if self.action == "create":if "is_demo" not in self.request.data or not self.request.data["is_demo"]:- permissions.append(OrganizationAdminWritePermissions)+ permissions.append(UserCanCreateProjectPermission)else:permissions.append(OrganizationMemberPermissions)elif self.action != "list":@@ -2163,6 +2163,22 @@ def validate_team_attrs(raise exceptions.PermissionDenied("Only project admins can modify these settings: " + ", ".join(sorted(admin_fields_touched)))+ else:+ # On create there's no team yet, so check the creator's org-level membership. Without this a+ # non-admin member (allowed to create projects via members_can_create_projects) could set+ # admin-only team fields like receive_org_level_activity_logs. `is_demo` is excluded — demo+ # project creation is intentionally open to members and gated separately.+ admin_fields_touched = (TEAM_CONFIG_ADMIN_FIELDS_SET - {"is_demo"}) & attrs.keys()+ if admin_fields_touched:+ membership = OrganizationMembership.objects.filter(+ user=cast(User, view.request.user), organization_id=view.organization_id+ ).first()+ member_level = membership.level if membership else None+ if member_level is None or member_level < OrganizationMembership.Level.ADMIN:+ raise exceptions.PermissionDenied(+ "Only organization admins can set these settings on project creation: "+ + ", ".join(sorted(admin_fields_touched))+ )if "primary_dashboard" in attrs:if not instance:diff --git a/posthog/api/test/__snapshots__/test_element.ambr b/posthog/api/test/__snapshots__/test_element.ambrindex 2e3f384f3f63..857251efc263 100644--- a/posthog/api/test/__snapshots__/test_element.ambr+++ b/posthog/api/test/__snapshots__/test_element.ambr@@ -62,6 +62,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -209,6 +210,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -257,6 +259,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -353,6 +356,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",diff --git a/posthog/api/test/__snapshots__/test_preflight.ambr b/posthog/api/test/__snapshots__/test_preflight.ambrindex 6c9b7042b187..5f69840ba31c 100644--- a/posthog/api/test/__snapshots__/test_preflight.ambr+++ b/posthog/api/test/__snapshots__/test_preflight.ambr@@ -62,6 +62,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",diff --git a/posthog/api/test/dashboards/__snapshots__/test_dashboard.ambr b/posthog/api/test/dashboards/__snapshots__/test_dashboard.ambrindex 7ec69a5bcaf3..30f96c00b426 100644--- a/posthog/api/test/dashboards/__snapshots__/test_dashboard.ambr+++ b/posthog/api/test/dashboards/__snapshots__/test_dashboard.ambr@@ -62,6 +62,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -580,6 +581,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -952,6 +954,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -1280,6 +1283,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -1485,6 +1489,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -1546,6 +1551,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -1674,6 +1680,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -1807,6 +1814,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -1856,6 +1864,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -1978,6 +1987,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -3465,6 +3475,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -3598,6 +3609,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -3776,6 +3788,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -4150,6 +4163,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -4610,6 +4624,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -4850,6 +4865,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -4893,6 +4909,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -5195,6 +5212,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -5288,6 +5306,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -5384,6 +5403,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -5517,6 +5537,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -5566,6 +5587,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -5662,6 +5684,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -5989,6 +6012,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -6256,6 +6280,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -6926,6 +6951,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -6969,6 +6995,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -7296,6 +7323,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -7435,6 +7463,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -7568,6 +7597,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -7628,6 +7658,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -7750,6 +7781,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -8338,6 +8370,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -8923,6 +8956,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -8966,6 +9000,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -9268,6 +9303,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -9414,6 +9450,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -9547,6 +9584,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -9596,6 +9634,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -9718,6 +9757,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -10313,6 +10353,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -10895,6 +10936,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -10938,6 +10980,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -11590,6 +11633,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -11729,6 +11773,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -11862,6 +11907,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -11911,6 +11957,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -12041,6 +12088,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -12742,6 +12790,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -13502,6 +13551,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -13761,6 +13811,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -13928,6 +13979,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -13977,6 +14029,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -14099,6 +14152,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -14184,6 +14238,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -14891,6 +14946,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -15024,6 +15080,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -15073,6 +15130,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -15195,6 +15253,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -15847,6 +15906,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -15929,6 +15989,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -16461,6 +16522,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -17008,6 +17070,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -17051,6 +17114,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -17353,6 +17417,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -17500,6 +17565,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -17633,6 +17699,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -17682,6 +17749,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -17804,6 +17872,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -18396,6 +18465,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -19534,6 +19604,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -19667,6 +19738,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -19716,6 +19788,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -19838,6 +19911,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -19937,6 +20011,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -20643,6 +20718,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -20730,6 +20806,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -20863,6 +20940,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -20912,6 +20990,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -21034,6 +21113,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -21119,6 +21199,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -21826,6 +21907,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -21959,6 +22041,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -22008,6 +22091,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -22130,6 +22214,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -22402,6 +22487,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",diff --git a/posthog/api/test/notebooks/__snapshots__/test_notebook.ambr b/posthog/api/test/notebooks/__snapshots__/test_notebook.ambrindex f6983b44e8eb..c8846057fe38 100644--- a/posthog/api/test/notebooks/__snapshots__/test_notebook.ambr+++ b/posthog/api/test/notebooks/__snapshots__/test_notebook.ambr@@ -62,6 +62,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -103,6 +104,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -236,6 +238,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -298,6 +301,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -394,6 +398,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -885,6 +890,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -1135,6 +1141,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -1281,6 +1288,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -1343,6 +1351,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -1439,6 +1448,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -1557,6 +1567,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -1653,6 +1664,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",diff --git a/posthog/api/test/test_organization.py b/posthog/api/test/test_organization.pyindex b93bb1d3923a..d3b36d75ddce 100644--- a/posthog/api/test/test_organization.py+++ b/posthog/api/test/test_organization.py@@ -16,6 +16,7 @@ from rest_framework.test import APIRequestFactoryfrom posthog.api.oauth.test_dcr import generate_rsa_keyfrom posthog.api.organization import OrganizationSerializer, _fetch_member_count, _org_serializer_cache_version+from posthog.constants import AvailableFeaturefrom posthog.models import Organization, OrganizationMembership, Teamfrom posthog.models.oauth import OAuthAccessToken, OAuthApplicationfrom posthog.models.personal_api_key import PersonalAPIKey@@ -236,6 +237,41 @@ class TestOrganizationAPI(APIBaseTest):self.organization.refresh_from_db()self.assertEqual(self.organization.members_can_invite, current_value)+ def test_cannot_update_members_can_create_projects_without_feature(self):+ """members_can_create_projects is gated behind the ORGANIZATION_INVITE_SETTINGS entitlement for now."""+ self.organization_membership.level = OrganizationMembership.Level.ADMIN+ self.organization_membership.save()+ self.organization.available_product_features = []+ self.organization.save()++ current_value = self.organization.members_can_create_projects+ response = self.client.patch(+ f"/api/organizations/{self.organization.id}/", {"members_can_create_projects": not current_value}+ )++ self.assertEqual(response.status_code, status.HTTP_400_BAD_REQUEST)+ error_data = response.json()+ self.assertIn("payment_required", error_data.get("code", ""))++ self.organization.refresh_from_db()+ self.assertEqual(self.organization.members_can_create_projects, current_value)++ def test_can_update_members_can_create_projects_with_feature(self):+ self.organization_membership.level = OrganizationMembership.Level.ADMIN+ self.organization_membership.save()+ self.organization.available_product_features = [+ {"key": AvailableFeature.ORGANIZATION_INVITE_SETTINGS, "name": "Org invite settings"}+ ]+ self.organization.save()++ response = self.client.patch(+ f"/api/organizations/{self.organization.id}/", {"members_can_create_projects": True}+ )++ self.assertEqual(response.status_code, status.HTTP_200_OK)+ self.organization.refresh_from_db()+ self.assertTrue(self.organization.members_can_create_projects)+def test_cannot_update_enforce_2fa_without_feature(self):"""Test that enforce_2fa cannot be updated without TWO_FACTOR_ENFORCEMENT feature."""# Ensure user is admindiff --git a/posthog/api/test/test_project.py b/posthog/api/test/test_project.pyindex faf2ba88aa85..85d936799d60 100644--- a/posthog/api/test/test_project.py+++ b/posthog/api/test/test_project.py@@ -119,6 +119,151 @@ class TestProjectAPI(team_api_test_factory()): # type: ignoreresponse = self.client.post("/api/projects/", {"name": f"Project {i}"})self.assertEqual(response.status_code, status.HTTP_201_CREATED)+ def _set_unlimited_projects(self, with_member_create_entitlement: bool = True) -> None:+ features: list[dict] = [{"key": AvailableFeature.ORGANIZATIONS_PROJECTS, "name": "Projects", "limit": None}]+ if with_member_create_entitlement:+ # members_can_create_projects is gated behind the invite-settings entitlement for now+ features.append({"key": AvailableFeature.ORGANIZATION_INVITE_SETTINGS, "name": "Org invite settings"})+ self.organization.available_product_features = features+ self.organization.save()++ def test_member_cannot_create_project_by_default(self):+ self._set_unlimited_projects()+ self.organization_membership.level = OrganizationMembership.Level.MEMBER+ self.organization_membership.save()++ response = self.client.post("/api/projects/", {"name": "Member Project"})++ self.assertEqual(response.status_code, status.HTTP_403_FORBIDDEN)+ self.assertEqual(+ response.json()["detail"], "You need to be an organization admin or above to create new projects."+ )++ def test_member_cannot_create_project_without_entitlement_even_when_toggle_on(self):+ # No invite-settings entitlement: the toggle is ignored and the gate behaves as admin-only.+ self._set_unlimited_projects(with_member_create_entitlement=False)+ self.organization.members_can_create_projects = True+ self.organization.save()+ self.organization_membership.level = OrganizationMembership.Level.MEMBER+ self.organization_membership.save()++ response = self.client.post("/api/projects/", {"name": "Member Project"})++ self.assertEqual(response.status_code, status.HTTP_403_FORBIDDEN)+ self.assertEqual(+ response.json()["detail"], "You need to be an organization admin or above to create new projects."+ )++ def test_member_can_create_project_when_org_allows(self):+ self._set_unlimited_projects()+ self.organization.members_can_create_projects = True+ self.organization.save()+ self.organization_membership.level = OrganizationMembership.Level.MEMBER+ self.organization_membership.save()++ with patch("posthog.api.project.create_notification"):+ response = self.client.post("/api/projects/", {"name": "Member Project"})++ self.assertEqual(response.status_code, status.HTTP_201_CREATED)++ def test_member_cannot_set_admin_only_fields_when_creating_project(self):+ # A member allowed to create projects must not be able to set admin-only team fields like+ # receive_org_level_activity_logs, which would grant org-wide activity log access.+ self._set_unlimited_projects()+ self.organization.members_can_create_projects = True+ self.organization.save()+ self.organization_membership.level = OrganizationMembership.Level.MEMBER+ self.organization_membership.save()++ with patch("posthog.api.project.create_notification"):+ response = self.client.post(+ "/api/projects/", {"name": "Sneaky Project", "receive_org_level_activity_logs": True}+ )++ self.assertEqual(response.status_code, status.HTTP_403_FORBIDDEN)+ self.assertIn("receive_org_level_activity_logs", response.json()["detail"])+ self.assertFalse(self.organization.teams.filter(receive_org_level_activity_logs=True).exists())++ def test_admin_can_set_admin_only_fields_when_creating_project(self):+ self._set_unlimited_projects()+ self.organization_membership.level = OrganizationMembership.Level.ADMIN+ self.organization_membership.save()++ response = self.client.post(+ "/api/projects/", {"name": "Admin Project", "receive_org_level_activity_logs": True}+ )++ self.assertEqual(response.status_code, status.HTTP_201_CREATED)+ self.assertTrue(response.json()["receive_org_level_activity_logs"])++ @parameterized.expand(+ [+ ("admin", OrganizationMembership.Level.ADMIN),+ ("owner", OrganizationMembership.Level.OWNER),+ ]+ )+ def test_admins_and_owners_can_always_create_project_when_members_blocked(self, _name, level):+ self._set_unlimited_projects()+ self.organization.members_can_create_projects = False+ self.organization.save()+ self.organization_membership.level = level+ self.organization_membership.save()++ with patch("posthog.api.project.create_notification") as mock_create_notification:+ response = self.client.post("/api/projects/", {"name": f"{_name} Project"})++ self.assertEqual(response.status_code, status.HTTP_201_CREATED)+ # Admins/owners are the recipients, never the trigger — creating their own project must not notify+ mock_create_notification.assert_not_called()++ @patch("posthog.api.project.create_notification")+ def test_member_project_creation_notifies_org_admins(self, mock_create_notification):+ from posthog.models import User++ from products.notifications.backend.facade.api import NotificationType, TargetType++ self._set_unlimited_projects()+ self.organization.members_can_create_projects = True+ self.organization.save()+ self.organization_membership.level = OrganizationMembership.Level.MEMBER+ self.organization_membership.save()++ # Add an admin so we can confirm admins/owners are targeted individually by user_id+ admin_user = User.objects.create_and_join(+ self.organization, "[email protected]", None, level=OrganizationMembership.Level.ADMIN+ )+ expected_admin_ids = set(+ self.organization.memberships.filter(level__gte=OrganizationMembership.Level.ADMIN).values_list(+ "user_id", flat=True+ )+ )++ response = self.client.post("/api/projects/", {"name": "Member Project"})++ self.assertEqual(response.status_code, status.HTTP_201_CREATED)+ # One USER-targeted notification per admin/owner, never the member creator+ self.assertEqual(mock_create_notification.call_count, len(expected_admin_ids))+ targeted_user_ids = set()+ for call in mock_create_notification.call_args_list:+ data = call[0][0]+ self.assertEqual(data.notification_type, NotificationType.PROJECT_CREATED)+ self.assertEqual(data.target_type, TargetType.USER)+ targeted_user_ids.add(int(data.target_id))+ self.assertEqual(targeted_user_ids, expected_admin_ids)+ self.assertIn(admin_user.id, targeted_user_ids)+ self.assertNotIn(self.user.id, targeted_user_ids)++ @patch("posthog.api.project.create_notification")+ def test_admin_project_creation_does_not_notify(self, mock_create_notification):+ self._set_unlimited_projects()+ self.organization_membership.level = OrganizationMembership.Level.ADMIN+ self.organization_membership.save()++ response = self.client.post("/api/projects/", {"name": "Admin Project"})++ self.assertEqual(response.status_code, status.HTTP_201_CREATED)+ mock_create_notification.assert_not_called()+@patch("posthog.models.organization.Organization.teams")def test_hard_limit_projects(self, mock_teams):# Set unlimited projectsdiff --git a/posthog/migrations/1208_organization_members_can_create_projects.py b/posthog/migrations/1208_organization_members_can_create_projects.pynew file mode 100644index 000000000000..d32328fd48cd--- /dev/null+++ b/posthog/migrations/1208_organization_members_can_create_projects.py@@ -0,0 +1,20 @@+# Generated by Django 5.2.14 on 2026-06-01 11:59++from django.db import migrations, models+++class Migration(migrations.Migration):+ dependencies = [("posthog", "1207_migrate_ai_observability_models")]++ operations = [+ migrations.AddField(+ model_name="organization",+ name="members_can_create_projects",+ field=models.BooleanField(+ blank=True,+ default=False,+ help_text="When True, organization members (below admin) are allowed to create new projects. Admins and owners can always create projects.",+ null=True,+ ),+ ),+ ]diff --git a/posthog/migrations/max_migration.txt b/posthog/migrations/max_migration.txtindex 482d3ea41f7a..95cac3368ce2 100644--- a/posthog/migrations/max_migration.txt+++ b/posthog/migrations/max_migration.txt@@ -1 +1 @@-1207_migrate_ai_observability_models+1208_organization_members_can_create_projectsdiff --git a/posthog/models/activity_logging/activity_log.py b/posthog/models/activity_logging/activity_log.pyindex 2011dd56b13e..ed814b38cda5 100644--- a/posthog/models/activity_logging/activity_log.py+++ b/posthog/models/activity_logging/activity_log.py@@ -271,6 +271,7 @@ field_name_overrides: dict[AuditableScope, dict[str, str]] = {"name": "organization name","enforce_2fa": "two-factor authentication requirement","members_can_invite": "member invitation permissions",+ "members_can_create_projects": "member project creation permissions","members_can_use_personal_api_keys": "personal API key permissions","allow_publicly_shared_resources": "public sharing permissions","is_member_join_email_enabled": "member join email notifications",diff --git a/posthog/models/organization.py b/posthog/models/organization.pyindex 9d2fc1b4dc75..5596d3791d12 100644--- a/posthog/models/organization.py+++ b/posthog/models/organization.py@@ -232,6 +232,12 @@ class Organization(ModelActivityMixin, UUIDTModel): # type: ignore[django-manag)enforce_2fa = models.BooleanField(null=True, blank=True)members_can_invite = models.BooleanField(default=True, null=True, blank=True)+ members_can_create_projects = models.BooleanField(+ default=False,+ null=True,+ blank=True,+ 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)allow_publicly_shared_resources = models.BooleanField(default=True)default_role = models.ForeignKey(diff --git a/posthog/permissions.py b/posthog/permissions.pyindex c1e01a94bd43..b0a314a64b0c 100644--- a/posthog/permissions.py+++ b/posthog/permissions.py@@ -875,3 +875,33 @@ class UserCanInvitePermission(BasePermission):return Truereturn members_can_invite+++class UserCanCreateProjectPermission(BasePermission):+ """+ Only allows Admins+, and Members if the members_can_create_projects org setting is True+ AND the organization has the entitlement to configure it. Without the entitlement this+ behaves exactly like the admin-write permission (members blocked), regardless of the toggle.+ """++ message = "You need to be an organization admin or above to create new projects."++ def has_permission(self, request: Request, view) -> bool:+ try:+ organization = get_organization_from_view(view)+ except ValueError:+ return True++ try:+ membership = OrganizationMembership.objects.get(user=cast(User, request.user), organization=organization)+ except OrganizationMembership.DoesNotExist:+ raise NotFound("Organization not found.")++ if membership.level >= OrganizationMembership.Level.ADMIN:+ return True++ # Gated behind the org invite-settings entitlement for now (will move to a dedicated feature later).+ if not organization.is_feature_available(AvailableFeature.ORGANIZATION_INVITE_SETTINGS):+ return False++ return bool(organization.members_can_create_projects)diff --git a/posthog/session_recordings/test/__snapshots__/test_session_recording_playlist.ambr b/posthog/session_recordings/test/__snapshots__/test_session_recording_playlist.ambrindex 210c565bfd9e..e22ab26cdc21 100644--- a/posthog/session_recordings/test/__snapshots__/test_session_recording_playlist.ambr+++ b/posthog/session_recordings/test/__snapshots__/test_session_recording_playlist.ambr@@ -366,6 +366,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -499,6 +500,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -548,6 +550,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -644,6 +647,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -1401,6 +1405,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -1498,6 +1503,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -1631,6 +1637,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -1673,6 +1680,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -1721,6 +1729,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -1817,6 +1826,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -2228,6 +2238,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -2632,6 +2643,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -2691,6 +2703,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -2787,6 +2800,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",diff --git a/posthog/session_recordings/test/__snapshots__/test_session_recordings.ambr b/posthog/session_recordings/test/__snapshots__/test_session_recordings.ambrindex 6d0afe6524bb..b4fd176ba1db 100644--- a/posthog/session_recordings/test/__snapshots__/test_session_recordings.ambr+++ b/posthog/session_recordings/test/__snapshots__/test_session_recordings.ambr@@ -70,6 +70,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -279,6 +280,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -484,6 +486,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -533,6 +536,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -629,6 +633,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -884,6 +889,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -1093,6 +1099,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -1294,6 +1301,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -1343,6 +1351,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -1439,6 +1448,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -1694,6 +1704,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -1903,6 +1914,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -2100,6 +2112,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -2149,6 +2162,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -2245,6 +2259,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -2500,6 +2515,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -2709,6 +2725,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -2906,6 +2923,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -2955,6 +2973,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -3051,6 +3070,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -3306,6 +3326,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -3515,6 +3536,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -3716,6 +3738,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -3765,6 +3788,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -3861,6 +3885,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -4116,6 +4141,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -4325,6 +4351,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -4526,6 +4553,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -4575,6 +4603,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -4671,6 +4700,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -4926,6 +4956,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -5135,6 +5166,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -5336,6 +5368,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -5385,6 +5418,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -5481,6 +5515,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -5736,6 +5771,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -5999,6 +6035,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -6169,6 +6206,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -6302,6 +6340,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -6437,6 +6476,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -6486,6 +6526,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -6582,6 +6623,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -6947,6 +6989,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -7166,6 +7209,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -7299,6 +7343,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -7348,6 +7393,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -7444,6 +7490,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -7485,6 +7532,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -7850,6 +7898,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -8075,6 +8124,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -8162,6 +8212,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -8295,6 +8346,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -8344,6 +8396,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -8440,6 +8493,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -8700,6 +8754,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -8855,6 +8910,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -9037,6 +9093,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -9170,6 +9227,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -9219,6 +9277,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -9361,6 +9420,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -9726,6 +9786,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -9832,6 +9893,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -10129,6 +10191,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -10373,6 +10436,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -10523,6 +10587,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -10571,6 +10636,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -10706,6 +10772,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -10755,6 +10822,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -10851,6 +10919,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -11216,6 +11285,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -11416,6 +11486,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -11549,6 +11620,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -11598,6 +11670,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -11694,6 +11767,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -11742,6 +11816,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -12107,6 +12182,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -12330,6 +12406,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -12463,6 +12540,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -12512,6 +12590,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -12608,6 +12687,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -13030,6 +13110,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -13192,6 +13273,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -13325,6 +13407,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -13374,6 +13457,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -13504,6 +13588,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -13869,6 +13954,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -14091,6 +14177,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -14224,6 +14311,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -14273,6 +14361,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -14369,6 +14458,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",diff --git a/posthog/tasks/test/__snapshots__/test_process_scheduled_changes.ambr b/posthog/tasks/test/__snapshots__/test_process_scheduled_changes.ambrindex 23592d1a8b49..c56fa8fb6b49 100644--- a/posthog/tasks/test/__snapshots__/test_process_scheduled_changes.ambr+++ b/posthog/tasks/test/__snapshots__/test_process_scheduled_changes.ambr@@ -103,6 +103,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -323,6 +324,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -806,6 +808,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -1055,6 +1058,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",diff --git a/products/actions/backend/api/test/__snapshots__/test_action.ambr b/products/actions/backend/api/test/__snapshots__/test_action.ambrindex 3cd2b8efdcaf..999fcc1024b2 100644--- a/products/actions/backend/api/test/__snapshots__/test_action.ambr+++ b/products/actions/backend/api/test/__snapshots__/test_action.ambr@@ -62,6 +62,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -195,6 +196,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -257,6 +259,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -353,6 +356,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -547,6 +551,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -680,6 +685,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -814,6 +820,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -876,6 +883,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -972,6 +980,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -1141,6 +1150,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -1237,6 +1247,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -1405,6 +1416,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",diff --git a/products/annotations/backend/api/test/__snapshots__/test_annotation.ambr b/products/annotations/backend/api/test/__snapshots__/test_annotation.ambrindex 32205e3164b8..6a448fceaec9 100644--- a/products/annotations/backend/api/test/__snapshots__/test_annotation.ambr+++ b/products/annotations/backend/api/test/__snapshots__/test_annotation.ambr@@ -62,6 +62,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -195,6 +196,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -257,6 +259,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -353,6 +356,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -555,6 +559,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -688,6 +693,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -822,6 +828,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -884,6 +891,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -980,6 +988,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -1157,6 +1166,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -1253,6 +1263,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -1355,6 +1366,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",diff --git a/products/cdp/backend/api/test/__snapshots__/test_plugin.ambr b/products/cdp/backend/api/test/__snapshots__/test_plugin.ambrindex 2bda72405fbc..8692c4376960 100644--- a/products/cdp/backend/api/test/__snapshots__/test_plugin.ambr+++ b/products/cdp/backend/api/test/__snapshots__/test_plugin.ambr@@ -62,6 +62,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -103,6 +104,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -153,6 +155,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -201,6 +204,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -310,6 +314,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -404,6 +409,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -445,6 +451,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -486,6 +493,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -536,6 +544,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -584,6 +593,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -693,6 +703,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -787,6 +798,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -828,6 +840,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -887,6 +900,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -935,6 +949,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -1044,6 +1059,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -1093,6 +1109,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -1141,6 +1158,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -1270,6 +1288,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",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 42cbc188459e..1ac3a5454164 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@@ -1790,6 +1790,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -2323,6 +2324,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -2692,6 +2694,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -2788,6 +2791,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",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 b94bdcd9045f..85846aad7732 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@@ -62,6 +62,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -443,6 +444,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -501,6 +503,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -2134,6 +2137,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -2371,6 +2375,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -2612,6 +2617,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -3013,6 +3019,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -3487,6 +3494,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -3688,6 +3696,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -3960,6 +3969,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -4039,6 +4049,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -4167,6 +4178,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -4208,6 +4220,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -4265,6 +4278,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",diff --git a/products/notifications/backend/facade/enums.py b/products/notifications/backend/facade/enums.pyindex 9a550e7d29dc..0eaab2803617 100644--- a/products/notifications/backend/facade/enums.py+++ b/products/notifications/backend/facade/enums.py@@ -13,6 +13,7 @@ class NotificationType(str, Enum):APPROVAL_RESOLVED = "approval_resolved"EXPERIMENT_CONCLUDED = "experiment_concluded"PIPELINE_FAILURE = "pipeline_failure"+ PROJECT_CREATED = "project_created"class Priority(str, Enum):diff --git a/products/notifications/backend/migrations/0011_alter_notificationevent_notification_type.py b/products/notifications/backend/migrations/0011_alter_notificationevent_notification_type.pynew file mode 100644index 000000000000..3117cd981ffd--- /dev/null+++ b/products/notifications/backend/migrations/0011_alter_notificationevent_notification_type.py@@ -0,0 +1,29 @@+# Generated by Django 5.2.14 on 2026-06-01 12:37++from django.db import migrations, models+++class Migration(migrations.Migration):+ dependencies = [+ ("notifications", "0010_alter_notificationevent_notification_type"),+ ]++ operations = [+ migrations.AlterField(+ model_name="notificationevent",+ name="notification_type",+ field=models.CharField(+ choices=[+ ("comment_mention", "COMMENT_MENTION"),+ ("alert_firing", "ALERT_FIRING"),+ ("issue_assigned", "ISSUE_ASSIGNED"),+ ("approval_requested", "APPROVAL_REQUESTED"),+ ("approval_resolved", "APPROVAL_RESOLVED"),+ ("experiment_concluded", "EXPERIMENT_CONCLUDED"),+ ("pipeline_failure", "PIPELINE_FAILURE"),+ ("project_created", "PROJECT_CREATED"),+ ],+ max_length=32,+ ),+ ),+ ]diff --git a/products/notifications/backend/migrations/max_migration.txt b/products/notifications/backend/migrations/max_migration.txtindex ce6ef01bd688..3d1b0d5f4f30 100644--- a/products/notifications/backend/migrations/max_migration.txt+++ b/products/notifications/backend/migrations/max_migration.txt@@ -1 +1 @@-0010_alter_notificationevent_notification_type+0011_alter_notificationevent_notification_typediff --git a/products/platform_features/frontend/generated/api.schemas.ts b/products/platform_features/frontend/generated/api.schemas.tsindex c01287a6470b..f63ec4bc2c42 100644--- a/products/platform_features/frontend/generated/api.schemas.ts+++ b/products/platform_features/frontend/generated/api.schemas.ts@@ -80,6 +80,11 @@ export interface OrganizationApi {enforce_2fa?: boolean | null/** @nullable */members_can_invite?: boolean | null+ /**+ * When True, organization members (below admin) are allowed to create new projects. Admins and owners can always create projects.+ * @nullable+ */+ members_can_create_projects?: boolean | nullmembers_can_use_personal_api_keys?: booleanallow_publicly_shared_resources?: booleanreadonly member_count: number@@ -171,6 +176,11 @@ export interface PatchedOrganizationApi {enforce_2fa?: boolean | null/** @nullable */members_can_invite?: boolean | null+ /**+ * When True, organization members (below admin) are allowed to create new projects. Admins and owners can always create projects.+ * @nullable+ */+ members_can_create_projects?: boolean | nullmembers_can_use_personal_api_keys?: booleanallow_publicly_shared_resources?: booleanreadonly member_count?: numberdiff --git a/products/platform_features/frontend/generated/api.zod.ts b/products/platform_features/frontend/generated/api.zod.tsindex 2f0ebbc528e0..70fdb5141ef5 100644--- a/products/platform_features/frontend/generated/api.zod.ts+++ b/products/platform_features/frontend/generated/api.zod.ts@@ -16,6 +16,12 @@ export const CreateBody = /* @__PURE__ */ zod.object({logo_media_id: zod.uuid().nullish(),enforce_2fa: zod.boolean().nullish(),members_can_invite: zod.boolean().nullish(),+ members_can_create_projects: zod+ .boolean()+ .nullish()+ .describe(+ '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(),allow_publicly_shared_resources: zod.boolean().optional(),is_ai_data_processing_approved: zod.boolean().nullish(),@@ -50,6 +56,12 @@ export const UpdateBody = /* @__PURE__ */ zod.object({logo_media_id: zod.uuid().nullish(),enforce_2fa: zod.boolean().nullish(),members_can_invite: zod.boolean().nullish(),+ members_can_create_projects: zod+ .boolean()+ .nullish()+ .describe(+ '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(),allow_publicly_shared_resources: zod.boolean().optional(),is_ai_data_processing_approved: zod.boolean().nullish(),@@ -84,6 +96,12 @@ export const PartialUpdateBody = /* @__PURE__ */ zod.object({logo_media_id: zod.uuid().nullish(),enforce_2fa: zod.boolean().nullish(),members_can_invite: zod.boolean().nullish(),+ members_can_create_projects: zod+ .boolean()+ .nullish()+ .describe(+ '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(),allow_publicly_shared_resources: zod.boolean().optional(),is_ai_data_processing_approved: zod.boolean().nullish(),diff --git a/products/product_analytics/backend/api/test/__snapshots__/test_insight.ambr b/products/product_analytics/backend/api/test/__snapshots__/test_insight.ambrindex e2174aea76a5..05f9339d136e 100644--- a/products/product_analytics/backend/api/test/__snapshots__/test_insight.ambr+++ b/products/product_analytics/backend/api/test/__snapshots__/test_insight.ambr@@ -464,6 +464,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -838,6 +839,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -1298,6 +1300,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -1538,6 +1541,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -1743,6 +1747,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -1851,6 +1856,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -1939,6 +1945,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -2072,6 +2079,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -2121,6 +2129,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -2217,6 +2226,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",@@ -2636,6 +2646,7 @@"posthog_organization"."is_ai_training_cta_shown","posthog_organization"."enforce_2fa","posthog_organization"."members_can_invite",+ "posthog_organization"."members_can_create_projects","posthog_organization"."members_can_use_personal_api_keys","posthog_organization"."allow_publicly_shared_resources","posthog_organization"."default_role_id",diff --git a/services/mcp/src/api/generated.ts b/services/mcp/src/api/generated.tsindex 04d4dd9da197..ba5470ca5905 100644--- a/services/mcp/src/api/generated.ts+++ b/services/mcp/src/api/generated.ts@@ -22625,6 +22625,11 @@ export namespace Schemas {enforce_2fa?: boolean | null;/** @nullable */members_can_invite?: boolean | null;+ /**+ * When True, organization members (below admin) are allowed to create new projects. Admins and owners can always create projects.+ * @nullable+ */+ members_can_create_projects?: boolean | null;members_can_use_personal_api_keys?: boolean;allow_publicly_shared_resources?: boolean;readonly member_count: number;@@ -29604,6 +29609,11 @@ export namespace Schemas {enforce_2fa?: boolean | null;/** @nullable */members_can_invite?: boolean | null;+ /**+ * When True, organization members (below admin) are allowed to create new projects. Admins and owners can always create projects.+ * @nullable+ */+ members_can_create_projects?: boolean | null;members_can_use_personal_api_keys?: boolean;allow_publicly_shared_resources?: boolean;readonly member_count?: number;