Grant editor access to my Admin account to a folder and sub folders and files

446 views
Skip to first unread message

Bassel Massamiri

unread,
Nov 15, 2022, 6:23:55 PM11/15/22
to GAM for Google Workspace
Hello Everyone,

Is there a way to grant access to my Admin account on folder contains so many subfolders and files ,i need an edit access on all the files and folders under this root folder

I tried this but i still see that i don't have access on some of the files:

gam user <File Owner Email> add drivefileacl <File ID> user <New Editor Email> role editor

Thanks,

Sergio Alvarez

unread,
Nov 16, 2022, 9:00:06 AM11/16/22
to GAM for Google Workspace

Hi, 

What you want to do is first list all of the files and folders that belongs to that specific folder, you can do this for an specific folder in an specific user 

gam redirect csv - todrive tdtitle "<File Name>" user <User Email Address> print filelist select <Top Folder ID> fields id,name,webviewlink,owners.emailaddress,modifiedtime

Once you have that file, just ran the command you have on the list of all files/folders 

Bassel Massamiri

unread,
Nov 16, 2022, 12:06:26 PM11/16/22
to google-ap...@googlegroups.com
Thanks Sergio,

That worked

--
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/b5e05997-c47f-4d15-94ba-5cb5fa9922b0n%40googlegroups.com.

Jonathan Gott

unread,
Feb 5, 2024, 11:10:36 AM2/5/24
to GAM for Google Workspace
Hey Sergio,

When I try this command I get

ERROR: redirect is not a valid argument for "gam"

Am I missing something here?

Thank you.

Ross Scroggs

unread,
Feb 5, 2024, 11:25:23 AM2/5/24
to google-ap...@googlegroups.com
You're using Standard GAM, redirect is only supported in Advanced GAM.

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.


--

Jonathan Gott

unread,
Feb 5, 2024, 1:28:30 PM2/5/24
to GAM for Google Workspace
Thanks Ross!

I got that setup and these suggestions are working.

However, it only shows files owned by the user. Is there a way to show all files and folders under the specified folders not owned by the user?

Thanks!

Ross Scroggs

unread,
Feb 5, 2024, 1:35:30 PM2/5/24
to google-ap...@googlegroups.com
Add one of these to the command
showownedby me - this is the default
showownedby any - show all files regardless of owner
showownedby others - only show files owned by someone other than the user

Ross
----
Ross Scroggs



Jonathan Gott

unread,
Feb 5, 2024, 1:38:36 PM2/5/24
to GAM for Google Workspace
That worked, thanks Ross!

dRe

unread,
Feb 5, 2024, 2:54:35 PM2/5/24
to GAM for Google Workspace
Hi Ross,

How to make'it to enter into shortcuts and scan the folders-subfolders?

Thanks

Ross Scroggs

unread,
Feb 5, 2024, 5:11:48 PM2/5/24
to google-ap...@googlegroups.com
There is currently no capability in Advanced GAM to do this.

Ross
----
Ross Scroggs


Reply all
Reply to author
Forward
0 new messages