Bulk Change a Shared Drive's Permissions

1,418 views
Skip to first unread message

Jason Raynor [Staff]

unread,
Apr 28, 2022, 12:56:28 PM4/28/22
to GAM for Google Workspace
Hello everyone,

Is there any way to bulk change the permissions for all members of a Shared Drive? Say setting them all to viewer/reader instead of having to do them individually?

Thanks for your time
Jason Raynor

This e-mail and any attachments are the property of the Halton District School Board and are intended only for the use of the addressee(s) and may contain information that is privileged and/or confidential and/or protected under the Education Act, the Municipal Freedom of Information and Protection of Privacy Act and/or the Personal Health Information Protection Act. Unauthorized review, distribution, copying or disclosure is strictly prohibited. If you are not the intended recipient please notify the sender, delete this message and do not print, copy, distribute or disclose it further.

Ross Scroggs

unread,
Apr 28, 2022, 1:02:31 PM4/28/22
to google-ap...@googlegroups.com
Jason,

Everyone, including the organizers?

--
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/32a85e91-a984-4439-ac0a-0df84c3face7n%40googlegroups.com.

Jason Raynor [Staff]

unread,
Apr 28, 2022, 1:06:37 PM4/28/22
to GAM for Google Workspace
Yes, we starting cleanup of some Shared Drive abuses and as a intermediate step we want to make all users of the Shared Drive view/read only.

Ross Scroggs

unread,
Apr 28, 2022, 1:41:35 PM4/28/22
to google-ap...@googlegroups.com
Jason,

With Advanced GAM:
gam redirect csv ./SharedDriveACLs.csv multiprocess csv ./SharedDrives.csv gam print drivefileacls "~driveId" oneitemperrow
gam redirect stdout ./UpdateSharedDrtiveACLs.txt multiprocess redirect stderr ./UpdateSharedDriveACLsErrors.txt multiprocess csv ./SharedDriveACLs.csv gam update drivefileacl "~id" "id:~~permission.id~~" role reader

You'll make a CSV file SharedDrives.csv with a column driveId that list the Shared Dives on interest.

Ross

Jason Raynor [Staff]

unread,
Apr 28, 2022, 7:00:49 PM4/28/22
to GAM for Google Workspace
Thank you Ross!! My next questions I think are going to be relavent to many installations now that we have the new Storage reports in the admin panel.

1. Is it possible to search/filter on a Shared Drive creator? I am not seeing that in the GAMADV-XTD3 documentation.
2. Is there any way to get a list of all Shared Drives with NO domain members (only external members)?

Reply all
Reply to author
Forward
0 new messages