Issue Summary
Trying to PATCH the email with the same value using a different case doesn't work.
As an example, if the user has the email superemailtest2@superemail.com and we try to update it to Superemailtest2@superemail.com it fails with:
Cannot update user with id xxxxx. Email with such name already exists.
But if I do the same on the UI, it works without problems:
By Diego Larangeira on 12/8/2021 2:53:55 PM
User Updated -
Email Changed - From [superemailtest2@superemail.com] To [Superemailtest2@superemail.com]
Steps to Reproduce
- Run a PATH (thru swagger or curl) with content similar to the below, passing the same email the user has but with a different case:
[ { "op": "replace", "path": "email", "value": "Superemailtest2@superemail.com" } ]
Expected Results
TBD by Product Team
Actual Results
The error below is returned:
Cannot update user with id xxxx. Email with such name already exists.
Workaround
Currently there is no known workaround for this behavior. A workaround will be added here when available