Hi Zendesk Support,
We believe we've hit a bug (or at least unexpected behavior) in the Users API around user merge combined with the create-or-update endpoint.
Environment
- Endpoint: POST /api/v2/users/create_or_update
- We sync users from our internal system into Zendesk. On every sync we send a payload containing email and external_id (in our case external_id is set
to the user's email address).
What we did
1. We had two duplicate user records for the same person — one holding the email X as its primary email, and another holding
the same value as its external_id (with a different primary email).
2. We merged these two users into a single user via the merge functionality, to consolidate them.
3. After the merge, we called POST /api/v2/users/create_or_update to update the surviving user's information, sending the usual payload (email and
external_id both set to X).
What we expected
After the merge, there is only one user record associated with X. We expected create_or_update to match that single user (by
external_id / email) and update it in place.
What actually happened
The request fails with HTTP 422 Unprocessable Entity and the error:
▎ Email: X is already being used by another user
This is confusing because, after the merge, there should no longer be "another user" holding that email. The merge appears to have left some lingering
association (e.g. a secondary email identity or a stale record) that still claims this email address, so the email-uniqueness check fails even though the
merge reported success.
Questions / What we'd like help with
1. Is this expected behavior after a merge? If so, what is the correct way to resolve the lingering email association?
2. Is there a recommended sequence for merging users and then updating them via create_or_update that avoids this 422?
Thanks in advance — happy to provide request/response payloads, timestamps, or correlation IDs if that helps you investigate.
Best regards,


