Sync Gateway user creation silently drops email addresses containing apostrophes

When I create a user with the Sync Gateway admin API and the email value contains an apostrophe the email is silently ignored.

See output below:

  1. I show the user doesn’t exist.
  2. I output the JSON to create the user containing an apostrophe in the email value
  3. I call the API to create the user
  4. I call the API to return the user that was just created

You can see there is no value for email.

Any suggestions?

Looks like you would have to escape it

Thank you for your response and suggestion.

It’s been logged as a bug by enterprise support:

Got it! In that case, the support team will be in touch with you with clarifying questions and would probably best to continue discussions via support channel to avoid confusion.