# API, maak gebruiker, retourneert niet langer user\_id

**URL:** https://meta.discourse.org/t/api-create-user-no-longer-returns-user-id/343427
**Category:** Support
**Created:** [19 december 2024 om 17:35 UTC](https://meta.discourse.org/t/api-create-user-no-longer-returns-user-id/343427 "2024-12-19T17:35:21Z")
**Posts on this page:** 1
**Showing post:** 7

<div class="post-metadata">

### Author: ![RGJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rgj/32/523185_2.png) [@RGJ](https://meta.discourse.org/u/RGJ)
#### Post date: [19 december 2024 om 20:39 UTC](https://meta.discourse.org/t/api-create-user-no-longer-returns-user-id/343427/7 "2024-12-19T20:39:01Z")

</div>

Just a hunch

> <https://github.com/discourse/discourse/blob/main/app/controllers/users_controller.rb#L782-L783>

probably related to [DEV: Change hide\_email\_address\_taken default to true (#30293) · discourse/discourse@c1c7ea8 · GitHub](https://github.com/discourse/discourse/commit/c1c7ea89592f3ceee2edeec544b3dcc170df87c2) explained here:

> [@Hiding "e-mail taken" on sign-up by default](https://meta.discourse.org/t/hiding-e-mail-taken-on-sign-up-by-default/342599):
>
> Background Under the current default settings, when signing up for an account with an e-mail that has already been registered, the sign-up form will inform of that: We are changing the default setting to not give away this information. Instead, the sign-up form will look like this, regardless of whether the e-mail is already registered or not: This also affects password resets in similar ways. With the setting di…

> [@Hiding "e-mail taken" on sign-up by default](https://meta.discourse.org/t/hiding-e-mail-taken-on-sign-up-by-default/342599/1):
>
> If you want to change back to the old default, you can set the `hide_email_address_taken` setting back to `false`.

I guess it would be desirable to override this behavior when it’s a request made using an admin API key?

---

_[View the full topic](https://meta.discourse.org/t/api-create-user-no-longer-returns-user-id/343427)._
