# When OpenID Connect overrides email

**URL:** https://meta.discourse.org/t/when-openid-connect-overrides-email/401037
**Category:** Self-hosting
**Tags:** email, openid-connect, login
**Created:** [April 20, 2026, 10:25am UTC](https://meta.discourse.org/t/when-openid-connect-overrides-email/401037 "2026-04-20T10:25:29Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Ethsim2](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ethsim2/32/522255_2.png) [@Ethsim2](https://meta.discourse.org/u/Ethsim2)
#### Post date: [April 20, 2026, 10:25am UTC](https://meta.discourse.org/t/when-openid-connect-overrides-email/401037/1 "2026-04-20T10:25:29Z")

</div>

On a self-hosted site using OpenID Connect, is there a supported Rails console method to mark an existing alternate email in `user_emails` as confirmed without changing the account’s primary email?

Goal: avoid duplicate accounts when OIDC returns the same email.

I found the documented console method for changing a user’s primary email, but I could not find documentation for confirming an alternate email row in place. Is editing `user_emails` supported, or should I avoid that and change the primary email instead?
