Search code examples
google-drive-apigoogle-drive-shared-drivemovefile

Move folder from team drive


how do you change the parent of a folder in a team drive. AddParents / RemoveParents generates an error "in a team drive a file has only one parent" and you can only read access to the parent collection. Should I make a copy of the file and delete the existing file? Thank you


Solution

  • You need to remove the parent folder first then add the new parent.

    Or you can do an update changing the parent from one to the next.

    The main issue will be if this is even possible with team drive as your going to need to have the permission to do this.