# 单点登录和电子邮件更改

**URL:** https://meta.discourse.org/t/single-signon-and-email-change/63429
**Category:** Support
**Created:** [2017年五月26日 09:42 UTC](https://meta.discourse.org/t/single-signon-and-email-change/63429 "2017-05-26T09:42:16Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Massimo\_Redaelli](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/massimo_redaelli/32/120795_2.png) [@Massimo\_Redaelli](https://meta.discourse.org/u/Massimo_Redaelli)
#### Post date: [2017年五月26日 09:42 UTC](https://meta.discourse.org/t/single-signon-and-email-change/63429/1 "2017-05-26T09:42:16Z")

</div>

We have set up a Discourse installation with single signon though Drupal, and `sso overrides email` active.

A user logged in the first time with his Drupal account, which was created with the correct email.  
He then changed the his email in Drupal, and now would like to see the change reflected in Discourse.  
Is that possible?

---

<div class="post-metadata">

### Author: ![mpalmer](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mpalmer/32/45740_2.png) [@mpalmer](https://meta.discourse.org/u/mpalmer)
#### Post date: [2017年五月26日 10:01 UTC](https://meta.discourse.org/t/single-signon-and-email-change/63429/2 "2017-05-26T10:01:32Z")

</div>

Once the user logs in to Discourse again, the e-mail address will be re-synced. As the help text for `sso overrides email` says:

> Overrides local email with external site email from SSO payload **on every login**

(Emphasis added)

If you want to see the change immediately reflected in Discourse, you’ll need to have your Drupal site make an API call into Discourse to update the user’s details (which, now I think about it, might not work with `sso overrides email`… you’ll need to test that). This is necessary because Discourse isn’t constantly pinging the SSO provider saying “hey, what’s the e-mail for this user _now_? How about _now_? Aaaaaand… _now_?”, so the only time Discourse gets told that the e-mail address has changed (absent the sort of API call I suggested above) is when the user logs in and the SSO provider gives Discourse the bundle of user data to use.

---

<div class="post-metadata">

### Author: ![Massimo\_Redaelli](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/massimo_redaelli/32/120795_2.png) [@Massimo\_Redaelli](https://meta.discourse.org/u/Massimo_Redaelli)
#### Post date: [2017年五月26日 10:21 UTC](https://meta.discourse.org/t/single-signon-and-email-change/63429/3 "2017-05-26T10:21:28Z")

</div>

The Italian translation of that help text seems outdated 🙂Thanks.  
I think he already tried though. I’ll check and bother you again if it doesn’t fix it.

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [2024年六月8日 12:44 UTC](https://meta.discourse.org/t/single-signon-and-email-change/63429/4 "2024-06-08T12:44:40Z")

</div>

此主题在 2570 天后自动关闭。不再允许回复。
