User creation via API is a mess!

Recent changes to default settings have completely messed up user creation.

  1. normalize_emails setting is on by default, which means it is no longer possible to create a user with a + address (e.g. nikki+testuser@example.com).
  2. hide_email_address_taken is on by default, which means it is no longer possible to determine the user id from the return of the create user API call.
  3. The create user API call returns success even if the specified user already exists, or the email address is duplicate (so the user didn’t get created)
  4. The create user API call lies about whether the user is active or not (the active flag does not agree with the message)
  5. The Get User By Email call no longer works (admin/users/list/all with email=the user’s email). It returns null for an address containing +, even if normalize_emails and hide_email_address_taken are both off

Can this be fixed so it works consistently and correctly, please?

1 Like

For the record, some of those were discussed here:

2 Likes

So change it back?

So change it back.

That’s the problem with security; it inconveniences mostly the Good People.

That (and maybe number 4) sounds like a bug, regression, or unexpected edge case.

1 Like