gam redirect csv ./source_user_files.csv user sourc...@example.com print filelist query "'sourc...@example.com' in owners and trashed = false" fields id
Getting all Drive Files/Folders that match query ('me' in owners and ('sourc...@example.com' in owners and trashed = false)) for sourc...@example.com
gam user targe...@example.com create drivefile drivefilename "Shared Files" mimetype gfolder
User: targe...@example.com, Drive Folder: Shared Files(<folder_id>), Created
gam user targe...@example.com add drivefileacl <folder_id> user sourc...@ualr.edu role writer
User: targe...@example.com, Add 1 Drive File/Folder ACL
User: targe...@example.com, Drive File/Folder ID: <folder_id>, Permission ID: sourc...@ualr.edu, Added
<user_name>
id: <id_number>
role: writer
type: user
emailAddress: sourc...@example.com
domain: example.com
permissionDetails:
inherited: False
permissionType: file
role: writer
photoLink: https://lh3.googleusercontent.com/a-/<photo_id>=s64
deleted: False
pendingOwner: False
gam csv ./source_user_files.csv gam user sourc...@example.com create drivefile drivefilename "~id" mimetype gshortcut shortcut ~id parentid <folder_id>
2026-06-08T09:41:08.920-05:00,0/922,Using 5 processes...
User: sourc...@example.com, Drive Shortcut: <shortcut_id>(file_id), Created
#and so on for hundreds of lines
I thought that was done, so I notified target_user that he should now have a folder in Shared with me full of shortcuts to source_user's My Drive contents. Not long after, he wrote back with a screenshot from Google Drive on Windows, showing drive objects with what looks like Document IDs instead of file names.
I'm not sure what I did wrong. I'm not even sure Google Drive isn't the problem. But I would like to fix it.
Thanks,
John A