GAM command to find nested files and folder details

909 views
Skip to first unread message

Udhayakumar Chinnamogu

unread,
Jun 5, 2023, 11:38:48 AM6/5/23
to GAM for Google Workspace
Good afternoon all,

I have a root folder which contains lots of nested files and folders, that needs to be transfer to a particular user. But i dont know how to find the owner details of the nested folders using GAM command. Can any one help me with the command to execute.




The content of this e-mail is confidential and is intended solely for the use of the individual or entity to whom it is addressed. If you have received this e-mail by mistake, please reply to this e-mail and follow with its deletion. If you are not the intended recipient, please note that it shall be considered unlawful to copy, forward or in any manner reveal the contents of this e-mail or any part thereof to anyone. Although Freshworks has taken reasonable precautions to ensure no malware is present in this e-mail, Freshworks cannot accept responsibility for any loss or damage arising from the use of this e-mail or attachments.

Kim Nilsson

unread,
Jun 5, 2023, 11:41:23 AM6/5/23
to GAM for Google Workspace
As long as all content is owned by internal users, and you (or some other known user) have read access to all content you can use the Claim command.


Udhayakumar Chinnamogu

unread,
Jun 5, 2023, 11:58:59 AM6/5/23
to google-ap...@googlegroups.com
Hi Kim,

Thanks for your reply. Changing ownership is second before that i need to find the ownership details of each nested files and folders inside the root folder.

freshworks-dew.png

Udhaya

Lead IT Engineer

Freshworks Inc.

p : +49 15257630530

e : udhayakumar...@freshworks.com

w : www.freshworks.com

fb.png   



On Mon, Jun 5, 2023 at 5:41 PM Kim Nilsson <there.is.no...@gmail.com> wrote:
As long as all content is owned by internal users, and you (or some other known user) have read access to all content you can use the Claim command.


--
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/6ee45daa-4892-484c-8d29-21f0da0748dbn%40googlegroups.com.

Kim Nilsson

unread,
Jun 5, 2023, 12:09:24 PM6/5/23
to google-ap...@googlegroups.com
Ok, then you need to print a filelist for all users files.
For it to not give you all users files, you can select a starting point.

Ross Scroggs

unread,
Jun 6, 2023, 1:45:17 PM6/6/23
to google-ap...@googlegroups.com
gam redirect csv ./SelectedFilesInfo.csv user us...@domain.com print filelist select <FolderID> fields id,name,mimetype,owners.emailaddress,basicpermissions showownedby any

Ross

--
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.


--

Udhayakumar Chinnamogu

unread,
Jun 9, 2023, 9:39:44 AM6/9/23
to GAM for Google Workspace
Hi Ross,

Thanks for your gam command, but still the details is not pull as expected because still it provides the nested files and folder owner email as same as the root folder owner email. But here i need to bring the nested folders and file owner details. I do have 22 thousands of nested folders and files, its really tricky to get the nested file owner details.

Regards,
Udhaya
Reply all
Reply to author
Forward
0 new messages