docs/enterprise/extension_query_script.md
Before using CBCM Takeout API you will need to do some initial setup:
You can download the scripts here (or here for a python 2.7 compatible version).
With the service account keys, you can now run the script which uses Google API Client Libraries to make the necessary queries to the API. The script requires that both the service account keys you downloaded from the developers console as well as the e-mail of an admin user in your domain that is allowed to access the data you wish to query.
You can run the script from the command-line:
python extension_query.py --service_account_key_path <service_account_key_file> --admin_email <admin_email>
(also: python extension_query.py --help for a reminder of the
argument names)
Here is an example of what that data will look like: