ACls, General question and command question

120 views
Skip to first unread message

Sergio Alvarez

unread,
Jan 30, 2022, 6:07:10 PM1/30/22
to GAM for Google Workspace
Hi, 

I have the current situation, 

I need to print the ACLs for all shared drives but also the ACLS for the top-level folder, meaning, all ACLS  just for the first level after root. I have tested the following:

gam print drivefileacls <DriveID> oneitemperrow fields displayname,role todrive

--- Works on getting the ACLS for the shared drive 

gam show teamdriveacls oneitemperrow fields displayname,role

--- Works on getting all the ACLS for the root of the shared drive, but I don't see one that will list the ACLS per folder level or one command that will let me print just one specific level in a shared drive and print those ACLS. 

If anyone can point me in the right direction it will be really appreciated. 




Ross Scroggs

unread,
Jan 30, 2022, 9:58:50 PM1/30/22
to google-ap...@googlegroups.com
--
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/d6288415-d13f-4115-b137-7239cac7a250n%40googlegroups.com.

Sergio Alvarez

unread,
Feb 1, 2022, 9:10:46 AM2/1/22
to GAM for Google Workspace
Thank you Ross, 

do you know then why "gam print drivefileacls <DriveID> oneitemperrow fields displayname,role todrive" would not display at least all the ACLs for the top folder of the share drive?

Ross Scroggs

unread,
Feb 1, 2022, 9:54:12 AM2/1/22
to google-ap...@googlegroups.com
Sergio,

This command: gam print drivefileacls <DriveID> oneitemperrow fields displayname,role todrive
will only print the ACLs on the Shared Drive itself, it will/can not print any ACLs for files and folders on the Shared Drive.
To do that yiu have tio identify an organizer of the Shared Drive.
To only see top level folders you would modify the command line shown in the documentation:
gam redirect csv ./filelistperms.csv multiprocess csv ./TeamDriveOrganizers.csv gam user "~organizers" print filelist select teamdriveid "~id" depth 0 showmimetype gfolder fields teamdriveid,id,name,permissions

Reply all
Reply to author
Forward
0 new messages