Parent switch folder to shared drive.

72 views
Skip to first unread message

Robert Fine

unread,
Sep 17, 2024, 11:12:04 AM9/17/24
to GAM for Google Workspace
Hi all, 

question about Parent switching. 

why can i parent switch from a shared drive to my drive using update drivefile <fileid> parenid <mydriveid>

but not from my-drive to shared drive ? 
gam user <owner mail> update drivefile <Folder-ID-in-My-Drive> parentid <Shared-Drive-ID> Update Failed: Moving folders into shared drives is not supported.
or
gam user <owner mail> update drivefile <Folder-ID-in-My-Drive> teamdriveparentid <Shared-Drive-ID> Update Failed: Moving folders into shared drives is not supported.

(GAMADV-XTD3 6.80.21)

Ross Scroggs

unread,
Sep 17, 2024, 12:02:35 PM9/17/24
to google-ap...@googlegroups.com
Robert,

It's a limitation of the API; you can do it in the GUI but not in the API.

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/85422726-cfe1-4daf-b15b-3473cb1b7b4dn%40googlegroups.com.

MingDa Zhu

unread,
Feb 11, 2026, 2:57:27 AM (10 days ago) Feb 11
to GAM for Google Workspace
Hi Ross,

Just to confirm on a latest update for such case. As we have a case where a My Drive folder has 60000+ direct child folder at depth 0.
So currently to move from My Drive to Shared Drive (same organization), it is still not supported by API and the solution would either be using the 'move' command which the outcome would be new files & folders OR manually split the task by batch in Google Drive UI.

Mingda

Reply all
Reply to author
Forward
0 new messages