# Restrict account creation to specified email domains won't change

**URL:** <https://forum.mattermost.com/t/restrict-account-creation-to-specified-email-domains-wont-change/21882>\
**Category:** Troubleshooting\
**Created:** [December 16, 2024, 2:30pm UTC](https://forum.mattermost.com/t/restrict-account-creation-to-specified-email-domains-wont-change/21882 "2024-12-16T14:30:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kevinkocian](https://avatars.discourse-cdn.com/v4/letter/k/cab0a1/32.png) [@kevinkocian](https://forum.mattermost.com/u/kevinkocian)\
**Post date:** [December 16, 2024, 2:30pm UTC](https://forum.mattermost.com/t/restrict-account-creation-to-specified-email-domains-wont-change/21882/1 "2024-12-16T14:30:26Z")

</div>

Mattermost verison: 9.11.1

**Summary**  
Restrict account creation to specified email domains won’t change

**Steps to reproduce**  
I installed mattermost on aws. I changed the restrict account creation to domain1.  
[https://docs.mattermost.com/configure/authentication-configuration-settings.html#restrict-account-creation-to-specified-email-domains](https://docs.mattermost.com/configure/authentication-configuration-settings.html#restrict-account-creation-to-specified-email-domains)  
Then I tried to change the restricted account creation to off and then to a different email domain2. Now it it is stuck with the original email domain1 I typed in. When I try to send an invite or send someone an invite link, it says they must use domain1.

Am I’m forgetting something to change? How can I overcome this?

---

<div class="post-metadata">

**Author:** ![john.oliver](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/john.oliver/32/6436_2.png) [@john.oliver](https://forum.mattermost.com/u/john.oliver)\
**Post date:** [December 16, 2024, 5:16pm UTC](https://forum.mattermost.com/t/restrict-account-creation-to-specified-email-domains-wont-change/21882/2 "2024-12-16T17:16:46Z")

</div>

The very first thing I have to suggest is to upgrade to 9.11.6 as it’ll include a few months of bug fixes. I don’t see anything immediately that looks like, “Ah, ha! Here’s the answer!” but it’s highly recommended.

[https://docs.mattermost.com/about/mattermost-v9-changelog.html](https://docs.mattermost.com/about/mattermost-v9-changelog.html)

---

<div class="post-metadata">

**Author:** ![john.oliver](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/john.oliver/32/6436_2.png) [@john.oliver](https://forum.mattermost.com/u/john.oliver)\
**Post date:** [December 16, 2024, 5:18pm UTC](https://forum.mattermost.com/t/restrict-account-creation-to-specified-email-domains-wont-change/21882/3 "2024-12-16T17:18:54Z")

</div>

Next - how are you changing the creation domain? In config.json? System Console? Environment variables? What does mattermost.log say? You may need to increase verbosity to DEBUG to get enough output. [Mattermost logging - Mattermost documentation](https://docs.mattermost.com/manage/logging.html)
