Google Shared Drives → Microsoft Teams / SharePoint Online migration

56 views
Skip to first unread message

M.Yaseq ALI-IT LFIGP

unread,
Mar 9, 2026, 5:41:43 AM (8 days ago) Mar 9
to GAM for Google Workspace
Hello,

Is there a way using GAM  to export the total size of each Shared Drive, ideally into a CSV file (Shared Drive name + total storage used)?

gam print teamdriveacls oneitemperrow fields teamDriveName,teamDriveId,email,role > SharedDrivePermissions.csv (used to export the shared drive info except DriveSize)

Im using - GAM 7.01.03, Python 3.13.0 64-bit final
Windows 11 10.0.26200 SP0 Multiprocessor Free AMD64

If there is a command or script to retrieve this information for all Shared Drives, it would be very helpful for migration planning.

Ross Scroggs

unread,
Mar 9, 2026, 11:09:01 AM (8 days ago) Mar 9
to google-ap...@googlegroups.com
Export size

gam redirect csv ./TeamDriveOrganizers.csv print shareddriveorganizers includefileorganizers'


gam config csv_output_header_filter "id,name,Total,Size,Item cap" csv_input_row_filter "organizers:regex:^.+$" redirect csv ./TeamDriveFileCountsSize.csv multiprocess csv ./TeamDriveOrganizers.csv gam user "~organizers" print filecounts select teamdriveid "~id" showsize


Export membership
gam config csv_output_header_drop_filter "User,createdTime,permission.photoLink,permission.permissionDetails" redirect csv ./SharedDriveMembers.csv print shareddriveacls oneitemperrow
Your version is out of date, current version is 7.35.01

Ross
----
Ross Scroggs



--
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 visit https://groups.google.com/d/msgid/google-apps-manager/7574a8d4-a3dc-44f1-9051-3cf355b221c7n%40googlegroups.com.

Reply all
Reply to author
Forward
0 new messages