# 仅允许白名单域名自助注册，但可手动邀请任意邮箱地址

**URL:** <https://meta.discourse.org/t/allow-only-whitelisted-domains-to-self-register-but-allow-manual-invitation-of-any-email-address/85173>\
**Category:** Support\
**Created:** [2018年四月12日 17:50 UTC](https://meta.discourse.org/t/allow-only-whitelisted-domains-to-self-register-but-allow-manual-invitation-of-any-email-address/85173 "2018-04-12T17:50:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![merry](https://avatars.discourse-cdn.com/v4/letter/m/e480ec/32.png) [@merry](https://meta.discourse.org/u/merry)\
**Post date:** [2018年四月12日 17:50 UTC](https://meta.discourse.org/t/allow-only-whitelisted-domains-to-self-register-but-allow-manual-invitation-of-any-email-address/85173/1 "2018-04-12T17:50:34Z")

</div>

Is it possible to simultaneously:

1. Allow only users with a whitelisted email domain to self-register.
2. Allow staff to manually invite _any_ email address (not necessarily whitelisted).

I know (1) is possible through the `email domains whitelist` option, but enabling this prevents (2).

---

<div class="post-metadata">

**Author:** ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)\
**Post date:** [2018年四月12日 21:23 UTC](https://meta.discourse.org/t/allow-only-whitelisted-domains-to-self-register-but-allow-manual-invitation-of-any-email-address/85173/2 "2018-04-12T21:23:35Z")

</div>

If you want a tight control over authentication you can implement it in a different app and use SSO.

---

<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:** [2020年八月24日 08:35 UTC](https://meta.discourse.org/t/allow-only-whitelisted-domains-to-self-register-but-allow-manual-invitation-of-any-email-address/85173/3 "2020-08-24T08:35:16Z")

</div>


