GAM options for: "Prevent editors from changing access and adding new people"

135 views
Skip to first unread message

Erwin Pieters

unread,
Jun 21, 2018, 8:26:43 AM6/21/18
to GAM for G Suite
Hi All,

We've got the following challenge:
Customer needs to activate "Prevent editors from changing access and adding new people" on a certain G-Drive folder.
This folder contains a huge number of subfolders/files and they all should inherit this setting, which is not the case as I found out.

No problem, GAM should be helpful here, was the first thing that came up in my mind. However after reading quite some items in the GAM documentation,  it seems that there is no command for this option.

Hopefully I'm missing something here, if not, other tips are more than welcome.

Cheers,

Erwin Pieters  

Ross Scroggs

unread,
Jun 21, 2018, 9:31:57 AM6/21/18
to google-ap...@googlegroups.com
Erwin,

This can be done in my Advanced GAM (https://github.com/taers232c/GAMADV-X) or Advanced GAM with Team Drive (https://github.com/taers232c/GAMADV-XTD)
gam redirect csv ./FolderList.csv user us...@domain.com print filelist select drivefilename "Put Folder Name Here" showparent fields id,title,writerscanshare,owners.emailaddress
gam redirect stdout ./FoldersList.out multiprocess redirect stderr stdout csv ./FolderList.csv gam user ~owners.0.emailAddress update drivefile ~id writerscanshare false

Ross

--
You received this message because you are subscribed to the Google Groups "GAM for G Suite" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-man...@googlegroups.com.
To post to this group, send email to google-ap...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-apps-manager.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/287e71c2-ab7b-4683-8f7d-98f04eac09f2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Erwin Pieters

unread,
Jun 21, 2018, 9:35:35 AM6/21/18
to google-ap...@googlegroups.com
Hi Ross,

Sounds great, I'll check it out right away!

Erwin Pieters
Lead IT
Prowise
Luchthavenweg 1B
6021 PX Budel NL
+31 495 497110
www.prowise.com


Op do 21 jun. 2018 om 15:31 schreef Ross Scroggs <ross.s...@gmail.com>:

Ross Scroggs

unread,
Jun 21, 2018, 9:40:31 AM6/21/18
to google-ap...@googlegroups.com
Erwin,

You can speed the process up:
gam redirect csv ./FolderList.csv user us...@domain.com print filelist select drivefilename "Put Folder Name Here" showparent fields id,title,writerscanshare,owners.emailaddress
Edit FolderList.csv and delete all rows where the value in the writesCanShare column is False; there is no need to update those files.
gam redirect stdout ./FoldersList.out multiprocess redirect stderr stdout csv ./FolderList.csv gam user ~owners.0.emailAddress update drivefile ~id writerscanshare false

Ross


Reply all
Reply to author
Forward
0 new messages