Failing to give a user a good view of another user's My Drive

30 views
Skip to first unread message

John Adams

unread,
Jun 8, 2026, 3:03:11 PM (5 days ago) Jun 8
to GAM for Google Workspace
Hi, folks,

     I tried and tried and still failed on this. I was asked to give someone a folder in which would be shortcuts to every item in another user's My Drive. So I did all this:

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

John Adams

unread,
Jun 8, 2026, 3:36:18 PM (5 days ago) Jun 8
to GAM for Google Workspace
I said, "I'm not even sure Google Drive isn't the problem," but now I've tested this with my own My Drive, and it's wrong in the browser, too, so Google Drive isn't the problem.

Ross Scroggs

unread,
Jun 8, 2026, 7:37:05 PM (5 days ago) Jun 8
to google-ap...@googlegroups.com


gam csv ./source_user_files.csv gam user sourc...@example.com create drivefileshortcut "~id" parentid <folder_id>

Ross

----
Ross Scroggs


John Adams

unread,
Jun 9, 2026, 4:49:28 PM (4 days ago) Jun 9
to GAM for Google Workspace
This fixed me right up. Thanks, Ross!
Reply all
Reply to author
Forward
0 new messages