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.

fix(settings): re-enable email field when SSO is enforced (#62684)

Alex Liderd29ddd85304f
diff --git a/frontend/src/scenes/settings/user/UserDetails.tsx b/frontend/src/scenes/settings/user/UserDetails.tsx
index d2f4751a3343..0caab0e209d6 100644
--- a/frontend/src/scenes/settings/user/UserDetails.tsx
+++ b/frontend/src/scenes/settings/user/UserDetails.tsx
@@ -10,8 +10,6 @@ export function UserDetails(): JSX.Element {
const { userLoading, isUserDetailsSubmitting, userDetailsChanged, user } = useValues(userLogic)
const { cancelEmailChangeRequest } = useActions(userLogic)
- const ssoEnforced = !!user?.has_sso_enforcement
-
return (
<Form
logic={userLogic}
@@ -45,14 +43,9 @@ export function UserDetails(): JSX.Element {
className="ph-ignore-input"
data-attr="settings-update-email"
placeholder="[email protected]"
- disabled={userLoading || ssoEnforced}
+ disabled={userLoading}
/>
</LemonField>
- {ssoEnforced && (
- <div className="text-secondary text-xs">
- You can't change your email because your organization enforces SSO on your email's domain.
- </div>
- )}
{user?.pending_email && (
<div className="flex flex-row gap-2">
<div className="text-danger text-xs font-medium mt-1.25">