# Create account only for e-mails registred in my external database

**URL:** https://meta.discourse.org/t/create-account-only-for-e-mails-registred-in-my-external-database/170015
**Category:** Support
**Created:** [November 13, 2020, 8:49am UTC](https://meta.discourse.org/t/create-account-only-for-e-mails-registred-in-my-external-database/170015 "2020-11-13T08:49:17Z")
**Posts on this page:** 1
**Showing post:** 3

<div class="post-metadata">

### Author: ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)
#### Post date: [November 13, 2020, 6:18pm UTC](https://meta.discourse.org/t/create-account-only-for-e-mails-registred-in-my-external-database/170015/3 "2020-11-13T18:18:59Z")

</div>

> [@Habib.ELGHOUL](#):
>
> Can I perform a condition in the sign up for only registered people in my sql database ( my website) could sign up?

One way to accomplish this would be to enable the `invite only` and `must approve users` site settings. With those settings enabled, the only people who will be allowed to create accounts on your site are users who are invited to the site. Invites will only be able to be sent by staff users because the `must approve users` site setting prevents non-staff users from sending invites.

You could then pull email addresses from your sql database and add those email addresses to a CSV file. That file could be used to bulk invite users by following the steps outlined here: [Sending Bulk User Invites](https://meta.discourse.org/t/sending-bulk-user-invites/16468).

---

_[View the full topic](https://meta.discourse.org/t/create-account-only-for-e-mails-registred-in-my-external-database/170015)._
