It looks like you are the right track with the ajax call above. I called it from a Chrome console and it returns the array object.
Unfortunately, I work mostly from command line scripts as my ultimate goal is to extract the data into a spreadsheet or some other reporting system. I convert the json to csv with the excellent command line tool jq (https://stedolan.github.io/jq/). In the case of the Users API results, a jq filter like this will give you the key fields as csv:
canvas_api -q -u '/api/v1/accounts/1/users?search_term=krctest' | jq -r '.[]|[.id,.created_at,.name,.sis_user_id]|@csv'
534,"2016-10-27T13:46:47-05:00","Krc Test11","krctest11"
18676,"2016-12-08T15:12:08-06:00","Krc Test12","krctest12"
61237,"2018-04-09T10:52:55-05:00","Krc Test15","krctest15"
61238,"2018-04-09T10:53:29-05:00","Krc Test16","krctest16"
34922,"2017-01-19T13:22:39-06:00","Krc Test56","krctest56"
68244,"2018-09-12T09:16:13-05:00","Krc Test66","krctest66"
"canvas_api" is my Python script to pull data from an API endpoint. Then I just pipe that output to "jq" to format it into csv. If I send that to a file, I can just open in spreadsheet or import into a database table for further reporting. If necessary, I can schedule that to run regularly via scheduler or cron.
This discussion post is outdated and has been archived. Please use the Community question forums and official documentation for the most current and accurate information.