Change the 'Allow managers to modify shared drive settings' on several hundred shared drives

546 views
Skip to first unread message

Brokamp, Kevin M

unread,
Dec 1, 2022, 11:02:21 AM12/1/22
to google-ap...@googlegroups.com

Hello all,

 

I’m trying to figure out a way to change the ‘Allow managers to modify shared drive settings’ setting for several hundred shared drives and can’t seem to find enough documentation in the API to see which setting this is.  Can anyone assist me in constructing the proper GAM command to perform this task?

 

Best,

Kevin

 

Kevin Brokamp
Principal Online Systems Administrator
Pronouns: He/Him/His
“Injustice anywhere is a threat to justice everywhere.” –MLK 

Hear my name
kmbr...@iu.edu
317.274.8401
teachingonline.iu.edu

 

Sergio Alvarez

unread,
Dec 2, 2022, 10:33:14 AM12/2/22
to GAM for Google Workspace
Hi Kevin, 

The option of  ‘Allow managers to modify shared drive settings’ is bound to the admin console, this would be done safer, faster and better from the admin console itself, you should be able to turn that on or off by the whole org or you can turn that off/on by specifics OUs if you have shared drives bound by OUs. 

but if you want to manually change each setting over GAM the command should be:

gam user emailOfAdmin update teamdrive ID_Team_Drive asadmin restrictions.adminManagedRestrictions true

InfoR3aper

unread,
Apr 13, 2023, 6:39:32 PM4/13/23
to GAM for Google Workspace
Sorry for reviving an old post but I thought it was worthy...

Although the Admin CP does allow you to change these settings. It does not change the settings globally to existing Drives!

This means in Admin CP you must go to drive settings for every Drive to change it.

I am dealing with several thousand TD, so this is a Major PITA (Pain in the you know what)

I spent a ton of time trying to find documentation on this command on your site to no avail.

Can I suggest you actually ADD info about this command to the site itself.

I think there are many people who would find this info useful, as being like I said the Admin CP does not change existing drives, only future created ones.

Ross Scroggs

unread,
Apr 13, 2023, 8:39:55 PM4/13/23
to google-ap...@googlegroups.com
Advanced GAM:
See:https://github.com/taers232c/GAMADV-XTD3/wiki/Shared-Drives#definitions Scroll down to SharedDriveRestrictionsSubfieldName

Single Drive
gam update shareddrive <SharedDriveID> adminmanagedrestrictions false

All Shared Drives
gam redirect csv ./SharedDrives.csv print teamdrives fields id,name 
gam redirect stdout ./RemoveAdminRestrictions.txt multiprocess redirect stderr stdout csv SharedDrives.csv gam update shareddrive "~id" adminmanagedrestrictions false

Standard GAM:
Single Drive
gam user ad...@domain.com update shareddrive <SharedDriveID> adminmanagedrestrictions false asadmin

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 on the web visit https://groups.google.com/d/msgid/google-apps-manager/235363a5-d06b-4539-bfb6-00bfa7d35af3n%40googlegroups.com.

Reply all
Reply to author
Forward
0 new messages