# 允许管理员轻松更改电子邮件地址

**URL:** <https://meta.discourse.org/t/allow-admins-to-change-email-addresses-easily/33753>\
**Category:** Feature\
**Created:** [2015年九月25日 16:44 UTC](https://meta.discourse.org/t/allow-admins-to-change-email-addresses-easily/33753 "2015-09-25T16:44:25Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![watchmanmonitor](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/watchmanmonitor/32/430970_2.png) [@watchmanmonitor](https://meta.discourse.org/u/watchmanmonitor)\
**Post date:** [2015年九月25日 16:44 UTC](https://meta.discourse.org/t/allow-admins-to-change-email-addresses-easily/33753/1 "2015-09-25T16:44:25Z")

</div>

Current setup:

Site is locked down for members to be invited or request access.  
We don’t want people changing their own email address, so the related email change site-setting is disabled. Of course, sometimes an admin must.

###Expectation:  
go to the user’s admin page, see the email, and edit it, potentially have that pending confirmation of the new email. ☀

###Actual

- visit the admin page

- click a button to see what it is.

- there’s no way to edit it

- Click `Show Public Profile`,

- realize you have to click Preferences too.

- No way to edit the email address… grrr

- Go back to admin

- disable the site setting

- go back to publich profile/preferences

- edit

- go back to admin

- disable the site setting.

As an admin, can we please just edit a user’s address at all times, from the Admin page?

extra brownie points from this customer if @techAPJ could [allow the name to be edited](https://meta.discourse.org/t/wish-i-could-edit-a-users-full-name-from-admin/26506/2) while he’s there.

Please?

---

<div class="post-metadata">

**Author:** ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)\
**Post date:** [2015年九月26日 00:14 UTC](https://meta.discourse.org/t/allow-admins-to-change-email-addresses-easily/33753/2 "2015-09-26T00:14:10Z")

</div>

Yeah, we are fine with allowing email/name/username editing on admin page. We must account for the sso override stuff though that disables editing here.

Of course, there are a couple of things that should be added related to this.

- We should log all the name/email/username changes and have that visible somewhere

- If an admin changes a users email, its probably sane to allow them to send an email right away to that user explaining that the email changed, doing this (optionally) automatically would be good.

---

<div class="post-metadata">

**Author:** ![watchmanmonitor](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/watchmanmonitor/32/430970_2.png) [@watchmanmonitor](https://meta.discourse.org/u/watchmanmonitor)\
**Post date:** [2015年十二月22日 05:13 UTC](https://meta.discourse.org/t/allow-admins-to-change-email-addresses-easily/33753/3 "2015-12-22T05:13:24Z")

</div>

I guess API considerations, such as [this post](https://meta.discourse.org/t/disable-changing-email-from-discourse-but-allow-through-api/37019) by @SnipersCode, would come in to play as well.

---

<div class="post-metadata">

**Author:** ![watchmanmonitor](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/watchmanmonitor/32/430970_2.png) [@watchmanmonitor](https://meta.discourse.org/u/watchmanmonitor)\
**Post date:** [2016年七月9日 17:15 UTC](https://meta.discourse.org/t/allow-admins-to-change-email-addresses-easily/33753/4 "2016-07-09T17:15:08Z")

</div>

As an admin, I can change an email now it just takes too many steps.

Addressing either (or both) of these two needs would help a lot"

- Allowing an admin to change a user’s email from its Admin view (not only the public profile)

- Allowing the change even if the site setting is disabled.

As for SSO, presumably the source of authentication already knows about the new email.. the goal of the change in discourse would be to prevent an undesired second account from being created on the user’s next visit.

---

<div class="post-metadata">

**Author:** ![watchmanmonitor](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/watchmanmonitor/32/430970_2.png) [@watchmanmonitor](https://meta.discourse.org/u/watchmanmonitor)\
**Post date:** [2017年一月27日 21:20 UTC](https://meta.discourse.org/t/allow-admins-to-change-email-addresses-easily/33753/5 "2017-01-27T21:20:03Z")

</div>

> [@sam](#):
>
> If an admin changes a users email, its probably sane to allow them to send an email right away to that user explaining that the email changed, doing this (optionally) automatically would be good.

Currently this happens.. we need to click an email confirmation link.

Maybe that would have to change when SSO is enabled, however I don’t think bringing the control from the user-side preferences to the admin side preferences changes the current SSO workflow.

---

<div class="post-metadata">

**Author:** ![simon.michalke](https://avatars.discourse-cdn.com/v4/letter/s/f0a364/32.png) [@simon.michalke](https://meta.discourse.org/u/simon.michalke)\
**Post date:** [2021年十一月14日 17:50 UTC](https://meta.discourse.org/t/allow-admins-to-change-email-addresses-easily/33753/6 "2021-11-14T17:50:16Z")

</div>

您好，

抱歉打扰这个旧帖子，但 Discourse 的行为目前确实造成了问题。

如果用户在我们的平台（Discourse 只是众多平台之一）上激活他们的账户，我们会通过 API 自动创建一个 Discord 用户。我们需要这样做才能分配正确的组。如果用户在通过 [Discourse SSO](https://meta.discourse.org/t/13045?silent=true) 首次登录 Discourse 之前更改其电子邮件，他将创建一个新账户（`\u003cusername\u003e1`），我们必须手动合并这两个账户。

允许 API 更改电子邮件将有助于减少大量手动工作。而且我认为管理员也应该被允许，因为他们通常知道自己在做什么。

我想禁止用户更改他们的电子邮件地址，但允许管理员和 API 进行更改。

---

<div class="post-metadata">

**Author:** ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Post date:** [2021年十一月14日 19:30 UTC](https://meta.discourse.org/t/allow-admins-to-change-email-addresses-easily/33753/7 "2021-11-14T19:30:15Z")

</div>

配置您的 sso，以便在登录时分配组。

---

<div class="post-metadata">

**Author:** ![simon.michalke](https://avatars.discourse-cdn.com/v4/letter/s/f0a364/32.png) [@simon.michalke](https://meta.discourse.org/u/simon.michalke)\
**Post date:** [2021年十一月14日 19:54 UTC](https://meta.discourse.org/t/allow-admins-to-change-email-addresses-easily/33753/8 "2021-11-14T19:54:20Z")

</div>

抱歉，我们的设置无法实现这一点。

（至少目前不行）

---

<div class="post-metadata">

**Author:** ![simon.michalke](https://avatars.discourse-cdn.com/v4/letter/s/f0a364/32.png) [@simon.michalke](https://meta.discourse.org/u/simon.michalke)\
**Post date:** [2021年十一月14日 19:56 UTC](https://meta.discourse.org/t/allow-admins-to-change-email-addresses-easily/33753/9 "2021-11-14T19:56:51Z")

</div>

对我们来说，另一个简单的解决方案是，如果 [Discourse SSO](https://meta.discourse.org/t/13045?silent=true) 或 SAML 可以设置为仅登录同名账户，而无需进行基于电子邮件的检查。但不幸的是，Discourse 总是想比任何使用者都更聪明 ☹

---

<div class="post-metadata">

**Author:** ![simon.michalke](https://avatars.discourse-cdn.com/v4/letter/s/f0a364/32.png) [@simon.michalke](https://meta.discourse.org/u/simon.michalke)\
**Post date:** [2022年一月18日 21:18 UTC](https://meta.discourse.org/t/allow-admins-to-change-email-addresses-easily/33753/10 "2022-01-18T21:18:42Z")

</div>

好吧，我想抱怨的不是我一个人。终于有可能了！

非常感谢！ 🙂

---

<div class="post-metadata">

**Author:** ![HAWK](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hawk/32/86627_2.png) [@HAWK](https://meta.discourse.org/u/HAWK)\
**Post date:** [2024年八月26日 06:03 UTC](https://meta.discourse.org/t/allow-admins-to-change-email-addresses-easily/33753/11 "2024-08-26T06:03:55Z")

</div>

6 个帖子被拆分到一个新主题：[更改电子邮件地址作为管理员不起作用](https://meta.discourse.org/t/changing-email-addresses-not-working-as-an-admin/323350)
