# Change Users email address using the API without sending the confirmation Email

**URL:** https://meta.discourse.org/t/change-users-email-address-using-the-api-without-sending-the-confirmation-email/77606
**Category:** Development
**Tags:** rest-api
**Created:** [9 januari 2018 om 20:13 UTC](https://meta.discourse.org/t/change-users-email-address-using-the-api-without-sending-the-confirmation-email/77606 "2018-01-09T20:13:29Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![skodali](https://avatars.discourse-cdn.com/v4/letter/s/50afbb/32.png) [@skodali](https://meta.discourse.org/u/skodali)
#### Post date: [9 januari 2018 om 20:13 UTC](https://meta.discourse.org/t/change-users-email-address-using-the-api-without-sending-the-confirmation-email/77606/1 "2018-01-09T20:13:29Z")

</div>

I am a new discourse user and I ran into a use case where I have to update the user email address using the API. Discourse is sending out an email to the new email address for verification. Is there a way to update the user email address without sending the confirmation email?

I tired another approach where I first deactivate the user, update the email and activate the user as suggested in other posts but the user is still getting the confirmation email. The user account is only getting updated after the link in the confirmation email is clicked. I want to do this without the confirmation email.

Any help on this is appreciated. Thanks.

---

<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: [9 januari 2018 om 20:26 UTC](https://meta.discourse.org/t/change-users-email-address-using-the-api-without-sending-the-confirmation-email/77606/2 "2018-01-09T20:26:24Z")

</div>

> [@skodali](#):
>
> Is there a way to update the user email address without sending the confirmation email?

If you are using SSO you can update the email address through the `/admin/users/sync_sso` route. When it’s done that way a confirmation email isn’t sent.

---

<div class="post-metadata">

### Author: ![skodali](https://avatars.discourse-cdn.com/v4/letter/s/50afbb/32.png) [@skodali](https://meta.discourse.org/u/skodali)
#### Post date: [9 januari 2018 om 20:41 UTC](https://meta.discourse.org/t/change-users-email-address-using-the-api-without-sending-the-confirmation-email/77606/3 "2018-01-09T20:41:18Z")

</div>

I am not using SSO, Is using SSO the only option?

---

<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: [9 januari 2018 om 20:44 UTC](https://meta.discourse.org/t/change-users-email-address-using-the-api-without-sending-the-confirmation-email/77606/4 "2018-01-09T20:44:55Z")

</div>

> [@skodali](#):
>
> I am not using SSO, Is using SSO the only option?

I did some quick tests with this a few weeks ago. The `sync_sso` method was the only way I could find to do it that wouldn’t require the user to click on a confirmation email.

---

<div class="post-metadata">

### Author: ![shahidmir](https://avatars.discourse-cdn.com/v4/letter/s/9dc877/32.png) [@shahidmir](https://meta.discourse.org/u/shahidmir)
#### Post date: [10 mei 2018 om 12:43 UTC](https://meta.discourse.org/t/change-users-email-address-using-the-api-without-sending-the-confirmation-email/77606/5 "2018-05-10T12:43:39Z")

</div>

is there a Java SDK to carry out the sync\_sso in a java application?

regards  
shahid

---

<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: [10 mei 2018 om 22:01 UTC](https://meta.discourse.org/t/change-users-email-address-using-the-api-without-sending-the-confirmation-email/77606/6 "2018-05-10T22:01:10Z")

</div>

sync\_sso uses the exact same payload as SSO does, so use whatever code you have for your server side.

---

<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: [17 januari 2023 om 16:44 UTC](https://meta.discourse.org/t/change-users-email-address-using-the-api-without-sending-the-confirmation-email/77606/8 "2023-01-17T16:44:26Z")

</div>



---

<div class="post-metadata">

### Author: ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)
#### Post date: [17 januari 2023 om 16:54 UTC](https://meta.discourse.org/t/change-users-email-address-using-the-api-without-sending-the-confirmation-email/77606/9 "2023-01-17T16:54:43Z")

</div>


