Shared Drive Modification date

175 views
Skip to first unread message

Bajrang Lal

unread,
Oct 3, 2024, 11:08:00 AM10/3/24
to GAM for Google Workspace

Hi Team,

 I am looking for the GAM command to get the shared drive's modification date. I am using a command which gives the modification date of shared drive files but not based on the entire shared drive but the files inside the shared drive.

I need the command which gives the modification date of entire shared drive or the command which give the modification date based on files inside the shared drive but the output csv file should also contain the shared drive name or ID corresponding to that file.

BR

Bajrang

Bajrang Lal

unread,
Oct 3, 2024, 11:11:02 AM10/3/24
to google-ap...@googlegroups.com, Ross Scroggs
HI Ross,

Can you please look into this issue. need your help

Thanks & regards
Bajrang Lal
8800487960


--
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/c06c936e-3150-488b-a606-635608a90a94n%40googlegroups.com.

Ross Scroggs

unread,
Oct 3, 2024, 11:11:29 AM10/3/24
to google-ap...@googlegroups.com
See: https://github.com/taers232c/GAMADV-XTD3/wiki/Users-Drive-Files-Display#display-file-counts

gam user man...@domain.com print filecounts select teamdriveid <SharedDriveID> showlastmodification

Make sur uou have the lastest version of GAM.

Ross
----
Ross Scroggs



Amanda Wuest

unread,
Mar 28, 2025, 2:28:38 PM3/28/25
to GAM for Google Workspace
I found below in a prior post, works great, but am looking to add column for last modify date for anything in the Shared drive to try to start pruning likely old stuff - is that possible? Looks like that's not a field in the field list :(

gam config auto_batch_min 1 redirect csv ./TeamDriveOwners.csv multiprocess redirect stdout - multiprocess redirect stderr stdout all users print shareddrives fields id,name,createdTime role organizer


Ross Scroggs

unread,
Mar 28, 2025, 2:31:13 PM3/28/25
to google-ap...@googlegroups.com
Correct, the API doesn't have a field that indicates the lastbmodification date of any file on the drive.
You'd have to list all of the files on the drive with their modification dates and fid the oldest one.

Ross
----
Ross Scroggs


Reply all
Reply to author
Forward
0 new messages