Listing Shared drives that have copyrequireswriterpermission set to true/false

44 views
Skip to first unread message

Eisen M

unread,
Mar 20, 2025, 9:38:28 AM3/20/25
to GAM for Google Workspace
Hi everyone,

So I can get files that have copyrequireswriterpermission  set to true/false or update it for files and shared drives...

gam user <email>  print filelist select teamdriveid <drive-ID> fields id,name,copyrequireswriterpermission todrive

...but how to only list shared drives that have copyrequireswriterpermission  set to true /false. This setting is found under Shared drive settings.

Please help?

thanks
Eisen

Ross Scroggs

unread,
Mar 20, 2025, 9:57:49 AM3/20/25
to google-ap...@googlegroups.com
gam config csv_output_row_filter "copyRequiresWriterPermission:boolean:true" user <email>  print filelist select teamdriveid <drive-ID> fields id,name,copyrequireswriterpermission todrive

See: https://github.com/GAM-team/GAM/wiki/CSV-Output-Filtering#column-row-filtering

Ross
----
Ross Scroggs



--
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 visit https://groups.google.com/d/msgid/google-apps-manager/09af8f4c-efd0-4b38-b02b-69597f01f368n%40googlegroups.com.

Eisen M

unread,
Mar 20, 2025, 10:14:29 AM3/20/25
to GAM for Google Workspace
Hi Ross,

I think the question was misunderstood. 'Allow viewers and commenters to download, print, and copy files' can be set on the shared drive and individual files. I wanted to get list of shared drives, not files that have copyRequiresWriterPermission set to true/false.  

Possible?

Thanks 
Eisen

Ross Scroggs

unread,
Mar 20, 2025, 10:22:47 AM3/20/25
to google-ap...@googlegroups.com

gam config csv_output_row_filter "restrictions.copyRequiresWriterPermission:boolean:true" print shareddrives


Ross

----
Ross Scroggs


Eisen M

unread,
Mar 20, 2025, 10:43:02 AM3/20/25
to GAM for Google Workspace
Brilliant.

gam config csv_output_header_filter "id, name, restrictions.copyRequiresWriterPermission" print shareddrives todrive 

just what I was after :)

Thanks Ross

Reply all
Reply to author
Forward
0 new messages