copy user's full set of files to a folder owned by another user

168 views
Skip to first unread message

Clinton Smith

unread,
Oct 5, 2021, 7:33:28 PM10/5/21
to GAM for Google Workspace
Is there a GAM command (or series of commands) that will carry out the following operation:

1) Copy a source user's set of files (including recursive copying of all subfolders and their associated contents) to a target user's account into a root-level folder on the target user's account.  For example, the target user has a folder called "COPY_OF_JANE_FILES" at the root (i.e., My Drive) level.  So the source file tree should be copied into that COPY_OF_JANE_FILES folder.
2) The copying should remove all sharing from the copied files, but preserve the MIME type of each source file.
3) The folder structure of the source files should be preserved

Thanks,
Clinton

Robert Robinson

unread,
Oct 6, 2021, 10:16:57 AM10/6/21
to GAM for Google Workspace

Ross Scroggs

unread,
Oct 6, 2021, 3:45:14 PM10/6/21
to google-ap...@googlegroups.com
Clinton,

Robert pointed you to the right place.
Copy will do all of the steps that you want; once it's successful, you can delete the original files.

Contact me directly with further questions.

Ross



The Stephen Perse Foundation Salisbury Villas, the Stephen Perse Foundation
Madingley, the Stephen Perse Foundation Rosedale House, the Stephen Perse
Foundation Senior School, the Stephen Perse Foundation Sixth Form, SPF
International and Dame Bradbury's School are the schools of the Stephen
Perse Foundation. The Stephen Perse Foundation is a Registered Charity
(No:1120608) and a Company limited by guarantee, registered in England and
Wales (No:6113565). Its registered office is 19 Union Road, Cambridge,
Cambridgeshire CB2 1HF.

This e-mail and any attached file is intended only for the use of the addressee(s) named above and is confidential and may be legally privileged. If you have received this email and are not a named addressee please delete it; you must not disclose, copy, distribute or use the contents in any way that may be unlawful. Although the Stephen Perse Foundation operates anti-virus programmes, it does not accept responsibility for any loss or damage whatsoever that arises from the use of the email or attachments. In addition the Stephen Perse Foundation cannot be held liable for incomplete or corrupted transmissions, delay in receipt or any errors or omissions in the content of the email, as a result of transmission. Any views or opinions presented are solely those of the author and do not necessarily represent those of the Foundation.

--
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/45602759-4257-4d9b-8b70-5d333c6010aan%40googlegroups.com.


--
Reply all
Reply to author
Forward
0 new messages