SCIM email update reverts to old email on next SSO sign-in

Last updated: December 4, 2026

Symptom

You update a user's email address at the identity provider (Saviynt, Okta, Entra ID, etc.) and push it through SCIM as a normal profile update. The LangSmith account, org/workspace memberships, and history are preserved, but at the user's next SSO sign-in LangSmith still uses the old email for login and verification instead of the new one.

If the user also has a linked password or Google sign-in method alongside SSO, the SCIM provider gets an error on the email update instead of a silent revert.

Separately, historical items (traces, audit log entries) that only reference the user by their old email are not rewritten. They may display as "Unknown User" even though the account and its access are otherwise intact.

Cause

SCIM matches the existing user resource on externalId, so an in-place email change updates that same user resource. It does not create a new LangSmith user or reset memberships.

SSO sign-in identity resolution works differently: it matches on the SAML NameID, not email. The account's stored/display email used for login and verification isn't updated by the SCIM write alone. Once a user has signed in through SSO, or has a linked password/Google login, the stored email becomes sticky, and the next SSO sign-in or verification flow falls back to the old, stale email rather than the one just written via SCIM.

Resolution

Whether an in-place SCIM email update takes effect depends on whether the user has already signed in via SSO:

  • User has not yet signed in via SSO and has no linked password/Google login: update the existing SCIM resource in place, keeping NameID and externalId unchanged. This is safe and preserves the LangSmith account, org/workspace roles, and history.

  • User has already signed in via SSO, or has a linked password/Google login: an in-place SCIM update does not stick. LangSmith keeps using the old email at the next sign-in or verification, and for linked-login users the provisioning system gets an error on the update. Update these users manually on the LangSmith side when their email changes.

Before rolling out bulk email-change automation, pilot it on one already-provisioned, non-admin test user with an unused destination address. Confirm a fresh SSO sign-in reaches the same LangSmith account with the new email and unchanged roles, and confirm the next provisioning sync targets the same SCIM id.

Don't delete and recreate the user to work around a mismatch. If the pilot hits a linked-login error, or the current NameID is derived from the email, pause and resolve the mapping or error before running any bulk change.

Historical records that reference only the old email (traces, audit entries) are not rewritten by the email change and may continue to show as "Unknown User" even though the account and its access are preserved.

References