Find all users with 'work_phone_2' number

I'm trying to decide the easiest way to comb through all users in our organization and create an excel list of any who have a number listed in their 'work phone 2' category that isn't an extension. When viewing on the API explorer I can see this is returned under 'addresses' as 'display' : (number)

I have it set up to run in Python but I have concerns about my approach.

The object returned is long. So long that I can only query for 5 users at a time and get all the information back to check through. I'm concerned about running so many requests (it would be about 400 requests @ 5 users each). It just doesn't seem like best practice.

Does anyone know an easier way to query for this or a way to shorten the response a bit so I don't have to send as many requests?

thanks in advance.

James Giordano
Nationwide IT

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.