Allow admins to change email addresses easily

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. :sunny:

###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 while he’s there.

Please?

14 лайков

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.

2 лайка

I guess API considerations, such as this post by @SnipersCode, would come in to play as well.

3 лайка

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.

4 лайка

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.

1 лайк

Здравствуйте,

извините за оживление этой старой темы, но текущее поведение Discourse действительно создаёт проблемы.

Если пользователь активирует учётную запись на нашей платформе (Discourse — лишь одна из многих), мы автоматически создаём пользователя Discord через API. Это необходимо для корректного назначения групп. Если пользователь изменит свой адрес электронной почты до первого входа в Discourse через SSO, у него будет создана новая учётная запись (с именем пользователя <username>1), и нам придётся вручную объединять две учётные записи.

Возможность изменения адреса электронной почты через API помогла бы значительно сократить объём ручной работы. Думаю, администраторам также следует разрешить это, поскольку они обычно понимают, что делают.

Я хотел бы запретить пользователям изменять свои адреса электронной почты, но оставить эту возможность для администраторов и API.

1 лайк

Настройте SSO так, чтобы он назначал группы при входе в систему.

1 лайк

К сожалению, в нашей текущей конфигурации это невозможно.

(по крайней мере, на данный момент)

Ещё одно простое решение для нас — настроить Discourse SSO или SAML так, чтобы вход в аккаунт с тем же именем выполнялся без проверки по электронной почте. Но, к сожалению, Discourse всегда стремится быть умнее всех, кто его использует :frowning:

Что ж, похоже, я был не единственным, кто жаловался. Наконец-то это стало возможно!

Огромное спасибо! :slight_smile:

2 лайка

6 сообщений были перенесены в новую тему: Смена адреса электронной почты не работает для администратора