We can use https://github.com/GAM-team/GAM to create catalogues of Google Drive files by drive location, owner, last modified time, etc. I’ve run all the calls below using legacy GAM, but we might consider using GAM7 instead.
First, some useful resources:
A hello world call that prints a list of all the files in a shared drive:
gam user print filelist select teamdrive '' showownedby any id title filepath viewed modifieddate