Created
August 11, 2018 09:31
-
-
Save danjargold/c6542e68fe3a3b46eeb0172f914641bc to your computer and use it in GitHub Desktop.
Google script to list (on a Google Sheet) all files shared in your google drive, including all viewers, editors, and sharing permissions. Credit goes to @woodwardtw (https://gist.github.com/woodwardtw/22a199ecca73ff15a0eb) as this is an improvement on his code which only assesses a single folder and one level of sub-folders down.
Hey,
Thanks a lot for this, it helped me a lot.
I've made some improvments, so it's harder to timeout when there are lots of files involved.
(it took me about 3min for 500 files instead of timing out at 6mn).
I just cached all the files in a list and flushed them all at once into the spreadsheet instead of calling the API for each files.
you can check that out here : https://github.com/moya-a/G-Drive-SharedFiles-Checker
Cheers :)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Code throws "Exception: The file or folder has invalid access settings." on the sharing permissions instructions. Discovering files with particular sharing permissions is the point of the code. How can the code anticipate, capture, and continue?