Using Python with JWT to get a list of files and folders

My request is VERY basic. Get a list of thee following:

  • List all top level folders
  • List the path of the folder
  • List the owners and co-admins
  • List the size of the folder including subfolders
  • List the number of items in the folder and subfolders

Using JWT for this and have enabled all scopes with apps + enterprise access

The real issue is that I STILL have to add the service account as a co-admin to get this data. How can I ensure my enterprise token access allows me to read data enterprise-wide? It is ridiculous that this isn’t even a report in the console that I must build a custom solution.

Hi @user258

Welcome to the forum.

We have plenty of examples using Python.

Take a look at our Python workshops:

This should get you started, and let us know if you have follow up questions.