Reverse a drive file transfer ownership

3,550 views
Skip to first unread message

Jason Galati

unread,
Aug 10, 2017, 11:44:46 AM8/10/17
to GAM for G Suite
Hi,

Is it possible to revert a drive file transfer for bulk files?
I executed $gam create datatransfer user_name drive new_user privacy_level shared,private
^ To transfer all files into another user's ownership.

I have the drive file transfer ID. Is there a way to revert the transfer back the other way?

Jason Galati

unread,
Aug 11, 2017, 3:25:39 AM8/11/17
to GAM for G Suite
I guess It may be possible to print all file's from the user and then re-share changing permissions per file ID.. 
But seems like there's no way to list all files within a folder using:
user user_name print filelist id title permissions > filelistperms.csv

I would need to. Print all files. Find the files specific to the transferred folder and bulk reshare/change permissions.
Is this possible?

Ross Scroggs

unread,
Aug 11, 2017, 9:44:24 AM8/11/17
to google-ap...@googlegroups.com
Jason,

In my Advanced GAM (https://github.com/taers232c/GAMADV-X) you can do this:

gam user user_name print filelist id title permissions select drivefilename "FolderName"  > filelistperms.csv

This will give you id, title and permissions for all files in FolderName

--
You received this message because you are subscribed to the Google Groups "GAM for G Suite" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-man...@googlegroups.com.
To post to this group, send email to google-ap...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-apps-manager.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/f2487bad-9837-4626-bd8a-cc6ea7591b9e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Jason Galati

unread,
Aug 11, 2017, 11:53:21 AM8/11/17
to GAM for G Suite
Thanks Ross. 


On Friday, 11 August 2017 15:44:24 UTC+2, Ross Scroggs wrote:
Jason,

In my Advanced GAM (https://github.com/taers232c/GAMADV-X) you can do this:

gam user user_name print filelist id title permissions select drivefilename "FolderName"  > filelistperms.csv

This will give you id, title and permissions for all files in FolderName

On Aug 11, 2017, at 12:25 AM, 'Jason Galati' via GAM for G Suite <google-ap...@googlegroups.com> wrote:

I guess It may be possible to print all file's from the user and then re-share changing permissions per file ID.. 
But seems like there's no way to list all files within a folder using:
user user_name print filelist id title permissions > filelistperms.csv

I would need to. Print all files. Find the files specific to the transferred folder and bulk reshare/change permissions.
Is this possible?

On Thursday, 10 August 2017 17:44:46 UTC+2, Jason Galati wrote:
Hi,

Is it possible to revert a drive file transfer for bulk files?
I executed $gam create datatransfer user_name drive new_user privacy_level shared,private
^ To transfer all files into another user's ownership.

I have the drive file transfer ID. Is there a way to revert the transfer back the other way?


--
You received this message because you are subscribed to the Google Groups "GAM for G Suite" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-manager+unsub...@googlegroups.com.

Jason Galati

unread,
Aug 11, 2017, 12:25:10 PM8/11/17
to GAM for G Suite
Hi Ross.
Would this also give all subfolders and files within the subfolders recursively?

Thanks


On Friday, 11 August 2017 15:44:24 UTC+2, Ross Scroggs wrote:
Jason,

In my Advanced GAM (https://github.com/taers232c/GAMADV-X) you can do this:

gam user user_name print filelist id title permissions select drivefilename "FolderName"  > filelistperms.csv

This will give you id, title and permissions for all files in FolderName

On Aug 11, 2017, at 12:25 AM, 'Jason Galati' via GAM for G Suite <google-ap...@googlegroups.com> wrote:

I guess It may be possible to print all file's from the user and then re-share changing permissions per file ID.. 
But seems like there's no way to list all files within a folder using:
user user_name print filelist id title permissions > filelistperms.csv

I would need to. Print all files. Find the files specific to the transferred folder and bulk reshare/change permissions.
Is this possible?

On Thursday, 10 August 2017 17:44:46 UTC+2, Jason Galati wrote:
Hi,

Is it possible to revert a drive file transfer for bulk files?
I executed $gam create datatransfer user_name drive new_user privacy_level shared,private
^ To transfer all files into another user's ownership.

I have the drive file transfer ID. Is there a way to revert the transfer back the other way?


--
You received this message because you are subscribed to the Google Groups "GAM for G Suite" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-manager+unsub...@googlegroups.com.

Ross Scroggs

unread,
Aug 11, 2017, 11:15:39 PM8/11/17
to google-ap...@googlegroups.com
Jason,

gam <UserTypeEntity> print|show filelist [todrive] [anyowner|(showownedby any|me|others)] [query <QueryDriveFile>] [fullquery <QueryDriveFile>] [select <DriveFileEntity>|orphans] [depth <Number>]
        [filepath] [allfields|<DriveFieldName>*] (orderby <DriveOrderByFieldName> [ascending|descending])*
The depth <Number> argument controls which files or folders within a selected folder are listed.
If <Number> equals -1 (the default), all files and folders in the selected folder and below are listed; fully recursive.
If <Number> is 0, files or folders within a selected folder are listed, no descendents are listed.
If <Number> is greater than 0, the files and folders within the selected folder and those files and folders <Number> levels below the selected folder are listed.

Ross

To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-man...@googlegroups.com.

To post to this group, send email to google-ap...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-apps-manager.

Jason Galati

unread,
Aug 14, 2017, 3:24:43 AM8/14/17
to GAM for G Suite
Fantastic. thanks
Jason,

Jason Galati

unread,
Aug 15, 2017, 3:50:34 AM8/15/17
to GAM for G Suite
Hey Ross,

Queried a folder and it's returning 0 results now, although there is 100% a folder in the user's drive with that exact name.

I'm wondering, when searching for a folder name, does the syntax change for any special characters? Eg:
gam user user_name print filelist id title permissions select drivefilename "FolderName"  > filelistperms.csv

Does "FolderName" get written exactly as-is, if the foldername inclues a "." or "@":
Would the below syntax be correct?
gam user user_name print filelist id title permissions select drivefilename "folde...@name.com"  > filelistperms.csv


On Friday, 11 August 2017 15:44:24 UTC+2, Ross Scroggs wrote:
Jason,

In my Advanced GAM (https://github.com/taers232c/GAMADV-X) you can do this:

gam user user_name print filelist id title permissions select drivefilename "FolderName"  > filelistperms.csv

This will give you id, title and permissions for all files in FolderName

On Aug 11, 2017, at 12:25 AM, 'Jason Galati' via GAM for G Suite <google-ap...@googlegroups.com> wrote:

I guess It may be possible to print all file's from the user and then re-share changing permissions per file ID.. 
But seems like there's no way to list all files within a folder using:
user user_name print filelist id title permissions > filelistperms.csv

I would need to. Print all files. Find the files specific to the transferred folder and bulk reshare/change permissions.
Is this possible?

On Thursday, 10 August 2017 17:44:46 UTC+2, Jason Galati wrote:
Hi,

Is it possible to revert a drive file transfer for bulk files?
I executed $gam create datatransfer user_name drive new_user privacy_level shared,private
^ To transfer all files into another user's ownership.

I have the drive file transfer ID. Is there a way to revert the transfer back the other way?


--
You received this message because you are subscribed to the Google Groups "GAM for G Suite" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-manager+unsub...@googlegroups.com.

Jason Galati

unread,
Aug 15, 2017, 4:12:20 AM8/15/17
to GAM for G Suite
and the folder contains many, many files.

Jason Galati

unread,
Aug 15, 2017, 5:01:05 AM8/15/17
to GAM for G Suite
Found the problem. Files weren't owned by the user.
used the 'filesownedby any' option.

Doesn't really make sense.. since the file transfer should have transferred all files into the users ownership in the first place. Regardless, this can be fixed now.


On Tuesday, 15 August 2017 09:50:34 UTC+2, Jason Galati wrote:

Levi Richardson

unread,
Dec 21, 2023, 4:50:52 PM12/21/23
to GAM for Google Workspace
Hey Jason, 

I see this is a pretty old thread so there is a chance it's dead, but figured I'd shoot. 

I'm in the same boat currently looking to reverse a drive transfer that I did. I'm not getting any results for the folder, and was curious how you included the "filesownedby any" option in your search. 

Thank you if you see this. 

Ross Scroggs

unread,
Dec 21, 2023, 4:57:38 PM12/21/23
to google-ap...@googlegroups.com
Send me a Meet/Zoom invitation.

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 on the web visit https://groups.google.com/d/msgid/google-apps-manager/5622215b-9109-4fd7-9c76-04a0efe015fdn%40googlegroups.com.

Reply all
Reply to author
Forward
0 new messages