# SSO and changing email addresses upstream

**URL:** <https://meta.discourse.org/t/sso-and-changing-email-addresses-upstream/96116>\
**Category:** Product Support\
**Created:** [31 באוגוסט,‏ 2018,‏ 8:21pm UTC](https://meta.discourse.org/t/sso-and-changing-email-addresses-upstream/96116 "2018-08-31T20:21:15Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)\
**Post date:** [31 באוגוסט,‏ 2018,‏ 8:32pm UTC](https://meta.discourse.org/t/sso-and-changing-email-addresses-upstream/96116/2 "2018-08-31T20:32:24Z")

</div>

> [@sudoman](#):
>
> Users of Discourse and SSO apparently must be configured to not allow users to change their email address. This probably also means that if a user or admin changes their email address on an authentication server, they will get a new account the next time they log in.

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.

---

_[View the full topic](https://meta.discourse.org/t/sso-and-changing-email-addresses-upstream/96116)._
