gam redirect csv ./OUSharedDriveAccess.csv ou /Test print shareddrives fields id,name
gam redirect stdout ./DeleteOUSharedDriveAccess.txt multiprocess redirect stderr stdout csv ./OUSharedDriveAccess.csv gam delete drivefileacl ~id ~User
Ross
--
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/47f8611b-0a0e-41cc-90d3-80488c6fd9f6n%40googlegroups.com.
gam redirect csv ./UserSharedDriveAccess.csv user $username print shareddrives fields id,name
gam redirect stdout ./DeleteUserSharedDriveAccess.txt multiprocess redirect stderr stdout csv ./UserSharedDriveAccess.csv gam delete drivefileacl ~id ~User
Joshua McKenna |
Technical Operations Executive Manager |
Grace Bible Church | 979.353.2570 |
You received this message because you are subscribed to a topic in the Google Groups "GAM for Google Workspace" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-apps-manager/8TOj_pPqtGQ/unsubscribe.
To unsubscribe from this group and all its topics, 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/99ad42c7-fb52-400a-abee-da102f9a7946n%40googlegroups.com.
Joshua McKenna |
Technical Operations Executive Manager |
Grace Bible Church | 979.353.2570 |
Disclaimers apply, for full details see: https://hackney.gov.uk/email-disclaimer
--
You received this message because you are subscribed to a topic in the Google Groups "GAM for Google Workspace" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-apps-manager/8TOj_pPqtGQ/unsubscribe.
To unsubscribe from this group and all its topics, 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/cfa19784-3839-488b-a137-652d97630d94n%40googlegroups.com.
gam user ${separateduid} print teamdrives > /tmp/rmteamdriveaclsdriveids.txt
gam csv /tmp/rmteamdriveaclsdriveids.txt gam user ${superadmin} delete drivefileacl "~id" ${separateduid} asadmin
Ross
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/d0d07c6d-a8a3-4dd6-9d18-78e7222ab685n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/206AE1BB-0465-4C4A-A5E9-A4FD60C53515%40gmail.com.
--
Best regards,
Roman Gordienko
DevOps Engineer
Itera Research | www.itera-research.com
JOSHUA MCKENNA
Technical Operations Executive Manager Grace Bible Church | 979.353.2570
On Feb 12, 2024 at 2:44 AM -0600, 'Temple Rodgers' via GAM for Google Workspace <google-ap...@googlegroups.com>, wrote:
I love to avoid csv's if I can. I have a daily scheduled job that runs automatically to get me all the acls into a spreadsheet, which @ross helped me to formulate a couple (few?) years ago ...gam print teamdriveacls oneitemperrow todrive tdfileid <spreadsheet id> tdupdatesheet tdsheet "SharedDrive ACLs" tdclearfilter true tdtitle "All SharedDrive ACLs"This generates a single sheet with everything I want. Then I can filter that output or create pivot tables to change/remove acls as I need to by creating a new tab and running the GAMADV command on that sheet, I can copy the SharedDriveID and User to a new tab and use that to modify or delete permissions:gam csv gsheet username <spreadsheet id> "DeletePermissions" gam delete drivefileacl ~SharedDriveID ~User"DeletePermissions" is the name of the tab.That way I don't have to worry about the quotes around the various fields and everything's kept in Google Drive rather than in a folder on the computer. The spreadsheet's a great reference point where I can find out up to date information quickly.Temple
On Friday 9 February 2024 at 21:17:14 UTC Josh McKenna wrote:
After running with verbose output, I tried fully enclosed csv variables with double ~~ ...and it worked. Thanks Brian!
JOSHUA MCKENNA
To view this discussion visit https://groups.google.com/d/msgid/google-apps-manager/540e375e-1a1b-4abb-8313-e905602d36e8n%40googlegroups.com.