Skip to content

: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.

feat(organizations): let orgs show a notice to all members (#111179)

Rafael Audibertc09e78c692e0
diff --git a/frontend/snapshots.yml b/frontend/snapshots.yml
index 08129705bd48..36cda1f2199f 100644
--- a/frontend/snapshots.yml
+++ b/frontend/snapshots.yml
@@ -2417,9 +2417,9 @@ snapshots:
components-search--product-recents-and-starred--light:
hash: v1.k794b7964.45213063c3c767175033b9c3ff72d94df2e3ffc9ffe46398bc78c45c3708f1b5.X_mXo_erMw09YXsaZY6-sc_9vQx8VtriGVHZgr_wJmw
components-search--searching--dark:
- hash: v1.k794b7964.ae247836fac71b1e28116bee6c32d31a85e2f07a561743305c93e4f28cad2e4f.r6uSoLw68XcOix7fWb6Xhow6od6DG9PCD6Gb7avZyDE
+ hash: v1.k794b7964.2aa6ebf132ca137aa0f98f385c5d62dda54c36a4179ee2e4a094c55370449770.mrifVce5KZkJtm1hKJbJeTi1BQ_UchFotgLDAQ8CX7M
components-search--searching--light:
- hash: v1.k794b7964.23b1f5e5c02f9929a895879ffb3e9a6d97f62fa1b1c23c9b150464e117bfa330.2gya8sUFXKlDzwVigII5a7IOAqnR-O1jXBrpiJF42m8
+ hash: v1.k794b7964.8679bcce8f288c7902c415ec1532dfb612804e97141250cfe7efd7839a5b56d3.A2grbTGYuYbC836MtMxF5iaG9tymuJZsDFbSlS4CnoY
components-sentencelist--full-sentence--dark:
hash: v1.k794b7964.7e8e5dd2e09d246cc3668f362f2391fe67618bd1143aa393832297f5dc30e558.yptEWKc5RAUY613Fwd5cQ0VIinMvpdoI6cuKgagAGxk
components-sentencelist--full-sentence--light:
@@ -13043,9 +13043,13 @@ snapshots:
scenes-app-settings-organization--settings-organization-danger-zone--light:
hash: v1.k794b7964.085db228e99cf19bcd07b8bf524d50f44afa7ca799700b14d17ad71fa6a815a0.lADRjrc_-6Ki4bYbHLqjqwqHDA8WBtZA68zPPgdY1bM
scenes-app-settings-organization--settings-organization-details--dark:
- hash: v1.k794b7964.8fb7d9d4e0b8812533b0520eaf53401c28ab8c946c142fba172ddf184f7b7a92.39m-rg-pqS7DGErrPowdi5bBfUpBG9BjvRVdaS5OOUk
+ hash: v1.k794b7964.db1609b471b49f5f1684fd9bfb266d89c336334c0820d8e98cac18448a6b4545.NUIylkxBC5ZCz-jlRLUfFXHx3riwQtZ-J9On9kAHvT4
scenes-app-settings-organization--settings-organization-details--light:
- hash: v1.k794b7964.1eea952ecc97d7e31ad21bd854c14cfdec2b47eca6bae82e4f6d4a474c23e3d3.35WxTadRDwdMjbCo0h8EHKulGS9kHALrxJQnthM--Qs
+ hash: v1.k794b7964.e2ab700c695b4ef335bf697481e23abe8372347cfcfc7f2d5a7c99adea5757b6.p7QZaUK67nHkFLMYCJEGMVpT_LmgA8E4SvjdUPigpUg
+ scenes-app-settings-organization--settings-organization-details-with-member-notice--dark:
+ hash: v1.k794b7964.d14c4ddeb0a8be200168942ede31d6a9895cb5ac8afc7aa8791449499586e027.j99DsurfC1YPbm5NmUUQd7siuLmi7Wn5x9Nusbi1AGU
+ scenes-app-settings-organization--settings-organization-details-with-member-notice--light:
+ hash: v1.k794b7964.c167baba9508e3089ae3f67589950dffe3b87215c9a90be69716ef9ae5b1c241.B-2KlHDDXhevGdch1piUVt5eChxpRoFtqZR_oN7n4gc
scenes-app-settings-organization--settings-organization-members--dark:
hash: v1.k794b7964.3702a23a792ff71f857932ef5c23274387e00a963ac685e91cafa79d4af91bc4.NQGitL3q-pKHkk6vaxZ7QntEoBZcPXEvQk6pyyHbUZc
scenes-app-settings-organization--settings-organization-members--light:
diff --git a/frontend/src/generated/core/api.schemas.ts b/frontend/src/generated/core/api.schemas.ts
index 77c931fc8c69..f5f208adca27 100644
--- a/frontend/src/generated/core/api.schemas.ts
+++ b/frontend/src/generated/core/api.schemas.ts
@@ -4719,6 +4719,29 @@ export const OrganizationPluginsAccessLevelEnumApi = {
Number9: 9,
} as const
+export interface OrganizationMemberNoticeActionApi {
+ /**
+ * Text on the button shown next to the notice.
+ * @maxLength 40
+ */
+ label: string
+ /**
+ * Link the button opens in a new tab. Must use http or https.
+ * @maxLength 2000
+ */
+ url: string
+}
+
+export interface OrganizationMemberNoticeApi {
+ /**
+ * HTML shown in the banner. Supports formatting tags and links (<b>, <strong>, <i>, <em>, <u>, <s>, <code>, <br>, <p>, <span>, <ul>, <ol>, <li>, <a href>). Other tags, styles and scripts are removed.
+ * @maxLength 1000
+ */
+ message: string
+ /** Optional link button shown on the right of the banner. */
+ action?: OrganizationMemberNoticeActionApi | null
+}
+
export type OrganizationApiTeamsItem = { [key: string]: unknown }
export type OrganizationApiProjectsItem = { [key: string]: unknown }
@@ -4769,6 +4792,8 @@ export interface OrganizationApi {
* @nullable
*/
read_only_mcp_access?: boolean | null
+ /** Notice shown in a banner to every member of the organization. Set to null to remove it. */
+ member_notice?: OrganizationMemberNoticeApi | null
readonly member_count: number
/** @nullable */
is_ai_data_processing_approved?: boolean | null
diff --git a/frontend/src/layout/navigation/OrganizationMemberNoticeMessage.test.tsx b/frontend/src/layout/navigation/OrganizationMemberNoticeMessage.test.tsx
new file mode 100644
index 000000000000..fffeed5d767f
--- /dev/null
+++ b/frontend/src/layout/navigation/OrganizationMemberNoticeMessage.test.tsx
@@ -0,0 +1,27 @@
+import { render } from '@testing-library/react'
+
+import { OrganizationMemberNoticeMessage } from './OrganizationMemberNoticeMessage'
+
+describe('OrganizationMemberNoticeMessage', () => {
+ it.each([
+ {
+ label: 'keeps bold and links',
+ html: 'Read <b>how</b> we use data. <a href="https://intranet.example.com/policy" target="_blank">Policy</a>',
+ expected:
+ 'Read <b>how</b> we use data. <a href="https://intranet.example.com/policy" target="_blank">Policy</a>',
+ },
+ {
+ label: 'removes link tags and css',
+ html: '<link rel="stylesheet" href="https://example.com/x.css"><style>body{display:none}</style><span style="color:red">Hi</span>',
+ expected: '<span>Hi</span>',
+ },
+ {
+ label: 'removes scripts, handlers and javascript urls',
+ html: '<a href="javascript:alert(1)" onclick="x()">Hi</a><script>alert(1)</script><img src="x" onerror="alert(1)">',
+ expected: '<a>Hi</a>',
+ },
+ ])('$label', ({ html, expected }) => {
+ const { container } = render(<OrganizationMemberNoticeMessage html={html} />)
+ expect(container.firstElementChild?.innerHTML).toEqual(expected)
+ })
+})
diff --git a/frontend/src/layout/navigation/OrganizationMemberNoticeMessage.tsx b/frontend/src/layout/navigation/OrganizationMemberNoticeMessage.tsx
new file mode 100644
index 000000000000..9013f8a8e25c
--- /dev/null
+++ b/frontend/src/layout/navigation/OrganizationMemberNoticeMessage.tsx
@@ -0,0 +1,18 @@
+import DOMPurify from 'dompurify'
+
+// Keep in sync with MEMBER_NOTICE_ALLOWED_TAGS in posthog/api/organization.py. The backend already sanitizes on save,
+// this second pass guards against a notice written before the allowlist changed.
+const MEMBER_NOTICE_SANITIZE_CONFIG = {
+ ALLOWED_TAGS: ['a', 'b', 'br', 'code', 'em', 'i', 'li', 'ol', 'p', 's', 'span', 'strong', 'u', 'ul'],
+ ALLOWED_ATTR: ['href', 'title', 'rel'],
+ ADD_ATTR: ['target'],
+}
+
+export function OrganizationMemberNoticeMessage({ html }: { html: string }): JSX.Element {
+ return (
+ <span
+ className="[&_a]:text-link [&_a]:underline [&_ol]:list-decimal [&_ol]:pl-5 [&_ul]:list-disc [&_ul]:pl-5"
+ dangerouslySetInnerHTML={{ __html: DOMPurify.sanitize(html, MEMBER_NOTICE_SANITIZE_CONFIG) }}
+ />
+ )
+}
diff --git a/frontend/src/layout/navigation/ProjectNotice.tsx b/frontend/src/layout/navigation/ProjectNotice.tsx
index efdf3f42b5b7..16afb97b856f 100644
--- a/frontend/src/layout/navigation/ProjectNotice.tsx
+++ b/frontend/src/layout/navigation/ProjectNotice.tsx
@@ -1,7 +1,6 @@
import { useActions, useMountedLogic, useValues } from 'kea'
import { useEffect } from 'react'
-import { useFeatureFlag } from 'lib/hooks/useFeatureFlag'
import { LemonBanner } from 'lib/lemon-ui/LemonBanner'
import { cn } from 'lib/utils/css-classes'
import { sceneLogic } from 'scenes/sceneLogic'
@@ -16,19 +15,18 @@ export function ProjectNotice({ className }: { className?: string }): JSX.Elemen
const { projectNotice, projectNoticeVariant } = useValues(projectNoticeLogic)
const { reportNoticeShown } = useActions(projectNoticeLogic)
const { sceneConfig } = useValues(sceneLogic)
- const hideProjectNotice = useFeatureFlag('UX_HIDE_PROJECT_NOTICE')
const requiresHorizontalMargin = sceneConfig?.layout && LAYOUT_WITH_HORIZONTAL_MARGIN.includes(sceneConfig.layout)
// KLUDGE: We can't really depend on `projectNotice` being set inside the logic
// to trigger the action from inside the logic, so let's do it here.
useEffect(() => {
- if (projectNoticeVariant && !hideProjectNotice) {
+ if (projectNoticeVariant) {
reportNoticeShown()
}
- }, [projectNoticeVariant, reportNoticeShown, hideProjectNotice])
+ }, [projectNoticeVariant, reportNoticeShown])
- if (!projectNotice || hideProjectNotice) {
+ if (!projectNotice) {
return null
}
diff --git a/frontend/src/layout/navigation/projectNoticeLogic.test.tsx b/frontend/src/layout/navigation/projectNoticeLogic.test.tsx
index 4df015f803c4..e23477ef9753 100644
--- a/frontend/src/layout/navigation/projectNoticeLogic.test.tsx
+++ b/frontend/src/layout/navigation/projectNoticeLogic.test.tsx
@@ -1,4 +1,4 @@
-import { MOCK_DEFAULT_USER, MOCK_TEAM_ID } from 'lib/api.mock'
+import { MOCK_DEFAULT_ORGANIZATION, MOCK_DEFAULT_USER, MOCK_TEAM_ID } from 'lib/api.mock'
import { render } from '@testing-library/react'
import userEvent from '@testing-library/user-event'
@@ -6,9 +6,13 @@ import { router } from 'kea-router'
import { expectLogic } from 'kea-test-utils'
import { reverseProxyCheckerLogic } from 'lib/components/ReverseProxyChecker/reverseProxyCheckerLogic'
+import { FEATURE_FLAGS } from 'lib/constants'
import { LemonBanner } from 'lib/lemon-ui/LemonBanner'
+import { apiStatusLogic } from 'lib/logic/apiStatusLogic'
+import { featureFlagLogic } from 'lib/logic/featureFlagLogic'
import { verifyEmailLogic } from 'scenes/authentication/verify-email/verifyEmailLogic'
import { billingLogic } from 'scenes/billing/billingLogic'
+import { organizationLogic } from 'scenes/organizationLogic'
import { preflightLogic } from 'scenes/PreflightCheck/preflightLogic'
import { urls } from 'scenes/urls'
import { userLogic } from 'scenes/userLogic'
@@ -483,4 +487,66 @@ describe('projectNoticeLogic', () => {
}
)
})
+
+ describe('organization member notice', () => {
+ beforeEach(() => {
+ useMocks({
+ get: {
+ '/api/organizations/:organization_id/proxy_records': [200, { results: [] }],
+ },
+ })
+ initKeaTests()
+ })
+
+ it('shows only after the other notices, and stays after they are dismissed for the session', () => {
+ const logic = projectNoticeLogic()
+ logic.mount()
+ organizationLogic.actions.loadCurrentOrganizationSuccess({
+ ...MOCK_DEFAULT_ORGANIZATION,
+ member_notice: {
+ message: 'Read <b>how</b> we handle your data.',
+ action: { label: 'Read the policy', url: 'https://intranet.example.com/policy' },
+ },
+ })
+ apiStatusLogic.actions.setInternetConnectionIssue(true)
+ expect(logic.values.projectNoticeVariant).toEqual('internet_connection_issue')
+
+ apiStatusLogic.actions.setInternetConnectionIssue(false)
+ expect(logic.values.projectNoticeVariant).toEqual('organization_member_notice')
+
+ logic.actions.dismissProjectNotice('invite_teammates')
+ expect(logic.values.projectNoticeVariant).toEqual('organization_member_notice')
+ expect(logic.values.projectNotice?.onClose).toBeUndefined()
+ expect(logic.values.projectNotice?.action).toMatchObject({
+ to: 'https://intranet.example.com/policy',
+ targetBlank: true,
+ children: 'Read the policy',
+ })
+
+ logic.unmount()
+ })
+
+ it.each([
+ {
+ label: 'falls back to the member notice',
+ memberNotice: { message: 'Read the policy.' },
+ expected: 'organization_member_notice',
+ },
+ { label: 'shows nothing without a member notice', memberNotice: null, expected: null },
+ ])('$label when the hide-notice flag is on and a PostHog notice applies', ({ memberNotice, expected }) => {
+ const logic = projectNoticeLogic()
+ logic.mount()
+ organizationLogic.actions.loadCurrentOrganizationSuccess({
+ ...MOCK_DEFAULT_ORGANIZATION,
+ member_notice: memberNotice,
+ })
+ apiStatusLogic.actions.setInternetConnectionIssue(true)
+
+ featureFlagLogic.actions.setFeatureFlags([], { [FEATURE_FLAGS.UX_HIDE_PROJECT_NOTICE]: true })
+
+ expect(logic.values.projectNoticeVariant).toEqual(expected)
+
+ logic.unmount()
+ })
+ })
})
diff --git a/frontend/src/layout/navigation/projectNoticeLogic.tsx b/frontend/src/layout/navigation/projectNoticeLogic.tsx
index eeed803a1df4..f221e3ab9956 100644
--- a/frontend/src/layout/navigation/projectNoticeLogic.tsx
+++ b/frontend/src/layout/navigation/projectNoticeLogic.tsx
@@ -8,11 +8,13 @@ import api, { ApiError } from 'lib/api'
import { getProductPushDisplay } from 'lib/components/NavPanelAdvertisement/navPanelProductPushDisplay'
import { reverseProxyCheckerLogic } from 'lib/components/ReverseProxyChecker/reverseProxyCheckerLogic'
import { superpowersLogic } from 'lib/components/Superpowers/superpowersLogic'
+import { FEATURE_FLAGS } from 'lib/constants'
import { LemonBannerProps } from 'lib/lemon-ui/LemonBanner/LemonBanner'
import { LemonDialog } from 'lib/lemon-ui/LemonDialog'
import { Link } from 'lib/lemon-ui/Link'
import { apiStatusLogic } from 'lib/logic/apiStatusLogic'
import { eventIngestionRestrictionLogic } from 'lib/logic/eventIngestionRestrictionLogic'
+import { featureFlagLogic } from 'lib/logic/featureFlagLogic'
import { eventUsageLogic } from 'lib/utils/eventUsageLogic'
import { liveEventsLogic } from 'scenes/activity/live/liveEventsLogic'
import { verifyEmailLogic } from 'scenes/authentication/verify-email/verifyEmailLogic'
@@ -33,6 +35,7 @@ import { ProductKey } from '~/queries/schema/schema-general'
import { OnboardingStepKey, UserType } from '~/types'
import { EventIngestionRestrictionDetails } from './EventIngestionRestrictionDetails'
+import { OrganizationMemberNoticeMessage } from './OrganizationMemberNoticeMessage'
export type ProjectNoticeVariant =
| 'billing_alert'
@@ -44,6 +47,7 @@ export type ProjectNoticeVariant =
| 'internet_connection_issue'
| 'event_ingestion_restriction'
| 'missing_reverse_proxy'
+ | 'organization_member_notice'
export interface ProjectNoticeBlueprint {
message: JSX.Element | string
@@ -224,6 +228,7 @@ export interface projectNoticeLogicValues {
user: UserType | null // userLogic
effectiveBillingAlert: BillingAlertConfig | null
noticeDismissedThisSession: boolean
+ postHogNoticeVariant: ProjectNoticeVariant | null
projectNotice: ProjectNoticeBlueprint | null
projectNoticeDismissKey: string | null
projectNoticeVariant: ProjectNoticeVariant | null
@@ -275,7 +280,7 @@ export interface projectNoticeLogicMeta {
billingAlert: BillingAlertConfig | null,
fakeBillingAlert: import('lib/components/Superpowers/superpowersLogic').FakeBillingAlert
) => BillingAlertConfig | null
- projectNoticeVariant: (
+ postHogNoticeVariant: (
currentOrganization: null | import('~/types').OrganizationType,
currentTeam: null | import('~/types').TeamPublicType | import('~/types').TeamType,
preflight: null | import('~/types').PreflightStatus,
@@ -300,6 +305,11 @@ export interface projectNoticeLogicMeta {
hasReverseProxy: boolean | null,
isProvisionedUser: boolean
) => ProjectNoticeVariant | null
+ projectNoticeVariant: (
+ postHogNoticeVariant: ProjectNoticeVariant | null,
+ arg: boolean,
+ arg2: boolean
+ ) => ProjectNoticeVariant | null
projectNoticeDismissKey: (
projectNoticeVariant: ProjectNoticeVariant | null,
effectiveBillingAlert: BillingAlertConfig | null
@@ -405,7 +415,7 @@ export const projectNoticeLogic = kea<projectNoticeLogicType>([
return billingAlert
},
],
- projectNoticeVariant: [
+ postHogNoticeVariant: [
(s) => [
organizationLogic.selectors.currentOrganization,
teamLogic.selectors.currentTeam,
@@ -512,6 +522,24 @@ export const projectNoticeLogic = kea<projectNoticeLogicType>([
return null
},
],
+ projectNoticeVariant: [
+ (s) => [
+ s.postHogNoticeVariant,
+ (state) => !!organizationLogic.selectors.currentOrganization(state)?.member_notice?.message,
+ (state) => !!featureFlagLogic.selectors.featureFlags(state)[FEATURE_FLAGS.UX_HIDE_PROJECT_NOTICE],
+ ],
+ (
+ postHogNoticeVariant: ProjectNoticeVariant | null,
+ hasMemberNotice: boolean,
+ hidePostHogNotices: boolean
+ ): ProjectNoticeVariant | null => {
+ // The member notice comes last. Members can't dismiss it, and the flag only hides PostHog's notices.
+ if (postHogNoticeVariant && !hidePostHogNotices) {
+ return postHogNoticeVariant
+ }
+ return hasMemberNotice ? 'organization_member_notice' : null
+ },
+ ],
projectNoticeDismissKey: [
(s) => [s.projectNoticeVariant, s.effectiveBillingAlert],
(variant: ProjectNoticeVariant | null, effectiveBillingAlert: BillingAlertConfig | null): string | null => {
@@ -715,6 +743,24 @@ export const projectNoticeLogic = kea<projectNoticeLogicType>([
},
onClose: dismiss,
}
+ case 'organization_member_notice': {
+ const memberNotice = currentOrganization?.member_notice
+ if (!memberNotice) {
+ return null
+ }
+ return {
+ message: <OrganizationMemberNoticeMessage html={memberNotice.message} />,
+ type: 'info',
+ action: memberNotice.action
+ ? {
+ to: memberNotice.action.url,
+ targetBlank: true,
+ children: memberNotice.action.label,
+ 'data-attr': 'organization-member-notice-action',
+ }
+ : undefined,
+ }
+ }
default:
return null
}
diff --git a/frontend/src/scenes/organizationLogic.tsx b/frontend/src/scenes/organizationLogic.tsx
index ff5b00aa5d54..e4b3d9964ba2 100644
--- a/frontend/src/scenes/organizationLogic.tsx
+++ b/frontend/src/scenes/organizationLogic.tsx
@@ -63,6 +63,7 @@ export type OrganizationUpdatePayload = Partial<
| 'members_can_use_personal_api_keys'
| 'members_can_see_org_members'
| 'read_only_mcp_access'
+ | 'member_notice'
| 'is_ai_data_processing_approved'
| 'is_ai_training_opted_in'
| 'allow_publicly_shared_resources'
diff --git a/frontend/src/scenes/settings/SettingsMap.tsx b/frontend/src/scenes/settings/SettingsMap.tsx
index 071a6aa44992..0533ea4e43e6 100644
--- a/frontend/src/scenes/settings/SettingsMap.tsx
+++ b/frontend/src/scenes/settings/SettingsMap.tsx
@@ -175,6 +175,7 @@ import { OrganizationAI } from './organization/OrgAI'
import { OrganizationAITrainingOptOut } from './organization/OrgAITraining'
import { OrganizationDangerZone } from './organization/OrganizationDangerZone'
import { OrganizationIntegrations } from './organization/OrganizationIntegrations'
+import { OrganizationMemberNotice } from './organization/OrganizationMemberNotice'
import { OrganizationPersonalAPIKeys } from './organization/OrganizationPersonalAPIKeys'
import { OrganizationSecuritySettings } from './organization/OrganizationSecuritySettings'
import { OrganizationDesktopBetaTerms } from './organization/OrgDesktopBetaTerms'
@@ -2267,6 +2268,23 @@ export const SETTINGS_MAP: SettingSection[] = [
component: <OrgIPAnonymizationDefault />,
keywords: ['ip', 'anonymize', 'gdpr', 'privacy', 'geolocation'],
},
+ {
+ id: 'organization-member-notice',
+ title: 'Member notice',
+ description:
+ 'Show a message to every member of your organization at the top of each page, with an optional link button. Use it for things like a data policy or a compliance disclaimer.',
+ component: <OrganizationMemberNotice />,
+ keywords: [
+ 'notice',
+ 'banner',
+ 'announcement',
+ 'message',
+ 'disclaimer',
+ 'policy',
+ 'compliance',
+ 'legal',
+ ],
+ },
],
},
{
diff --git a/frontend/src/scenes/settings/organization/OrganizationMemberNotice.tsx b/frontend/src/scenes/settings/organization/OrganizationMemberNotice.tsx
new file mode 100644
index 000000000000..f9445695ca62
--- /dev/null
+++ b/frontend/src/scenes/settings/organization/OrganizationMemberNotice.tsx
@@ -0,0 +1,109 @@
+import { useActions, useValues } from 'kea'
+import { Form } from 'kea-forms'
+
+import { LemonBanner, LemonButton, LemonInput, LemonTextArea } from '@posthog/lemon-ui'
+
+import { useRestrictedArea } from 'lib/components/RestrictedArea'
+import { OrganizationMembershipLevel } from 'lib/constants'
+import { LemonField } from 'lib/lemon-ui/LemonField'
+
+import { OrganizationMemberNoticeMessage } from '~/layout/navigation/OrganizationMemberNoticeMessage'
+
+import { organizationMemberNoticeLogic } from './organizationMemberNoticeLogic'
+
+const MESSAGE_MAX_LENGTH = 1000
+const BUTTON_LABEL_MAX_LENGTH = 40
+
+export function OrganizationMemberNotice(): JSX.Element {
+ const {
+ draftMemberNotice,
+ savedMemberNotice,
+ hasUnsavedMemberNotice,
+ isMemberNoticeSubmitting,
+ currentOrganizationLoading,
+ } = useValues(organizationMemberNoticeLogic)
+ const { removeMemberNotice } = useActions(organizationMemberNoticeLogic)
+
+ const restrictionReason = useRestrictedArea({ minimumAccessLevel: OrganizationMembershipLevel.Admin })
+
+ return (
+ <Form
+ logic={organizationMemberNoticeLogic}
+ formKey="memberNotice"
+ enableFormOnSubmit
+ className="flex flex-col gap-3 max-w-160"
+ >
+ <LemonField
+ name="message"
+ label="Message"
+ help="You can use HTML for formatting and links, like <b>, <i>, <ul>, <br> and <a href>. Styles, scripts and other tags are removed."
+ >
+ <LemonTextArea
+ maxLength={MESSAGE_MAX_LENGTH}
+ disabled={!!restrictionReason}
+ placeholder='For example: This is how we collect your data. <a href="https://example.com/policy">Read the policy</a>'
+ data-attr="organization-member-notice-message"
+ />
+ </LemonField>
+ <div className="flex flex-wrap gap-3">
+ <LemonField name="label" label="Button label" showOptional className="flex-1 min-w-48">
+ <LemonInput
+ maxLength={BUTTON_LABEL_MAX_LENGTH}
+ disabled={!!restrictionReason}
+ placeholder="Read the policy"
+ data-attr="organization-member-notice-label"
+ />
+ </LemonField>
+ <LemonField name="url" label="Button link" showOptional className="flex-[2] min-w-60">
+ <LemonInput
+ type="url"
+ disabled={!!restrictionReason}
+ placeholder="https://"
+ data-attr="organization-member-notice-url"
+ />
+ </LemonField>
+ </div>
+ {draftMemberNotice && (
+ <LemonField.Pure label="Preview">
+ <LemonBanner
+ type="info"
+ action={
+ draftMemberNotice.action
+ ? {
+ to: draftMemberNotice.action.url,
+ targetBlank: true,
+ children: draftMemberNotice.action.label,
+ }
+ : undefined
+ }
+ >
+ <OrganizationMemberNoticeMessage html={draftMemberNotice.message} />
+ </LemonBanner>
+ </LemonField.Pure>
+ )}
+ <div className="flex flex-wrap items-center gap-2">
+ <LemonButton
+ type="primary"
+ htmlType="submit"
+ disabledReason={restrictionReason ?? (!hasUnsavedMemberNotice ? 'No changes to save' : undefined)}
+ loading={isMemberNoticeSubmitting}
+ data-attr="organization-member-notice-save"
+ >
+ Save notice
+ </LemonButton>
+ {savedMemberNotice && (
+ <LemonButton
+ type="secondary"
+ status="danger"
+ onClick={removeMemberNotice}
+ disabledReason={restrictionReason ?? undefined}
+ loading={currentOrganizationLoading && !isMemberNoticeSubmitting}
+ data-attr="organization-member-notice-remove"
+ >
+ Remove notice
+ </LemonButton>
+ )}
+ </div>
+ </Form>
+ )
+}
diff --git a/frontend/src/scenes/settings/organization/VerifiedDomains/verifiedDomainImpactLogic.ts b/frontend/src/scenes/settings/organization/VerifiedDomains/verifiedDomainImpactLogic.ts
index 646b262f0544..5c463065f104 100644
--- a/frontend/src/scenes/settings/organization/VerifiedDomains/verifiedDomainImpactLogic.ts
+++ b/frontend/src/scenes/settings/organization/VerifiedDomains/verifiedDomainImpactLogic.ts
@@ -47,6 +47,7 @@ export interface verifiedDomainImpactLogicActions {
| 'is_ai_data_processing_approved'
| 'is_ai_training_opted_in'
| 'logo_media_id'
+ | 'member_notice'
| 'members_can_create_projects'
| 'members_can_invite'
| 'members_can_see_org_members'
@@ -66,6 +67,7 @@ export interface verifiedDomainImpactLogicActions {
| 'is_ai_data_processing_approved'
| 'is_ai_training_opted_in'
| 'logo_media_id'
+ | 'member_notice'
| 'members_can_create_projects'
| 'members_can_invite'
| 'members_can_see_org_members'
diff --git a/frontend/src/scenes/settings/organization/organizationMemberNoticeLogic.test.ts b/frontend/src/scenes/settings/organization/organizationMemberNoticeLogic.test.ts
new file mode 100644
index 000000000000..b17ed0f08bbc
--- /dev/null
+++ b/frontend/src/scenes/settings/organization/organizationMemberNoticeLogic.test.ts
@@ -0,0 +1,62 @@
+import { MOCK_DEFAULT_ORGANIZATION } from 'lib/api.mock'
+
+import { expectLogic } from 'kea-test-utils'
+
+import { organizationLogic } from 'scenes/organizationLogic'
+
+import { initKeaTests } from '~/test/init'
+
+import { organizationMemberNoticeLogic } from './organizationMemberNoticeLogic'
+
+describe('organizationMemberNoticeLogic', () => {
+ beforeEach(() => {
+ initKeaTests()
+ })
+
+ it.each([
+ {
+ label: 'a link without a button label',
+ label_: '',
+ url: 'https://example.com',
+ errors: { label: 'Add a button label, or clear the link' },
+ },
+ {
+ label: 'a button label without a link',
+ label_: 'Open',
+ url: '',
+ errors: { url: 'Add a link, or clear the button label' },
+ },
+ {
+ label: 'a link that is not http or https',
+ label_: 'Open',
+ url: 'javascript:alert(1)',
+ errors: { url: 'The link must start with http:// or https://' },
+ },
+ ])('rejects $label', ({ label_, url, errors }) => {
+ const logic = organizationMemberNoticeLogic()
+ logic.mount()
+
+ logic.actions.setMemberNoticeValues({ message: 'Read the policy.', label: label_, url })
+
+ expect(logic.values.memberNoticeValidationErrors).toMatchObject(errors)
+ })
+
+ it('resets the draft to the saved notice when the organization reloads', async () => {
+ const logic = organizationMemberNoticeLogic()
+ logic.mount()
+ logic.actions.setMemberNoticeValues({ message: 'Unsaved draft' })
+
+ await expectLogic(logic, () => {
+ organizationLogic.actions.loadCurrentOrganizationSuccess({
+ ...MOCK_DEFAULT_ORGANIZATION,
+ member_notice: {
+ message: 'Saved <b>notice</b>',
+ action: { label: 'Open', url: 'https://example.com' },
+ },
+ })
+ }).toMatchValues({
+ memberNotice: { message: 'Saved <b>notice</b>', label: 'Open', url: 'https://example.com' },
+ hasUnsavedMemberNotice: false,
+ })
+ })
+})
diff --git a/frontend/src/scenes/settings/organization/organizationMemberNoticeLogic.ts b/frontend/src/scenes/settings/organization/organizationMemberNoticeLogic.ts
new file mode 100644
index 000000000000..9e101e41d8fb
--- /dev/null
+++ b/frontend/src/scenes/settings/organization/organizationMemberNoticeLogic.ts
@@ -0,0 +1,215 @@
+import { MakeLogicType, actions, afterMount, connect, kea, listeners, path, selectors } from 'kea'
+import { forms } from 'kea-forms'
+import type { DeepPartial, DeepPartialMap, FieldName, ValidationErrorType } from 'kea-forms'
+
+import { organizationLogic } from 'scenes/organizationLogic'
+
+import type { OrganizationMemberNoticeApi } from '~/generated/core/api.schemas'
+import { OrganizationType } from '~/types'
+
+export interface MemberNoticeForm {
+ message: string
+ label: string
+ url: string
+}
+
+function formFromNotice(notice: OrganizationMemberNoticeApi | null | undefined): MemberNoticeForm {
+ return {
+ message: notice?.message ?? '',
+ label: notice?.action?.label ?? '',
+ url: notice?.action?.url ?? '',
+ }
+}
+
+function noticeFromForm({ message, label, url }: MemberNoticeForm): OrganizationMemberNoticeApi | null {
+ if (!message.trim()) {
+ return null
+ }
+ return {
+ message: message.trim(),
+ action: label.trim() && url.trim() ? { label: label.trim(), url: url.trim() } : null,
+ }
+}
+
+// Generated by kea-typegen. Update if you're an agent, ignore if you're human.
+export interface organizationMemberNoticeLogicValues {
+ currentOrganization: OrganizationType | null // organizationLogic
+ currentOrganizationLoading: boolean // organizationLogic
+ draftMemberNotice: OrganizationMemberNoticeApi | null
+ hasUnsavedMemberNotice: boolean
+ isMemberNoticeSubmitting: boolean
+ isMemberNoticeValid: boolean
+ memberNotice: MemberNoticeForm
+ memberNoticeAllErrors: Record<string, any>
+ memberNoticeChanged: boolean
+ memberNoticeErrors: DeepPartialMap<MemberNoticeForm, ValidationErrorType>
+ memberNoticeHasErrors: boolean
+ memberNoticeManualErrors: Record<string, any>
+ memberNoticeTouched: boolean
+ memberNoticeTouches: Record<string, boolean>
+ memberNoticeValidationErrors: DeepPartialMap<MemberNoticeForm, ValidationErrorType>
+ savedMemberNotice: OrganizationMemberNoticeApi | null
+ showMemberNoticeErrors: boolean
+}
+
+// Generated by kea-typegen. Update if you're an agent, ignore if you're human.
+export interface organizationMemberNoticeLogicActions {
+ loadCurrentOrganizationSuccess: (
+ currentOrganization: OrganizationType | null,
+ payload?: any
+ ) => {
+ currentOrganization: OrganizationType | null
+ payload?: any
+ } // organizationLogic
+ updateOrganizationSuccess: (
+ currentOrganization: OrganizationType | null,
+ payload?:
+ | Partial<
+ Pick<
+ OrganizationType,
+ | 'allow_publicly_shared_resources'
+ | 'default_anonymize_ips'
+ | 'default_role_id'
+ | 'enforce_2fa'
+ | 'enforce_verified_domains'
+ | 'is_ai_data_processing_approved'
+ | 'is_ai_training_opted_in'
+ | 'logo_media_id'
+ | 'member_notice'
+ | 'members_can_create_projects'
+ | 'members_can_invite'
+ | 'members_can_see_org_members'
+ | 'members_can_use_personal_api_keys'
+ | 'name'
+ | 'read_only_mcp_access'
+ >
+ >
+ | undefined
+ ) => {
+ currentOrganization: OrganizationType | null
+ payload?: import('scenes/organizationLogic').OrganizationUpdatePayload
+ } // organizationLogic
+ removeMemberNotice: () => {
+ value: true
+ }
+ resetMemberNotice: (values?: MemberNoticeForm) => {
+ values?: MemberNoticeForm
+ }
+ setMemberNoticeManualErrors: (errors: Record<string, any>) => {
+ errors: Record<string, any>
+ }
+ setMemberNoticeValue: (
+ key: FieldName,
+ value: any
+ ) => {
+ name: FieldName
+ value: any
+ }
+ setMemberNoticeValues: (values: DeepPartial<MemberNoticeForm>) => {
+ values: DeepPartial<MemberNoticeForm>
+ }
+ submitMemberNotice: () => {
+ value: boolean
+ }
+ submitMemberNoticeFailure: (
+ error: Error,
+ errors: Record<string, any>
+ ) => {
+ error: Error
+ errors: Record<string, any>
+ }
+ submitMemberNoticeRequest: (memberNotice: MemberNoticeForm) => {
+ memberNotice: MemberNoticeForm
+ }
+ submitMemberNoticeSuccess: (memberNotice: MemberNoticeForm) => {
+ memberNotice: MemberNoticeForm
+ }
+ touchMemberNoticeField: (key: string) => {
+ key: string
+ }
+}
+
+// Generated by kea-typegen. Update if you're an agent, ignore if you're human.
+export interface organizationMemberNoticeLogicMeta {
+ __keaTypeGenInternalSelectorTypes: {
+ savedMemberNotice: (currentOrganization: OrganizationType | null) => OrganizationMemberNoticeApi | null
+ draftMemberNotice: (memberNotice: MemberNoticeForm) => OrganizationMemberNoticeApi | null
+ hasUnsavedMemberNotice: (
+ draftMemberNotice: OrganizationMemberNoticeApi | null,
+ savedMemberNotice: OrganizationMemberNoticeApi | null
+ ) => boolean
+ }
+}
+
+export type organizationMemberNoticeLogicType = MakeLogicType<
+ organizationMemberNoticeLogicValues,
+ organizationMemberNoticeLogicActions,
+ Record<string, any>,
+ organizationMemberNoticeLogicMeta
+>
+
+export const organizationMemberNoticeLogic = kea<organizationMemberNoticeLogicType>([
+ path(['scenes', 'settings', 'organization', 'organizationMemberNoticeLogic']),
+ connect(() => ({
+ values: [organizationLogic, ['currentOrganization', 'currentOrganizationLoading']],
+ actions: [organizationLogic, ['loadCurrentOrganizationSuccess', 'updateOrganizationSuccess']],
+ })),
+ actions({
+ removeMemberNotice: true,
+ }),
+ forms(({ values }) => ({
+ memberNotice: {
+ defaults: formFromNotice(null),
+ errors: ({ message, label, url }) => ({
+ message: !message.trim() ? 'Add a message' : undefined,
+ label: url.trim() && !label.trim() ? 'Add a button label, or clear the link' : undefined,
+ url:
+ label.trim() && !url.trim()
+ ? 'Add a link, or clear the button label'
+ : url.trim() && !/^https?:\/\//i.test(url.trim())
+ ? 'The link must start with http:// or https://'
+ : undefined,
+ }),
+ submit: async () => {
+ await organizationLogic.asyncActions.updateOrganization({ member_notice: values.draftMemberNotice })
+ },
+ },
+ })),
+ selectors({
+ savedMemberNotice: [
+ (s) => [s.currentOrganization],
+ (currentOrganization: OrganizationType | null): OrganizationMemberNoticeApi | null =>
+ currentOrganization?.member_notice ?? null,
+ ],
+ draftMemberNotice: [
+ (s) => [s.memberNotice],
+ (memberNotice: MemberNoticeForm): OrganizationMemberNoticeApi | null => noticeFromForm(memberNotice),
+ ],
+ hasUnsavedMemberNotice: [
+ (s) => [s.draftMemberNotice, s.savedMemberNotice],
+ (
+ draftMemberNotice: OrganizationMemberNoticeApi | null,
+ savedMemberNotice: OrganizationMemberNoticeApi | null
+ ): boolean => {
+ const draft = formFromNotice(draftMemberNotice)
+ const saved = formFromNotice(savedMemberNotice)
+ return draft.message !== saved.message || draft.label !== saved.label || draft.url !== saved.url
+ },
+ ],
+ }),
+ listeners(({ actions, values }) => ({
+ // The organization reloads after every save, so the draft follows the saved notice.
+ loadCurrentOrganizationSuccess: () => {
+ actions.resetMemberNotice(formFromNotice(values.savedMemberNotice))
+ },
+ updateOrganizationSuccess: () => {
+ actions.resetMemberNotice(formFromNotice(values.savedMemberNotice))
+ },
+ removeMemberNotice: () => {
+ organizationLogic.actions.updateOrganization({ member_notice: null })
+ },
+ })),
+ afterMount(({ actions, values }) => {
+ actions.resetMemberNotice(formFromNotice(values.savedMemberNotice))
+ }),
+])
diff --git a/frontend/src/scenes/settings/stories/SettingsOrganization.stories.tsx b/frontend/src/scenes/settings/stories/SettingsOrganization.stories.tsx
index 6fe313598ed6..ac03ce079d21 100644
--- a/frontend/src/scenes/settings/stories/SettingsOrganization.stories.tsx
+++ b/frontend/src/scenes/settings/stories/SettingsOrganization.stories.tsx
@@ -1,9 +1,9 @@
-import { MOCK_DEFAULT_TEAM } from 'lib/api.mock'
+import { MOCK_DEFAULT_ORGANIZATION, MOCK_DEFAULT_TEAM } from 'lib/api.mock'
import type { Meta, StoryObj } from '@storybook/react'
import { router } from 'kea-router'
-import { STORYBOOK_FEATURE_FLAGS } from 'lib/constants'
+import { FEATURE_FLAGS, STORYBOOK_FEATURE_FLAGS } from 'lib/constants'
import { App } from 'scenes/App'
import { urls } from 'scenes/urls'
@@ -172,6 +172,29 @@ export default meta
export const SettingsOrganizationDetails: Story = { args: { sectionId: 'organization-details' } }
+// A saved notice shows both the banner every member sees and the filled-in form with its preview.
+// The scene menu bar replaces the notice area, so it is off here to render the banner.
+export const SettingsOrganizationDetailsWithMemberNotice: Story = {
+ args: { sectionId: 'organization-details' },
+ parameters: {
+ featureFlags: STORYBOOK_FEATURE_FLAGS.filter((flag) => flag !== FEATURE_FLAGS.SCENE_MENU_BAR),
+ },
+ decorators: [
+ mswDecorator({
+ get: {
+ '/api/organizations/@current/': {
+ ...MOCK_DEFAULT_ORGANIZATION,
+ member_notice: {
+ message:
+ 'We collect <b>usage data</b> from this workspace to meet our compliance obligations. <a href="https://intranet.example.com/data-policy">Read our data policy</a> to learn how we use it.',
+ action: { label: 'Open privacy portal', url: 'https://privacy.example.com' },
+ },
+ },
+ },
+ }),
+ ],
+}
+
export const SettingsOrganizationMembers: Story = { args: { sectionId: 'organization-members' } }
export const SettingsOrganizationRoles: Story = { args: { sectionId: 'organization-roles' } }
diff --git a/frontend/src/scenes/settings/types.ts b/frontend/src/scenes/settings/types.ts
index 01a8d0e0628a..4d05b1daf0c3 100644
--- a/frontend/src/scenes/settings/types.ts
+++ b/frontend/src/scenes/settings/types.ts
@@ -240,6 +240,7 @@ export type SettingId =
| 'organization-id'
| 'organization-integrations-list'
| 'organization-ip-anonymization-default'
+ | 'organization-member-notice'
| 'organization-oauth-apps-list'
| 'organization-proxy'
| 'organization-roles'
diff --git a/frontend/src/types.ts b/frontend/src/types.ts
index 49e39a7c86fb..3abc7c3ca2ef 100644
--- a/frontend/src/types.ts
+++ b/frontend/src/types.ts
@@ -39,7 +39,11 @@ import { Params, Scene, SceneConfig, SceneTab } from 'scenes/sceneTypes'
import { SessionRecordingPlayerMode } from 'scenes/session-recordings/player/sessionRecordingPlayerLogic'
import { SurveyRatingScaleValue, WEB_SAFE_FONTS } from 'scenes/surveys/constants'
-import type { FlagEvaluationsModeEnumApi, OrganizationNotificationLockApi } from '~/generated/core/api.schemas'
+import type {
+ FlagEvaluationsModeEnumApi,
+ OrganizationMemberNoticeApi,
+ OrganizationNotificationLockApi,
+} from '~/generated/core/api.schemas'
import { RootAssistantMessage } from '~/queries/schema/schema-assistant-messages'
import type {
CoreEvent,
@@ -621,6 +625,7 @@ export interface OrganizationType extends OrganizationBasicType {
members_can_use_personal_api_keys: boolean
members_can_see_org_members?: boolean
read_only_mcp_access?: boolean
+ member_notice?: OrganizationMemberNoticeApi | null
allow_publicly_shared_resources: boolean
metadata?: OrganizationMetadata
member_count: number
diff --git a/posthog/api/organization.py b/posthog/api/organization.py
index e69664c74a4f..8ae5ed30a916 100644
--- a/posthog/api/organization.py
+++ b/posthog/api/organization.py
@@ -2,10 +2,12 @@ from collections.abc import Callable
from functools import cached_property
from typing import Any, Literal, Union, cast
+from django.core.validators import URLValidator
from django.db import transaction
from django.db.models import Model, QuerySet
from django.shortcuts import get_object_or_404
+import nh3
import posthoganalytics
from drf_spectacular.utils import extend_schema, extend_schema_field
from opentelemetry import trace
@@ -150,6 +152,63 @@ def _resolve_cached_user_id(serializer_context: dict[str, Any]) -> int | None:
return user.id
+class OrganizationMemberNoticeActionSerializer(serializers.Serializer):
+ label = serializers.CharField(max_length=40, help_text="Text on the button shown next to the notice.") # type: ignore[assignment]
+ url = serializers.URLField(
+ max_length=2000,
+ validators=[URLValidator(schemes=["http", "https"])],
+ help_text="Link the button opens in a new tab. Must use http or https.",
+ )
+
+
+# Keep in sync with MEMBER_NOTICE_SANITIZE_CONFIG in OrganizationMemberNoticeMessage.tsx.
+# Formatting and links only: no <link>, <style> or style attributes, since the notice renders inside the app shell.
+MEMBER_NOTICE_ALLOWED_TAGS = {"a", "b", "br", "code", "em", "i", "li", "ol", "p", "s", "span", "strong", "u", "ul"}
+MEMBER_NOTICE_ALLOWED_ATTRIBUTES = {"a": {"href", "title"}}
+MEMBER_NOTICE_MAX_LENGTH = 1000
+
+
+def sanitize_member_notice_html(message: str) -> str:
+ return nh3.clean(
+ message,
+ tags=MEMBER_NOTICE_ALLOWED_TAGS,
+ attributes=MEMBER_NOTICE_ALLOWED_ATTRIBUTES,
+ url_schemes={"http", "https", "mailto"},
+ set_tag_attribute_values={"a": {"target": "_blank"}},
+ ).strip()
+
+
+class OrganizationMemberNoticeSerializer(serializers.Serializer):
+ message = serializers.CharField(
+ max_length=MEMBER_NOTICE_MAX_LENGTH,
+ help_text="HTML shown in the banner. Supports formatting tags and links (<b>, <strong>, <i>, <em>, <u>, <s>, <code>, <br>, <p>, <span>, <ul>, <ol>, <li>, <a href>). Other tags, styles and scripts are removed.",
+ )
+ action = OrganizationMemberNoticeActionSerializer(
+ required=False,
+ allow_null=True,
+ help_text="Optional link button shown on the right of the banner.",
+ )
+
+ def validate_message(self, value: str) -> str:
+ sanitized = sanitize_member_notice_html(value)
+ if not nh3.clean(sanitized, tags=set()).strip():
+ raise serializers.ValidationError("The message has no text left after removing unsupported HTML.")
+ # Sanitizing adds target and rel to links. Check the stored length too, so a saved notice always fits on resave.
+ if len(sanitized) > MEMBER_NOTICE_MAX_LENGTH:
+ raise serializers.ValidationError(
+ f"The message is {len(sanitized) - MEMBER_NOTICE_MAX_LENGTH} characters too long once its links are formatted. Shorten it and save again."
+ )
+ return sanitized
+
+
+@extend_schema_field(OrganizationMemberNoticeSerializer)
+class OrganizationMemberNoticeField(serializers.JSONField):
+ def to_internal_value(self, data: Any) -> dict[str, Any]:
+ serializer = OrganizationMemberNoticeSerializer(data=data)
+ serializer.is_valid(raise_exception=True)
+ return serializer.validated_data
+
+
class OrganizationSerializer(
serializers.ModelSerializer, UserPermissionsSerializerMixin, UserAccessControlSerializerMixin
):
@@ -172,6 +231,11 @@ class OrganizationSerializer(
read_only=True,
help_text="Legacy field; member-join emails are controlled per user in account notification settings.",
)
+ member_notice = OrganizationMemberNoticeField(
+ required=False,
+ allow_null=True,
+ help_text="Notice shown in a banner to every member of the organization. Set to null to remove it.",
+ )
has_signed_baa = serializers.SerializerMethodField(
help_text="Whether the organization has a countersigned Business Associate Agreement on file. When true, AI training stays opted out and cannot be changed."
)
@@ -201,6 +265,7 @@ class OrganizationSerializer(
"members_can_see_org_members",
"allow_publicly_shared_resources",
"read_only_mcp_access",
+ "member_notice",
"member_count",
"is_ai_data_processing_approved",
"is_ai_training_opted_in",
diff --git a/posthog/api/test/__snapshots__/test_element.ambr b/posthog/api/test/__snapshots__/test_element.ambr
index 211952e4a75b..fffd546769ee 100644
--- a/posthog/api/test/__snapshots__/test_element.ambr
+++ b/posthog/api/test/__snapshots__/test_element.ambr
@@ -69,6 +69,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -323,6 +324,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -375,6 +377,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -452,6 +455,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
diff --git a/posthog/api/test/__snapshots__/test_preflight.ambr b/posthog/api/test/__snapshots__/test_preflight.ambr
index b65624fe6e66..b5e89f8df55a 100644
--- a/posthog/api/test/__snapshots__/test_preflight.ambr
+++ b/posthog/api/test/__snapshots__/test_preflight.ambr
@@ -69,6 +69,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
diff --git a/posthog/api/test/dashboards/__snapshots__/test_dashboard.ambr b/posthog/api/test/dashboards/__snapshots__/test_dashboard.ambr
index a7fbfd5e08f9..0c129af743d5 100644
--- a/posthog/api/test/dashboards/__snapshots__/test_dashboard.ambr
+++ b/posthog/api/test/dashboards/__snapshots__/test_dashboard.ambr
@@ -69,6 +69,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -259,6 +260,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -604,6 +606,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -769,6 +772,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -906,6 +910,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -959,6 +964,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -1036,6 +1042,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -1088,6 +1095,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -2568,6 +2576,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -2717,6 +2726,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -2861,6 +2871,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -3048,6 +3059,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -3358,6 +3370,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -3503,6 +3516,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -3640,6 +3654,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -3693,6 +3708,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -3770,6 +3786,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -3836,6 +3853,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -4063,6 +4081,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -4233,6 +4252,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -4395,6 +4415,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -4448,6 +4469,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -4525,6 +4547,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -4785,6 +4808,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -4984,6 +5008,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -5320,6 +5345,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -5457,6 +5483,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -5510,6 +5537,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -5587,6 +5615,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -5843,6 +5872,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -6058,6 +6088,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -6391,6 +6422,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -6528,6 +6560,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -6581,6 +6614,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -6658,6 +6692,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -8609,6 +8644,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -8710,6 +8746,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -8847,6 +8884,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -8900,6 +8938,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -8977,6 +9016,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -9070,6 +9110,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -9801,6 +9842,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -9938,6 +9980,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -9991,6 +10034,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -10068,6 +10112,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -10145,6 +10190,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -10381,6 +10427,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -10537,6 +10584,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -10749,6 +10797,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -11078,6 +11127,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -11215,6 +11265,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -11268,6 +11319,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -11345,6 +11397,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -11609,6 +11662,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -11907,6 +11961,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -12224,6 +12279,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -13274,6 +13330,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -13411,6 +13468,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -13464,6 +13522,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -13541,6 +13600,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -13760,6 +13820,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -14404,6 +14465,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -14505,6 +14567,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -14642,6 +14705,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -14695,6 +14759,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -14772,6 +14837,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -14865,6 +14931,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -15596,6 +15663,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -15733,6 +15801,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -15786,6 +15855,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -15863,6 +15933,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -15940,6 +16011,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
diff --git a/posthog/api/test/notebooks/__snapshots__/test_notebook.ambr b/posthog/api/test/notebooks/__snapshots__/test_notebook.ambr
index b8dac13e2219..17d1e8a04b9a 100644
--- a/posthog/api/test/notebooks/__snapshots__/test_notebook.ambr
+++ b/posthog/api/test/notebooks/__snapshots__/test_notebook.ambr
@@ -69,6 +69,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -160,6 +161,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -297,6 +299,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -365,6 +368,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -442,6 +446,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -837,6 +842,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -982,6 +988,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -1252,6 +1259,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -1389,6 +1397,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -1457,6 +1466,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -1534,6 +1544,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -1660,6 +1671,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -1737,6 +1749,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
diff --git a/posthog/api/test/test_organization.py b/posthog/api/test/test_organization.py
index d345b31b3d3f..694c7df7e835 100644
--- a/posthog/api/test/test_organization.py
+++ b/posthog/api/test/test_organization.py
@@ -7,6 +7,7 @@ from unittest.mock import ANY, patch
from django.core.cache import cache
from django.db import connection
+from django.test import SimpleTestCase
from django.test.utils import CaptureQueriesContext
from django.utils import timezone
@@ -14,7 +15,12 @@ from parameterized import parameterized
from rest_framework import status
from rest_framework.test import APIRequestFactory
-from posthog.api.organization import OrganizationSerializer, _fetch_member_count, _org_serializer_cache_version
+from posthog.api.organization import (
+ OrganizationMemberNoticeSerializer,
+ OrganizationSerializer,
+ _fetch_member_count,
+ _org_serializer_cache_version,
+)
from posthog.constants import AvailableFeature
from posthog.models import Organization, OrganizationMembership, Team, User
from posthog.models.oauth import OAuthAccessToken, OAuthApplication
@@ -179,6 +185,36 @@ class TestOrganizationAPI(APIBaseTest):
self.organization.refresh_from_db()
self.assertEqual(self.organization.name, "QWERTY")
+ def test_admin_can_set_and_clear_member_notice(self) -> None:
+ self.organization_membership.level = OrganizationMembership.Level.ADMIN
+ self.organization_membership.save()
+ notice = {
+ "message": "Read how we handle your data.",
+ "action": {"label": "Read the policy", "url": "https://intranet.example.com/policy"},
+ }
+
+ response = self.client.patch(
+ f"/api/organizations/{self.organization.id}", {"member_notice": notice}, format="json"
+ )
+ self.assertEqual(response.status_code, status.HTTP_200_OK)
+ self.assertEqual(response.json()["member_notice"], notice)
+
+ response = self.client.patch(
+ f"/api/organizations/{self.organization.id}",
+ {"member_notice": {"message": "Hi", "action": {"label": "Open", "url": "javascript:alert(1)"}}},
+ format="json",
+ )
+ self.assertEqual(response.status_code, status.HTTP_400_BAD_REQUEST)
+ self.organization.refresh_from_db()
+ self.assertEqual(self.organization.member_notice, notice)
+
+ response = self.client.patch(
+ f"/api/organizations/{self.organization.id}", {"member_notice": None}, format="json"
+ )
+ self.assertEqual(response.status_code, status.HTTP_200_OK)
+ self.organization.refresh_from_db()
+ self.assertIsNone(self.organization.member_notice)
+
def test_cannot_update_organization_if_not_owner_or_admin(self):
self.organization_membership.level = OrganizationMembership.Level.MEMBER
self.organization_membership.save()
@@ -1551,3 +1587,68 @@ class TestOrganizationDataFreshnessAPI(APIBaseTest):
assert response.status_code == status.HTTP_200_OK, response.content
mock_freshness.assert_called_once()
assert [team.id for team in mock_freshness.call_args.args[1]] == []
+
+
+class TestOrganizationMemberNoticeValidation(SimpleTestCase):
+ @parameterized.expand(
+ [
+ ("message_only", {"message": "Read the policy."}, True),
+ (
+ "with_action",
+ {"message": "Read the policy.", "action": {"label": "Open", "url": "http://intranet.local/policy"}},
+ True,
+ ),
+ ("null_action", {"message": "Read the policy.", "action": None}, True),
+ ("missing_message", {"action": {"label": "Open", "url": "https://example.com"}}, False),
+ ("blank_message", {"message": ""}, False),
+ ("message_too_long", {"message": "a" * 1001}, False),
+ ("only_unsupported_html", {"message": "<style>body{display:none}</style><script>x()</script>"}, False),
+ ("javascript_url", {"message": "Hi", "action": {"label": "Open", "url": "javascript:alert(1)"}}, False),
+ ("ftp_url", {"message": "Hi", "action": {"label": "Open", "url": "ftp://example.com/policy"}}, False),
+ ("missing_label", {"message": "Hi", "action": {"url": "https://example.com"}}, False),
+ ("not_an_object", "Read the policy.", False),
+ ]
+ )
+ def test_member_notice_validation(self, _name: str, notice: object, is_valid: bool) -> None:
+ serializer = OrganizationMemberNoticeSerializer(data=notice)
+ self.assertEqual(serializer.is_valid(), is_valid, serializer.errors)
+
+ @parameterized.expand(
+ [
+ (
+ "keeps_bold_and_links",
+ 'Read <b>how</b> we use data. <a href="https://intranet.example.com/policy">Policy</a>',
+ 'Read <b>how</b> we use data. <a href="https://intranet.example.com/policy" target="_blank" rel="noopener noreferrer">Policy</a>',
+ ),
+ (
+ "strips_link_tags_and_css",
+ '<link rel="stylesheet" href="https://example.com/x.css"><style>body{display:none}</style><span style="color:red" class="hidden">Hi</span>',
+ "<span>Hi</span>",
+ ),
+ (
+ "strips_scripts_handlers_and_javascript_urls",
+ '<a href="javascript:alert(1)" onclick="x()">Hi</a><script>alert(1)</script><img src="x" onerror="alert(1)">',
+ '<a target="_blank" rel="noopener noreferrer">Hi</a>',
+ ),
+ ]
+ )
+ def test_member_notice_message_is_sanitized(self, _name: str, message: str, expected: str) -> None:
+ serializer = OrganizationMemberNoticeSerializer(data={"message": message})
+ self.assertTrue(serializer.is_valid(), serializer.errors)
+ self.assertEqual(serializer.validated_data["message"], expected)
+
+ @parameterized.expand(
+ [
+ ("fits_after_sanitizing", 950, True),
+ ("too_long_after_sanitizing", 980, False),
+ ]
+ )
+ def test_member_notice_length_counts_sanitized_links(self, _name: str, raw_length: int, is_valid: bool) -> None:
+ link = '<a href="https://example.com">policy</a>'
+ message = "a" * (raw_length - len(link)) + link
+ serializer = OrganizationMemberNoticeSerializer(data={"message": message})
+ self.assertEqual(serializer.is_valid(), is_valid, serializer.errors)
+ if is_valid:
+ resaved = OrganizationMemberNoticeSerializer(data={"message": serializer.validated_data["message"]})
+ self.assertTrue(resaved.is_valid(), resaved.errors)
+ self.assertEqual(resaved.validated_data["message"], serializer.validated_data["message"])
diff --git a/posthog/management/migration_analysis/hot_table_acknowledged_migrations.txt b/posthog/management/migration_analysis/hot_table_acknowledged_migrations.txt
index 1e060b8057be..d5c30210dd66 100644
--- a/posthog/management/migration_analysis/hot_table_acknowledged_migrations.txt
+++ b/posthog/management/migration_analysis/hot_table_acknowledged_migrations.txt
@@ -25,3 +25,4 @@ posthog.1322_organization_read_only_mcp_access
posthog.1341_organization_uses_most_specific_access_resolution
posthog.1348_drop_organization_is_hipaa_column
posthog.1366_project_deletion_scheduled_at
+posthog.1392_organization_member_notice
diff --git a/posthog/migrations/1392_organization_member_notice.py b/posthog/migrations/1392_organization_member_notice.py
new file mode 100644
index 000000000000..a17308a0ed21
--- /dev/null
+++ b/posthog/migrations/1392_organization_member_notice.py
@@ -0,0 +1,21 @@
+# Generated by Django 5.2.17 on 2026-10-02 23:00
+
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+ dependencies = [
+ ("posthog", "1391_organization_provisioning"),
+ ]
+
+ operations = [
+ migrations.AddField(
+ model_name="organization",
+ name="member_notice",
+ field=models.JSONField(
+ blank=True,
+ help_text="Notice shown in a banner to every member of the organization, with an optional link button.",
+ null=True,
+ ),
+ ),
+ ]
diff --git a/posthog/migrations/max_migration.txt b/posthog/migrations/max_migration.txt
index 8c4dc7162fe7..b283947272ca 100644
--- a/posthog/migrations/max_migration.txt
+++ b/posthog/migrations/max_migration.txt
@@ -1 +1 @@
-1391_organization_provisioning
+1392_organization_member_notice
diff --git a/posthog/models/organization.py b/posthog/models/organization.py
index 1b0b530fb0cc..41be590a99f0 100644
--- a/posthog/models/organization.py
+++ b/posthog/models/organization.py
@@ -292,6 +292,11 @@ class Organization(ModelActivityMixin, UUIDTModel):
help_text="When True, access controls resolve with the most specific matching rule. When False, the legacy resolution order applies.",
)
allow_publicly_shared_resources = models.BooleanField(default=True)
+ member_notice = models.JSONField(
+ null=True,
+ blank=True,
+ help_text="Notice shown in a banner to every member of the organization, with an optional link button.",
+ )
read_only_mcp_access = models.BooleanField(
default=False,
null=True,
diff --git a/posthog/session_recordings/test/__snapshots__/test_session_recording_playlist.ambr b/posthog/session_recordings/test/__snapshots__/test_session_recording_playlist.ambr
index e0ca035f12de..06c5798e37e5 100644
--- a/posthog/session_recordings/test/__snapshots__/test_session_recording_playlist.ambr
+++ b/posthog/session_recordings/test/__snapshots__/test_session_recording_playlist.ambr
@@ -372,6 +372,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -509,6 +510,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -562,6 +564,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -639,6 +642,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -1329,6 +1333,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -1466,6 +1471,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -1519,6 +1525,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -1589,6 +1596,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -1641,6 +1649,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -2095,6 +2104,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -2148,6 +2158,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -2225,6 +2236,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
diff --git a/posthog/session_recordings/test/__snapshots__/test_session_recordings.ambr b/posthog/session_recordings/test/__snapshots__/test_session_recordings.ambr
index 3470c5a0f134..a08e700ae3ac 100644
--- a/posthog/session_recordings/test/__snapshots__/test_session_recordings.ambr
+++ b/posthog/session_recordings/test/__snapshots__/test_session_recordings.ambr
@@ -77,6 +77,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -376,6 +377,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -429,6 +431,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -506,6 +509,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -567,6 +571,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -737,6 +742,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -1033,6 +1039,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -1086,6 +1093,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -1163,6 +1171,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -1224,6 +1233,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -1394,6 +1404,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -1687,6 +1698,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -1740,6 +1752,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -1817,6 +1830,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -1878,6 +1892,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -2048,6 +2063,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -2341,6 +2357,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -2394,6 +2411,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -2471,6 +2489,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -2532,6 +2551,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -2702,6 +2722,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -2998,6 +3019,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -3051,6 +3073,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -3128,6 +3151,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -3189,6 +3213,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -3359,6 +3384,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -3655,6 +3681,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -3708,6 +3735,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -3785,6 +3813,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -3846,6 +3875,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -4016,6 +4046,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -4312,6 +4343,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -4365,6 +4397,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -4442,6 +4475,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -4503,6 +4537,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -4673,6 +4708,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -4745,6 +4781,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -5092,6 +5129,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -5229,6 +5267,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -5282,6 +5321,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -5359,6 +5399,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -5420,6 +5461,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -5784,6 +5826,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -5921,6 +5964,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -5974,6 +6018,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -6097,6 +6142,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -6158,6 +6204,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -6428,6 +6475,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -6537,6 +6585,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -6674,6 +6723,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -6727,6 +6777,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -6804,6 +6855,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -6865,6 +6917,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -7068,6 +7121,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -7340,6 +7394,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -7477,6 +7532,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -7530,6 +7586,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -7584,6 +7641,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -7661,6 +7719,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -7722,6 +7781,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -8046,6 +8106,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -8192,6 +8253,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -8245,6 +8307,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -8565,6 +8628,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -8612,6 +8676,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -8749,6 +8814,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -8802,6 +8868,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -8879,6 +8946,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -8940,6 +9008,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -9279,6 +9348,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -9416,6 +9486,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -9469,6 +9540,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -9546,6 +9618,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -9598,6 +9671,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -9659,6 +9733,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -9987,6 +10062,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -10124,6 +10200,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -10177,6 +10254,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -10254,6 +10332,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -10315,6 +10394,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -10433,6 +10513,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -10691,6 +10772,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -10828,6 +10910,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -10945,6 +11028,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -11022,6 +11106,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -11083,6 +11168,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -11446,6 +11532,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -11583,6 +11670,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -11636,6 +11724,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -11713,6 +11802,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
diff --git a/posthog/tasks/test/__snapshots__/test_process_scheduled_changes.ambr b/posthog/tasks/test/__snapshots__/test_process_scheduled_changes.ambr
index f233c7f0eff7..7e5056def0db 100644
--- a/posthog/tasks/test/__snapshots__/test_process_scheduled_changes.ambr
+++ b/posthog/tasks/test/__snapshots__/test_process_scheduled_changes.ambr
@@ -492,6 +492,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -772,6 +773,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -1419,6 +1421,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -1795,6 +1798,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
diff --git a/products/actions/backend/api/test/__snapshots__/test_action.ambr b/products/actions/backend/api/test/__snapshots__/test_action.ambr
index cd1a33da88e0..b64aedeb2a63 100644
--- a/products/actions/backend/api/test/__snapshots__/test_action.ambr
+++ b/products/actions/backend/api/test/__snapshots__/test_action.ambr
@@ -69,6 +69,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -206,6 +207,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -274,6 +276,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -351,6 +354,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -546,6 +550,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -683,6 +688,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -821,6 +827,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -889,6 +896,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -966,6 +974,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -1137,6 +1146,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -1214,6 +1224,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -1388,6 +1399,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
diff --git a/products/annotations/backend/api/test/__snapshots__/test_annotation.ambr b/products/annotations/backend/api/test/__snapshots__/test_annotation.ambr
index b4c8a730f704..aeb3bd1d6a16 100644
--- a/products/annotations/backend/api/test/__snapshots__/test_annotation.ambr
+++ b/products/annotations/backend/api/test/__snapshots__/test_annotation.ambr
@@ -69,6 +69,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -206,6 +207,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -274,6 +276,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -351,6 +354,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -588,6 +592,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -725,6 +730,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -863,6 +869,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -931,6 +938,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -1008,6 +1016,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -1245,6 +1254,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -1382,6 +1392,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -1465,6 +1476,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -1542,6 +1554,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -1740,6 +1753,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -1817,6 +1831,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -1926,6 +1941,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
diff --git a/products/cdp/backend/api/test/__snapshots__/test_plugin.ambr b/products/cdp/backend/api/test/__snapshots__/test_plugin.ambr
index 4d36792ab87b..f84fde71b5f5 100644
--- a/products/cdp/backend/api/test/__snapshots__/test_plugin.ambr
+++ b/products/cdp/backend/api/test/__snapshots__/test_plugin.ambr
@@ -69,6 +69,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -121,6 +122,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -168,6 +170,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -220,6 +223,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -306,6 +310,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -406,6 +411,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -451,6 +457,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -503,6 +510,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -550,6 +558,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -595,6 +604,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -647,6 +657,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -733,6 +744,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -833,6 +845,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -878,6 +891,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -930,6 +944,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -977,6 +992,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -1029,6 +1045,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -1097,6 +1114,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -1169,6 +1187,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -1223,6 +1242,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -1275,6 +1295,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -1382,6 +1403,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -1427,6 +1449,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
diff --git a/products/feature_flags/backend/api/test/__snapshots__/test_feature_flag.ambr b/products/feature_flags/backend/api/test/__snapshots__/test_feature_flag.ambr
index f1debe6e8048..f86e6715430c 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
@@ -741,6 +741,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -1179,6 +1180,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -1808,6 +1810,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -1885,6 +1888,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
diff --git a/products/feature_flags/backend/api/test/__snapshots__/test_organization_feature_flag.ambr b/products/feature_flags/backend/api/test/__snapshots__/test_organization_feature_flag.ambr
index a2239e678b14..c709799c1226 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
@@ -69,6 +69,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -190,6 +191,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -408,6 +410,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -453,6 +456,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -675,6 +679,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -764,6 +769,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -848,6 +854,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -902,6 +909,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -993,6 +1001,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -1190,6 +1199,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -1416,6 +1426,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -1468,6 +1479,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -1543,6 +1555,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -1752,6 +1765,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -1804,6 +1818,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -1858,6 +1873,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -2028,6 +2044,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
diff --git a/products/platform_features/frontend/generated/api.schemas.ts b/products/platform_features/frontend/generated/api.schemas.ts
index f9c10bce96d4..9d2991b79f0b 100644
--- a/products/platform_features/frontend/generated/api.schemas.ts
+++ b/products/platform_features/frontend/generated/api.schemas.ts
@@ -37,6 +37,29 @@ export const OrganizationPluginsAccessLevelEnumApi = {
Number9: 9,
} as const
+export interface OrganizationMemberNoticeActionApi {
+ /**
+ * Text on the button shown next to the notice.
+ * @maxLength 40
+ */
+ label: string
+ /**
+ * Link the button opens in a new tab. Must use http or https.
+ * @maxLength 2000
+ */
+ url: string
+}
+
+export interface OrganizationMemberNoticeApi {
+ /**
+ * HTML shown in the banner. Supports formatting tags and links (<b>, <strong>, <i>, <em>, <u>, <s>, <code>, <br>, <p>, <span>, <ul>, <ol>, <li>, <a href>). Other tags, styles and scripts are removed.
+ * @maxLength 1000
+ */
+ message: string
+ /** Optional link button shown on the right of the banner. */
+ action?: OrganizationMemberNoticeActionApi | null
+}
+
export type OrganizationApiTeamsItem = { [key: string]: unknown }
export type OrganizationApiProjectsItem = { [key: string]: unknown }
@@ -87,6 +110,8 @@ export interface OrganizationApi {
* @nullable
*/
read_only_mcp_access?: boolean | null
+ /** Notice shown in a banner to every member of the organization. Set to null to remove it. */
+ member_notice?: OrganizationMemberNoticeApi | null
readonly member_count: number
/** @nullable */
is_ai_data_processing_approved?: boolean | null
@@ -195,6 +220,8 @@ export interface PatchedOrganizationApi {
* @nullable
*/
read_only_mcp_access?: boolean | null
+ /** Notice shown in a banner to every member of the organization. Set to null to remove it. */
+ member_notice?: OrganizationMemberNoticeApi | null
readonly member_count?: number
/** @nullable */
is_ai_data_processing_approved?: boolean | null
diff --git a/products/platform_features/frontend/generated/api.zod.ts b/products/platform_features/frontend/generated/api.zod.ts
index 1ef0458af5ce..19e50b2ef960 100644
--- a/products/platform_features/frontend/generated/api.zod.ts
+++ b/products/platform_features/frontend/generated/api.zod.ts
@@ -11,6 +11,12 @@ import * as zod from 'zod'
export const createBodyNameMax = 64
+export const createBodyMemberNoticeOneMessageMax = 1000
+
+export const createBodyMemberNoticeOneActionOneLabelMax = 40
+
+export const createBodyMemberNoticeOneActionOneUrlMax = 2000
+
export const CreateBody = /* @__PURE__ */ zod.object({
name: zod.string().max(createBodyNameMax),
logo_media_id: zod.uuid().nullish(),
@@ -42,6 +48,36 @@ export const CreateBody = /* @__PURE__ */ zod.object({
.describe(
"When True, requests through the PostHog MCP server can read but not change this organization's data."
),
+ member_notice: zod
+ .union([
+ zod.object({
+ message: zod
+ .string()
+ .max(createBodyMemberNoticeOneMessageMax)
+ .describe(
+ 'HTML shown in the banner. Supports formatting tags and links (<b>, <strong>, <i>, <em>, <u>, <s>, <code>, <br>, <p>, <span>, <ul>, <ol>, <li>, <a href>). Other tags, styles and scripts are removed.'
+ ),
+ action: zod
+ .union([
+ zod.object({
+ label: zod
+ .string()
+ .max(createBodyMemberNoticeOneActionOneLabelMax)
+ .describe('Text on the button shown next to the notice.'),
+ url: zod
+ .url()
+ .max(createBodyMemberNoticeOneActionOneUrlMax)
+ .describe('Link the button opens in a new tab. Must use http or https.'),
+ }),
+ zod.null(),
+ ])
+ .optional()
+ .describe('Optional link button shown on the right of the banner.'),
+ }),
+ zod.null(),
+ ])
+ .optional()
+ .describe('Notice shown in a banner to every member of the organization. Set to null to remove it.'),
is_ai_data_processing_approved: zod.boolean().nullish(),
is_ai_training_opted_in: zod
.boolean()
@@ -59,6 +95,12 @@ export const CreateBody = /* @__PURE__ */ zod.object({
export const updateBodyNameMax = 64
+export const updateBodyMemberNoticeOneMessageMax = 1000
+
+export const updateBodyMemberNoticeOneActionOneLabelMax = 40
+
+export const updateBodyMemberNoticeOneActionOneUrlMax = 2000
+
export const UpdateBody = /* @__PURE__ */ zod.object({
name: zod.string().max(updateBodyNameMax),
logo_media_id: zod.uuid().nullish(),
@@ -90,6 +132,36 @@ export const UpdateBody = /* @__PURE__ */ zod.object({
.describe(
"When True, requests through the PostHog MCP server can read but not change this organization's data."
),
+ member_notice: zod
+ .union([
+ zod.object({
+ message: zod
+ .string()
+ .max(updateBodyMemberNoticeOneMessageMax)
+ .describe(
+ 'HTML shown in the banner. Supports formatting tags and links (<b>, <strong>, <i>, <em>, <u>, <s>, <code>, <br>, <p>, <span>, <ul>, <ol>, <li>, <a href>). Other tags, styles and scripts are removed.'
+ ),
+ action: zod
+ .union([
+ zod.object({
+ label: zod
+ .string()
+ .max(updateBodyMemberNoticeOneActionOneLabelMax)
+ .describe('Text on the button shown next to the notice.'),
+ url: zod
+ .url()
+ .max(updateBodyMemberNoticeOneActionOneUrlMax)
+ .describe('Link the button opens in a new tab. Must use http or https.'),
+ }),
+ zod.null(),
+ ])
+ .optional()
+ .describe('Optional link button shown on the right of the banner.'),
+ }),
+ zod.null(),
+ ])
+ .optional()
+ .describe('Notice shown in a banner to every member of the organization. Set to null to remove it.'),
is_ai_data_processing_approved: zod.boolean().nullish(),
is_ai_training_opted_in: zod
.boolean()
@@ -107,6 +179,12 @@ export const UpdateBody = /* @__PURE__ */ zod.object({
export const partialUpdateBodyNameMax = 64
+export const partialUpdateBodyMemberNoticeOneMessageMax = 1000
+
+export const partialUpdateBodyMemberNoticeOneActionOneLabelMax = 40
+
+export const partialUpdateBodyMemberNoticeOneActionOneUrlMax = 2000
+
export const PartialUpdateBody = /* @__PURE__ */ zod.object({
name: zod.string().max(partialUpdateBodyNameMax).optional(),
logo_media_id: zod.uuid().nullish(),
@@ -138,6 +216,36 @@ export const PartialUpdateBody = /* @__PURE__ */ zod.object({
.describe(
"When True, requests through the PostHog MCP server can read but not change this organization's data."
),
+ member_notice: zod
+ .union([
+ zod.object({
+ message: zod
+ .string()
+ .max(partialUpdateBodyMemberNoticeOneMessageMax)
+ .describe(
+ 'HTML shown in the banner. Supports formatting tags and links (<b>, <strong>, <i>, <em>, <u>, <s>, <code>, <br>, <p>, <span>, <ul>, <ol>, <li>, <a href>). Other tags, styles and scripts are removed.'
+ ),
+ action: zod
+ .union([
+ zod.object({
+ label: zod
+ .string()
+ .max(partialUpdateBodyMemberNoticeOneActionOneLabelMax)
+ .describe('Text on the button shown next to the notice.'),
+ url: zod
+ .url()
+ .max(partialUpdateBodyMemberNoticeOneActionOneUrlMax)
+ .describe('Link the button opens in a new tab. Must use http or https.'),
+ }),
+ zod.null(),
+ ])
+ .optional()
+ .describe('Optional link button shown on the right of the banner.'),
+ }),
+ zod.null(),
+ ])
+ .optional()
+ .describe('Notice shown in a banner to every member of the organization. Set to null to remove it.'),
is_ai_data_processing_approved: zod.boolean().nullish(),
is_ai_training_opted_in: zod
.boolean()
diff --git a/products/product_analytics/backend/tests/api/__snapshots__/test_insight.ambr b/products/product_analytics/backend/tests/api/__snapshots__/test_insight.ambr
index d7d03820e076..76c5f2796d8e 100644
--- a/products/product_analytics/backend/tests/api/__snapshots__/test_insight.ambr
+++ b/products/product_analytics/backend/tests/api/__snapshots__/test_insight.ambr
@@ -69,6 +69,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -213,6 +214,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -610,6 +612,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -718,6 +721,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -855,6 +859,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -908,6 +913,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -985,6 +991,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -1233,6 +1240,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
@@ -1366,6 +1374,7 @@
"posthog_organization"."members_can_see_org_members",
"posthog_organization"."uses_most_specific_access_resolution",
"posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
"posthog_organization"."read_only_mcp_access",
"posthog_organization"."default_role_id",
"posthog_organization"."plugins_access_level",
diff --git a/services/mcp/src/api/generated.ts b/services/mcp/src/api/generated.ts
index 48f24959d766..528dfd929d06 100644
--- a/services/mcp/src/api/generated.ts
+++ b/services/mcp/src/api/generated.ts
@@ -65508,6 +65508,29 @@ export namespace Schemas {
Number9: 9,
} as const;
+ export interface OrganizationMemberNoticeAction {
+ /**
+ * Text on the button shown next to the notice.
+ * @maxLength 40
+ */
+ label: string;
+ /**
+ * Link the button opens in a new tab. Must use http or https.
+ * @maxLength 2000
+ */
+ url: string;
+ }
+
+ export interface OrganizationMemberNotice {
+ /**
+ * HTML shown in the banner. Supports formatting tags and links (<b>, <strong>, <i>, <em>, <u>, <s>, <code>, <br>, <p>, <span>, <ul>, <ol>, <li>, <a href>). Other tags, styles and scripts are removed.
+ * @maxLength 1000
+ */
+ message: string;
+ /** Optional link button shown on the right of the banner. */
+ action?: OrganizationMemberNoticeAction | null;
+ }
+
export interface Organization {
readonly id: string;
/** @maxLength 64 */
@@ -65552,6 +65575,8 @@ export namespace Schemas {
* @nullable
*/
read_only_mcp_access?: boolean | null;
+ /** Notice shown in a banner to every member of the organization. Set to null to remove it. */
+ member_notice?: OrganizationMemberNotice | null;
readonly member_count: number;
/** @nullable */
is_ai_data_processing_approved?: boolean | null;
@@ -78489,6 +78514,8 @@ export namespace Schemas {
* @nullable
*/
read_only_mcp_access?: boolean | null;
+ /** Notice shown in a banner to every member of the organization. Set to null to remove it. */
+ member_notice?: OrganizationMemberNotice | null;
readonly member_count?: number;
/** @nullable */
is_ai_data_processing_approved?: boolean | null;
diff --git a/services/mcp/src/generated/platform_features/api.ts b/services/mcp/src/generated/platform_features/api.ts
index 19811e82d6ac..838c649caa30 100644
--- a/services/mcp/src/generated/platform_features/api.ts
+++ b/services/mcp/src/generated/platform_features/api.ts
@@ -23,6 +23,12 @@ export const PartialUpdateParams = () => zod.object({
export const partialUpdateBodyNameMax = 64
+export const partialUpdateBodyMemberNoticeOneMessageMax = 1000
+
+export const partialUpdateBodyMemberNoticeOneActionOneLabelMax = 40
+
+export const partialUpdateBodyMemberNoticeOneActionOneUrlMax = 2000
+
export const PartialUpdateBody = () => zod.object({
name: zod.string().max(partialUpdateBodyNameMax).optional(),
logo_media_id: zod.string().nullish(),
@@ -54,6 +60,36 @@ export const PartialUpdateBody = () => zod.object({
.describe(
"When True, requests through the PostHog MCP server can read but not change this organization's data."
),
+ member_notice: zod
+ .union([
+ zod.object({
+ message: zod
+ .string()
+ .max(partialUpdateBodyMemberNoticeOneMessageMax)
+ .describe(
+ 'HTML shown in the banner. Supports formatting tags and links (<b>, <strong>, <i>, <em>, <u>, <s>, <code>, <br>, <p>, <span>, <ul>, <ol>, <li>, <a href>). Other tags, styles and scripts are removed.'
+ ),
+ action: zod
+ .union([
+ zod.object({
+ label: zod
+ .string()
+ .max(partialUpdateBodyMemberNoticeOneActionOneLabelMax)
+ .describe('Text on the button shown next to the notice.'),
+ url: zod
+ .url()
+ .max(partialUpdateBodyMemberNoticeOneActionOneUrlMax)
+ .describe('Link the button opens in a new tab. Must use http or https.'),
+ }),
+ zod.null(),
+ ])
+ .optional()
+ .describe('Optional link button shown on the right of the banner.'),
+ }),
+ zod.null(),
+ ])
+ .optional()
+ .describe('Notice shown in a banner to every member of the organization. Set to null to remove it.'),
is_ai_data_processing_approved: zod.boolean().nullish(),
is_ai_training_opted_in: zod
.boolean()
diff --git a/services/mcp/src/tools/generated/platform_features.ts b/services/mcp/src/tools/generated/platform_features.ts
index 4f84cb0933ac..8cf34e45494e 100644
--- a/services/mcp/src/tools/generated/platform_features.ts
+++ b/services/mcp/src/tools/generated/platform_features.ts
@@ -627,6 +627,7 @@ const OrganizationEnforce2faSchema = () => {
members_can_see_org_members: true,
allow_publicly_shared_resources: true,
read_only_mcp_access: true,
+ member_notice: true,
is_ai_data_processing_approved: true,
is_ai_training_opted_in: true,
default_anonymize_ips: true,