Hi Team,
We are trying to search user in zendesk system using user email through Zendesk API.
The curl command for the search API is as bellow:
curl "https://MYDOMAIN.zendesk.com/api/v2/search.json" \
-G --data-urlencode "query=email:XXXX@MYDOMAIN.com" \
-v -u steve@MYDOMAIN.com/token:----some-----secret-token---here
This sometimes gives result for some of the emails but not for some other emails.
Example emails which exists in zendesk but does not give any result when searched using above curl command:
user+1@mydomain.com (does not work)
user+3@mydomain.com (works)
user@mydomain.com (does not work)
Can someone suggest what are we missing in the curl command ?
You can merge the user with the "new email" into the existing user who has the external ID. Do you use JWT auth for users in the widget?