Skip to main content
1

Initialize types, variables, and helpers

This script iterates through all AppStore apps, fetches approvers and admins, and keeps a record of inactive users together with the application that they are an approver or admin of.To do that, create helper types to parse the information. Then define a helper function that populates the dictionary used to track inactive users.Paste your own API token in line 33.This script uses Python3 and uses the “requests” Python library, which you will need to install with pip install requests if you don’t already have it installed.
2

Iterate through AppStore apps and count

Use the get AppStore apps endpoint to iterate through each of the AppStore apps.For each of those apps, call the GET AppStore app settings endpoint to get further information about the AppStore settings for that app.Then, update the dictionary for record keeping.
3

Print results

Iterate through each of the inactive users you found, and print the AppStore apps they are approvers or admins for.