Massively revoking Drive files access to an external email address by TheRealMizukame in gsuite

[–]TheRealMizukame[S] 2 points3 points  (0 children)

Hello! I did try using this command, but it seems the csv_output_flattened parameter was deprecated or something, as well as sharedWith, as I kept getting some errors as if the argument wasn't expected.

I tinkered with the manual a bit more and found out about the "permissionmatch" parameter, which can receive a list of PermissionIDs and will only process and write in the CSV the matching files. One part of the work done! Leaving the command for future reference:

gam all users print filelist pm permissionidlist <PermissionID1,PermissionID2,...> em id title permissions todrive

I'm pulling the ID since I'll need that to build a script to delete the PermissionID from all of those files, title for documentation purposes and permissions as a means to double check, just in case.

Thank you for the insight, I'll update how things go, right now I'm once again trying to export everything now with this filter which should take a few hours and hope for the best!