Files history required

168 views
Skip to first unread message

Just Wild

unread,
Oct 30, 2023, 6:52:13 AM10/30/23
to GAM for Google Workspace
 I was transferring files to a user via shared disks. There was a problem that some files were not transferred but fell into Orphans. If you go to the file, you can see the history of actions and where it was before. Is it possible to pull this history for each file through gam?

Ross Scroggs

unread,
Oct 30, 2023, 10:22:16 AM10/30/23
to google-ap...@googlegroups.com
Try this;

gam report drive filter "doc_id==<DriveFileID>"

Ross
----
Ross Scroggs



On Oct 30, 2023, at 3:52 AM, Just Wild <justw...@gmail.com> wrote:

 I was transferring files to a user via shared disks. There was a problem that some files were not transferred but fell into Orphans. If you go to the file, you can see the history of actions and where it was before. Is it possible to pull this history for each file through gam?

--
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/661b147a-5a9c-4b5d-9505-de6c10ad0b4en%40googlegroups.com.

Just Wild

unread,
Oct 30, 2023, 1:15:56 PM10/30/23
to GAM for Google Workspace
Hi Ross!
yep its work thx.
But how I can collect this data for 20k files?
If I run  gam csv files_id.csv gam report drive filter "~filter" > report.csv. (in files_id.csv would be one column with doc_id==<DriveFileID> data) would it work?

понеділок, 30 жовтня 2023 р. о 16:22:16 UTC+2 Ross Scroggs пише:

Ross Scroggs

unread,
Oct 30, 2023, 2:05:16 PM10/30/23
to google-ap...@googlegroups.com
Just put the file ID in the csv file; files_id.csv
id
1234
5678
...


gam config num_threads 10 redirect csv ./FileActions.csv multiprocess redirect stdout - multiprocess redirect stderr stdout csv files_id.csv gam report drive filter "doc_id==~~id~~"

Ross
----
Ross Scroggs


Just Wild

unread,
Nov 2, 2023, 1:36:22 PM11/2/23
to GAM for Google Workspace
HI thx. I apologize for the long response time. A lot of files - I waited a long time for the result of the command.
I checked the command, but it looks like it takes data from google logs. I have a problem - many files don't have logs (I don't know why).
Is it possible to get the data from the activity tab? (Each file, if you open the info panel, shows activity)
 
Знімок екрана 2023-11-02 о 19.30.29.png
понеділок, 30 жовтня 2023 р. о 20:05:16 UTC+2 Ross Scroggs пише:

Ross Scroggs

unread,
Nov 2, 2023, 1:54:16 PM11/2/23
to google-ap...@googlegroups.com
Ross
----
Ross Scroggs


On Nov 2, 2023, at 10:36 AM, Just Wild <justw...@gmail.com> wrote:

HI thx. I apologize for the long response time. A lot of files - I waited a long time for the result of the command.
I checked the command, but it looks like it takes data from google logs. I have a problem - many files don't have logs (I don't know why).
Is it possible to get the data from the activity tab? (Each file, if you open the info panel, shows activity)
 
<?????? ?? рана 2023-11-02 о 19.30.29.png>
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/29ed2931-81c9-4600-91b9-df74c22f3d6fn%40googlegroups.com.
<?????? ?? рана 2023-11-02 о 19.30.29.png>

Just Wild

unread,
Nov 4, 2023, 11:41:07 AM11/4/23
to GAM for Google Workspace
Hi I think I found more useful command.
I used "gam config num_threads 10 redirect csv ./folderActions_fulllist.csv multiprocess redirect stdout - multiprocess redirect stderr stdout csv folders_full_list.csv gam user user....@domain.com print driveactivity folderid "~id"
But report gives to much data. is it possible get only this columns type with different  numbers (actions0,actions1.....actionsN):
actions.0.detail.move.addedParents.0.driveItem.driveFolder.type

actions.0.detail.move.addedParents.0.driveItem.folder.type

actions.0.detail.move.addedParents.0.driveItem.name

actions.0.detail.move.addedParents.0.driveItem.title

actions.0.detail.move.removedParents.0.driveItem.driveFolder.type

actions.0.detail.move.removedParents.0.driveItem.folder.type

actions.0.detail.move.removedParents.0.driveItem.name

actions.0.detail.move.removedParents.0.driveItem.title

?
четвер, 2 листопада 2023 р. о 19:54:16 UTC+2 Ross Scroggs пише:

Just Wild

unread,
Nov 6, 2023, 6:15:10 AM11/6/23
to GAM for Google Workspace
HI Ross,
I found information what I asked. 
Thx for your help!

субота, 4 листопада 2023 р. о 17:41:07 UTC+2 Just Wild пише:
Reply all
Reply to author
Forward
0 new messages