# Can an admin change his email address?

**URL:** https://meta.discourse.org/t/can-an-admin-change-his-email-address/216174
**Category:** Support
**Created:** [January 27, 2022, 7:57am UTC](https://meta.discourse.org/t/can-an-admin-change-his-email-address/216174 "2022-01-27T07:57:46Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![nujabes](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nujabes/32/135752_2.png) [@nujabes](https://meta.discourse.org/u/nujabes)
#### Post date: [January 27, 2022, 7:57am UTC](https://meta.discourse.org/t/can-an-admin-change-his-email-address/216174/1 "2022-01-27T07:57:47Z")

</div>

It seems that I as an admin cannot change my email address (primary mail address) registered in the following page.

https://///preferences/account

Is there any way to change it?

---

<div class="post-metadata">

### Author: ![itsbhanusharma](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/itsbhanusharma/32/180717_2.png) [@itsbhanusharma](https://meta.discourse.org/u/itsbhanusharma)
#### Post date: [January 27, 2022, 8:08am UTC](https://meta.discourse.org/t/can-an-admin-change-his-email-address/216174/2 "2022-01-27T08:08:05Z")

</div>

Are you using SSO for login or have the setting `email editable` disabled?

---

<div class="post-metadata">

### Author: ![nujabes](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nujabes/32/135752_2.png) [@nujabes](https://meta.discourse.org/u/nujabes)
#### Post date: [January 27, 2022, 8:54am UTC](https://meta.discourse.org/t/can-an-admin-change-his-email-address/216174/3 "2022-01-27T08:54:58Z")

</div>

No, I am not using SSO.

I checked what “email editable” means.  
It seems that this is used when users want to change their email addresses.

I want to change my admin email address.

 ![editable](https://global.discourse-cdn.com/meta/original/3X/e/b/eb13d8f12d07b46cadbda78f9bb6f48110ff682d.png)

---

<div class="post-metadata">

### Author: ![itsbhanusharma](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/itsbhanusharma/32/180717_2.png) [@itsbhanusharma](https://meta.discourse.org/u/itsbhanusharma)
#### Post date: [January 27, 2022, 10:22am UTC](https://meta.discourse.org/t/can-an-admin-change-his-email-address/216174/4 "2022-01-27T10:22:50Z")

</div>

I have the setting enabled and I get the option to change my email. The idea here is that an admin is also a user.

If you do not want to enable the setting, you may be able to change the email via ssh.

See: [Change staff email address from console](https://meta.discourse.org/t/change-staff-email-address-from-console/42062)

---

<div class="post-metadata">

### Author: ![nujabes](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nujabes/32/135752_2.png) [@nujabes](https://meta.discourse.org/u/nujabes)
#### Post date: [January 27, 2022, 1:37pm UTC](https://meta.discourse.org/t/can-an-admin-change-his-email-address/216174/6 "2022-01-27T13:37:15Z")

</div>

I clicked the link in the mail, but the discourse page says that “Oops, the page doesn’t exist or private.” How can I authenticate this? I registered my company’s gmail address.

---

<div class="post-metadata">

### Author: ![itsbhanusharma](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/itsbhanusharma/32/180717_2.png) [@itsbhanusharma](https://meta.discourse.org/u/itsbhanusharma)
#### Post date: [January 27, 2022, 1:45pm UTC](https://meta.discourse.org/t/can-an-admin-change-his-email-address/216174/7 "2022-01-27T13:45:29Z")

</div>

Are you trying to open the link in a different browser? Is the link somehow http instead of https? Do you have a reverse proxy or cloudflare in front of your discourse?

---

<div class="post-metadata">

### Author: ![nujabes](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nujabes/32/135752_2.png) [@nujabes](https://meta.discourse.org/u/nujabes)
#### Post date: [January 27, 2022, 1:52pm UTC](https://meta.discourse.org/t/can-an-admin-change-his-email-address/216174/8 "2022-01-27T13:52:44Z")

</div>

No. The link starts with “https.”  
I don’t think I have neither a reverse proxy nor cloudflare.

I tried the link under secret mode, but it failed. I have tried it several times with Chrome.

Also, I want to change the email address of “primary.”  
I don’t want to add a new address under primary.

---

<div class="post-metadata">

### Author: ![itsbhanusharma](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/itsbhanusharma/32/180717_2.png) [@itsbhanusharma](https://meta.discourse.org/u/itsbhanusharma)
#### Post date: [January 27, 2022, 2:28pm UTC](https://meta.discourse.org/t/can-an-admin-change-his-email-address/216174/9 "2022-01-27T14:28:26Z")

</div>

Add a secondary address, then make it primary. This should allow you to remove the _old_ primary address from account. I’m not sure if it will make a difference if the same email is also present as a developer email in `app.yml`

> [@nujabes](#):
>
> I tried the link under secret mode, but it failed

This could be the reason. Maybe discourse didn’t had a signed in session under the secret mode?

---

<div class="post-metadata">

### Author: ![nujabes](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nujabes/32/135752_2.png) [@nujabes](https://meta.discourse.org/u/nujabes)
#### Post date: [January 28, 2022, 3:50am UTC](https://meta.discourse.org/t/can-an-admin-change-his-email-address/216174/10 "2022-01-28T03:50:22Z")

</div>

I tried this under a normal mode and a secret mode.

Also, it is impossible to delete the old primary address since the second email is not registered.

I tried this with another email address, but it failed.

---

<div class="post-metadata">

### Author: ![itsbhanusharma](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/itsbhanusharma/32/180717_2.png) [@itsbhanusharma](https://meta.discourse.org/u/itsbhanusharma)
#### Post date: [January 28, 2022, 4:50am UTC](https://meta.discourse.org/t/can-an-admin-change-his-email-address/216174/11 "2022-01-28T04:50:17Z")

</div>

Something is definitely broken in your discourse. I just tested changing admin email on my sandbox and it works fine. You’ll have to check exactly what is not working as expected.

IIRC, changing email via ssh console doesn’t require a verification either so that is the easiest way if you’re having email related issues.

Another possibility could be with your email provider/email client/browser extension that is breaking the verification link. I’m not sure which one but it has to be one of these.

While this third one is unlikely but your discourse instance or a 3rd party plugin installed could also be causing this.

So what I’d suggest is that you change the email via ssh console and spend some time debugging the issue with your instance.
