# How can I automatically confirm a secondary email address?

**URL:** <https://meta.discourse.org/t/how-can-i-automatically-confirm-a-secondary-email-address/300354>\
**Category:** Product Support\
**Created:** [March 21, 2024, 1:25pm UTC](https://meta.discourse.org/t/how-can-i-automatically-confirm-a-secondary-email-address/300354 "2024-03-21T13:25:41Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![Tris20](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tris20/32/264639_2.png) [@Tris20](https://meta.discourse.org/u/Tris20)\
**Post date:** [March 21, 2024, 1:25pm UTC](https://meta.discourse.org/t/how-can-i-automatically-confirm-a-secondary-email-address/300354/1 "2024-03-21T13:25:41Z")

</div>

I’ve seen a few topics touch on this issue, but nothing quite seems to address it.

Basically, our company was purchased. This means all users are moving from @old\_company.com to @new\_company.com

I have a map of old to new email addresses. What I would like to do is add the @new\_company.com email address for a user and automatically confirm it. Otherwise they need to go through the confirmation emails themselves, which realistically won’t happen.

Is there any way I can add a secondardy email as admin and automatically confirm it?

Simon mentions the following

> [@Change Users email address using the API without sending the confirmation Email](https://meta.discourse.org/t/change-users-email-address-using-the-api-without-sending-the-confirmation-email/77606/2):
>
> 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.

But it’s not clear to me how this works. How can it sync an email address to an account, if the address is not yet confirmed? Does this mean I should/could

1. add secondary email for user via api
2. (maybe) disable outgoing email for 10 minutes so no confirmation email is sent
3. enable `saml sync email`
4. user accounts confirm and update when they sign in with saml

_Note, we are also changing saml provider in this example_

Even though the secondary email has not been confirmed, does the above setup mean that when they try to log in with the email for the first time, it will be automatically confirmed and tied to the account?

---

_[View the full topic](https://meta.discourse.org/t/how-can-i-automatically-confirm-a-secondary-email-address/300354)._
