Move "shared with me" folder to shared drive

61 views
Skip to first unread message

Doug Reese

unread,
Jun 30, 2025, 5:08:26 PM6/30/25
to GAM for Google Workspace
Hi,

A user (user1) has a folder "Marketing Expenses" in her "Share with me" drive that was originally created by a user (user0) that no longer exists. The folder contains a hierarchy of folders and files. The folder was originally created 3 years ago, and nobody that has access to it knows who originally owned it. In the user1 drive interface, the "Shared by" name is the company name, not a user.

The entire "Marketing Expenses" folder needs to be moved to a shared drive. My user1 is a manager of the shared drive.

My user1 cannot simply drag the folder to a shared drive. That fails.

I tried the following:

gam user user1 copy drive file <ID for "Marketing Expenses" folder> recursive teamdriveparentid <shared drive ID>

Result:

User: <user email>, Copy 1 Drive File/Folder
  User: <user email>, Shared Drive ID: <shared drive ID>, Copy Failed: Does not exist

I also tried copying to a folder in the shared drive, providing the target folder ID, and the result is the same.

I can execute "gam user user1 show filetree select <ID>" on the "Marketing Expenses" folder and it displays all the contents of the folder.

The result of "gam user user1 show fileinfo" for the "Marketing Expenses" contains:

User: <user email>, Show 1 Drive File/Folder
  Drive Folder: Marketing Expenses (<folder ID>)
    capabilities:
      canAddChildren: True
      canAddFolderFromAnotherDrive: False
      canChangeCopyRequiresWriterPermission: False
      canChangeSecurityUpdateEnabled: False
      canChangeViewersCanCopyContent: False
      canComment: True
      canCopy: True
      canDelete: False
      canDeleteChildren: False
      canDisableInheritedPermissions: False
      canDownload: True
      canEdit: True
      canEnableInheritedPermissions: False
      canListChildren: True
      canModifyContent: True
      canModifyContentRestriction: False
      canModifyEditorContentRestriction: False
      canModifyLabels: False
      canModifyOwnerContentRestriction: False
      canMoveChildrenOutOfDrive: False
      canMoveChildrenOutOfTeamDrive: False
      canMoveChildrenWithinDrive: True
      canMoveChildrenWithinTeamDrive: True
      canMoveItemIntoTeamDrive: False
      canMoveItemOutOfDrive: False
      canMoveItemOutOfTeamDrive: False
      canMoveItemWithinDrive: True
      canMoveItemWithinTeamDrive: True
      canMoveTeamDriveItem: False
      canReadDrive: False
      canReadLabels: False
      canReadRevisions: True
      canReadTeamDrive: False
      canRemoveChildren: False
      canRemoveContentRestriction: False
      canRename: True
      canShare: False
      canTrash: True
      canTrashChildren: True
      canUntrash: False

I do not understand the "does not exist" message.

Thanks for any help.

Doug

Doug Reese

unread,
Jul 1, 2025, 2:44:51 PM7/1/25
to GAM for Google Workspace
Ross helped me resolve this issue. It turns out the Marketing Expenses folder was already on a shared drive, but buried around 5 levels deep in a folder that nobody would think to examine. This folder was then shared with user1 (and others). I added user1 as a manager of the root shared drive containing the folder, and she was able to move it into a new shared drive.

So in the end I did not use GAM to move the folders/files, but GAM was invaluable in tracking down the location and owner of the folder.

This is the command that provided enough information to find the folder, including everyone with whom the folder had been shared:

gam user user1 show fileinfo <folder ID> fullpath showshareddrivepermissions

Doug
Reply all
Reply to author
Forward
0 new messages