# New users via API if allow new unchecked

**URL:** <https://meta.discourse.org/t/new-users-via-api-if-allow-new-unchecked/75103>\
**Category:** Development\
**Created:** [Novembre 30, 2017, 6:10 UTC](https://meta.discourse.org/t/new-users-via-api-if-allow-new-unchecked/75103 "2017-11-30T18:10:08Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![Martyr2](https://avatars.discourse-cdn.com/v4/letter/m/779978/32.png) [@Martyr2](https://meta.discourse.org/u/Martyr2)\
**Post date:** [Novembre 30, 2017, 6:10 UTC](https://meta.discourse.org/t/new-users-via-api-if-allow-new-unchecked/75103/1 "2017-11-30T18:10:08Z")

</div>

Hello, I was attempting to setup a new user via the API when I received an error back saying that our hosted version of discourse does “not allow new users at this time”. I discovered that the “allow new registrations” checkbox in the settings section is unchecked.

Was there a way to get around that, other than enabling the checkbox, to have new users created via the API? Something like an override or “force” flag? I am not using “approved”. Will that do what I need or is there something perhaps undocumented? I figure that if I am supplying an API key and API User that is valid, that obviously it is me who is wanting to override that feature.

Thanks!

---

_[View the full topic](https://meta.discourse.org/t/new-users-via-api-if-allow-new-unchecked/75103)._
