Hello,
Some of my scripts using search users by Zendesk User ID as documented at:
"The user and type keywords
To search for a user's profile data, you have the following two options.
Using the user keyword:
user:amy
Or, using the type:user keyword:
type:user amy
What's the difference between the two? The keyword user when not combined with type is just a shortcut for finding users by ID, name, and email address. The user keyword, like the ticket user role keywords (assignee, requester, submitter), accepts the ID, name, and email address as valid user identifiers.
user:52789480
And it was working fine until June 2018. Then something was changed and now I cannot retrieve users by ID.
Examples:
curl "https://alitungsten.zendesk.com/api/v2/search.json" -G --data-urlencode "query=type:user user:367396768391" -v -u --tlsv1.2
Will return empty array, so it is not working.
However, all other searches by name, email etc. are working fine, so
curl https://alitungsten.zendesk.com/api/v2/search.json -G --data-urlencode "query=type:user" -v -u
will return all users
curl https://alitungsten.zendesk.com/api/v2/search.json" -G --data-urlencode "query=type:user name:Karl159" -v -u
Returns data for user Karl159.
and so on.
Please if anyone knows how to search by user ID or it's a bug - let me know.
Thanks!