SSO and changing email addresses upstream

Users can change their email address on the authentication server and log into their existing Discourse account. When a user first logs in with SSO, a SingleSignOnRecord is created that associates the user’s Discourse ID with the external_id that you supply in the SSO payload. For users who have a SingleSignOnRecord, the external_id is used for authentication.

If you would like email addresses on Discourse to be synced with email addresses from your authentication site, you should enable the sso overrides email Site Setting. When this setting is enabled, the Discourse user’s email address will be updated on each login based on the email address supplied in the SSO payload.