# Change user's email address via API without confirmation

**URL:** https://meta.discourse.org/t/change-users-email-address-via-api-without-confirmation/84685
**Category:** Development
**Tags:** rest-api
**Created:** [6 april 2018 om 00:47 UTC](https://meta.discourse.org/t/change-users-email-address-via-api-without-confirmation/84685 "2018-04-06T00:47:02Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![paully21](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/paully21/32/72673_2.png) [@paully21](https://meta.discourse.org/u/paully21)
#### Post date: [6 april 2018 om 00:47 UTC](https://meta.discourse.org/t/change-users-email-address-via-api-without-confirmation/84685/1 "2018-04-06T00:47:02Z")

</div>

Is there a way to change a user’s email address using the API without triggering a confirmation email?

Our users are actually members of our association and when they submit an email address change directly to staff, the staff member changes the contact’s record in our ERP system. Then the staff member needs to log into our Discourse implementation as the user and submit an email address change.

Staff members are complaining that the confirmation email is confusing, not seen or disregarded by the user and therefore the email address change never completes.

I’m trying to kill two birds here:

1. I would like to make it so the change email address change can be made right from the ERP system.
2. I want to eliminate the incomplete email address change submissions (because of no confirming email action was taken).

We don’t want to use SSO overrides email, because we have a handful of users that want a different Discourse notification than the main notifications from the association.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [6 april 2018 om 03:42 UTC](https://meta.discourse.org/t/change-users-email-address-via-api-without-confirmation/84685/2 "2018-04-06T03:42:22Z")

</div>

> [@paully21](#):
>
> We don’t want to use SSO overrides email, because we have a handful of users that want a different Discourse notification than the main notifications from the association.

I would say this is a self inflicted wound at that point?

---

<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: [6 april 2018 om 04:16 UTC](https://meta.discourse.org/t/change-users-email-address-via-api-without-confirmation/84685/3 "2018-04-06T04:16:22Z")

</div>

Hey, Paul. I’m still happy to help on this, but Jeff makes a point. Just how will you know whether someone wants a different address? You’ll just change it via the API on ERP but let them change it in Discourse if they want to?

---

<div class="post-metadata">

### Author: ![paully21](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/paully21/32/72673_2.png) [@paully21](https://meta.discourse.org/u/paully21)
#### Post date: [6 april 2018 om 11:15 UTC](https://meta.discourse.org/t/change-users-email-address-via-api-without-confirmation/84685/4 "2018-04-06T11:15:48Z")

</div>

The idea would be, if the request is made to change the email address and the old address matches the ERP system AND Discourse, then change it in both. Additionally, they may have an online or paper form that asks if the email change should include Discourse.

Another salient point here is: nearly all the association members use Discourse as a mailing list (mailing list mode) and never visit the Discourse instance site. So, having to go to the site to confirm the email address change adds a layer of confusion for them.

I realize this is not a normal use case for mainstream Discourse installations, but I have been asked to make it happen, so I’m barking up the tree.

---

<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: [6 april 2018 om 12:21 UTC](https://meta.discourse.org/t/change-users-email-address-via-api-without-confirmation/84685/5 "2018-04-06T12:21:53Z")

</div>

Worst case it’ll take a plug in. If I can’t do it, I’d fit a guy. If you want to give it a shot, search here for ‘reverse engineering’.

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [14 augustus 2020 om 21:12 UTC](https://meta.discourse.org/t/change-users-email-address-via-api-without-confirmation/84685/6 "2020-08-14T21:12:22Z")

</div>



---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [14 augustus 2020 om 23:47 UTC](https://meta.discourse.org/t/change-users-email-address-via-api-without-confirmation/84685/7 "2020-08-14T23:47:15Z")

</div>

> [@paully21](#):
>
> We don’t want to use SSO overrides email, because we have a handful of users that want a different Discourse notification than the main notifications from the association.

Discourse supports multiple email addresses per user now, does this address your original issue?
