Andrea:
You can supply a CSV file list of users and have a command run repeatedly for each.
How you do this depends on which version of GAM you are running.
For Ross’ Advanced GAM: https://github.com/taers232c/GAMADV-XTD3/wiki/Bulk-Processing#csv-files
I don’t recall Jay’s original GAM well enough to know where to tell you to look, maybe someone else on the list can help with that.
--
From:
google-ap...@googlegroups.com <google-ap...@googlegroups.com> on behalf of Andrea Vail <andre...@kroo.com>
Date: Wednesday, April 19, 2023 at 8:58 AM
To: GAM for Google Workspace <google-ap...@googlegroups.com>
Subject: [GAM] Remove Multiple Users from Shared Drives
[EXTERNAL EMAIL]
--
You received this message because you are subscribed to the Google Groups "GAM for Google Workspace" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
google-apps-man...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/google-apps-manager/420997df-f99f-42fa-b2e0-4ca0025e197dn%40googlegroups.com.
Advanced GAM
Make a file Users.csv with one column: User
User
...
Get users's Shared Drive access
gam redirect csv ./UsersSharedDrives.csv multiprocess csv Users.csv gam user "~User" print shareddrives fields id,name
Delete user's Shared Drive access \
gam redirect stdout ./DeleteSharedDriveAccess.csv multiprocess redirect stderr stdout csv ./UsersSharedDrives.csv gam delete drivefileacl "~id" "~User"
Ross
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/DM8PR06MB77174BF25697A88E0EA74F8E90629%40DM8PR06MB7717.namprd06.prod.outlook.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/a39ce29d-e504-44f4-b17d-07ba9c15cb9bn%40googlegroups.com.