I have 3,000+ users with primary and secondary emails that I need to validate. The only way I know how to do this is to API JSON retrieve each user individually and it takes ~30min to run each API request individually. Is there a better way to retrieve a bulk response of user identities?
ZenDesk API Retrieve Identities for 3,000+ users
Login to the community
No account yet? Create an account
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
Unfortunately there isn't a way to do this natively using just the API. That being said, I would approach this by writing a script to do the following:
1. Pull all of the users (or just the agents) from the list users or search endpoint.
2. Take the response and loop through all of the user ids calling the list identities endpoint. If the user has two email identities -> pop their user id into an array to be returned at the end.
Something to keep in mind with this is that you'd want to put some timing restrictions on your script so that you don't run into rate limit issues.
Hope this helps,