GAM and Group Settings API

599 views
Skip to first unread message

kmelillo

unread,
May 10, 2012, 11:35:23 AM5/10/12
to google-ap...@googlegroups.com
I opened a ticket with Google for this, but I also wanted to post it here, just in case someone else has figured out a solution.  When I get an update from Google, I will update this post.  Hopefully they come back with a solution.  Thank you all for your time.

I am using GAM to script changing group settings from *users at domain* can post to *anyone* can post.  I have requested, and received the Group Settings API and set up GAM to work properly to modify settings for this.

The issue I am running into is that a few of the groups (more than a few, about 300) are consistantly failing.  I run the script, and it throws back *bad request*.

I have done some troubleshooting, and it seems that if I go to Control Panel, and view the group in Groups, then click 'Access Settings' it brings me to the screen in Groups for Business.  After I do this for a group, it succeeds with the script I am running.  It appears that a change is made to the group when this is done.

Is there any way I can do this 'Access Settings' update via script?  Clicking through over 300 groups is not going to work for this.

Jay Lee

unread,
May 10, 2012, 12:53:58 PM5/10/12
to google-ap...@googlegroups.com
Hi Kevin,

  If that's the only setting you need changed, you should be able to use:

gam update group <group email> permission anyone

which uses the old Provisioning API to make the change instead of the Group Settings API.

Regards,

Jay Lee
LCS Deployment Lead  | Dito
(267) 712-9533
j...@ditoweb.com





--
You received this message because you are subscribed to the "Google Apps Manager" group.
To post to this group, send email to
google-ap...@googlegroups.com
To unsubscribe from this group, send email to
google-apps-man...@googlegroups.com
For more options, visit this group at
https://groups.google.com/forum/#!forum/google-apps-manager

Kevin Melillo

unread,
May 10, 2012, 1:06:32 PM5/10/12
to google-ap...@googlegroups.com
First of all, thank you for the quick response.

Yes, that is the only field I had to update, and I tried modifying the command.  It spits back the following error...  

Error: permission is not a valid setting for groups

It appears to be a GAM error message.  The version of GAM I am using is 2.3.1 if that helps at all.
--
Kevin Melillo
Google Apps Certified Deployment Specialist
LTech Consulting LLC
google voice-973.750.8851

Jay Lee

unread,
May 10, 2012, 1:26:52 PM5/10/12
to google-ap...@googlegroups.com
It sounds like you still have "settings" in the gam command. Make sure you're running it exactly as I put above:

gam update group <group email> permission anyone
Regards,

Jay Lee
LCS Deployment Lead  | Dito
(267) 712-9533
j...@ditoweb.com





Kevin Melillo

unread,
May 10, 2012, 1:41:43 PM5/10/12
to google-ap...@googlegroups.com
Nice catch!  And thank you.  I made the change, and the script works without a flaw.  I guess I will have to keep the 2 copies of the script around.

Much thanks!

Jay Lee

unread,
May 11, 2012, 2:38:17 PM5/11/12
to google-ap...@googlegroups.com
FYI, GAM 2.5 (released about 3 minutes ago) tries to work around this issue by opening the group's web page if it get's this "Backend Error". In my sandbox domain I found this worked for about 400 groups but after awhile it stopped having any effect. I can't say for certain but my guess is that Google's anti-script-bot agents kicked in and started blocking the unauthenticated web page request.

Anyhow, let me know if GAM 2.5 works any better for you with group settings commands.

Jay
Much thanks!


To unsubscribe from this group, send email to

For more options, visit this group at
https://groups.google.com/forum/#!forum/google-apps-manager

--
You received this message because you are subscribed to the "Google Apps Manager" group.
To post to this group, send email to

To unsubscribe from this group, send email to

For more options, visit this group at
https://groups.google.com/forum/#!forum/google-apps-manager
--
Kevin Melillo
Google Apps Certified Deployment Specialist
LTech Consulting LLC
google voice-973.750.8851

--
You received this message because you are subscribed to the "Google Apps Manager" group.
To post to this group, send email to

To unsubscribe from this group, send email to

For more options, visit this group at
https://groups.google.com/forum/#!forum/google-apps-manager

--
You received this message because you are subscribed to the "Google Apps Manager" group.
To post to this group, send email to

To unsubscribe from this group, send email to

For more options, visit this group at
https://groups.google.com/forum/#!forum/google-apps-manager

Kevin Melillo

unread,
May 11, 2012, 2:43:37 PM5/11/12
to google-ap...@googlegroups.com
I will give that a try.  If nothing else it will stop me from having to maintain 2 different scripts for the same basic task.  Thanks for the alert.


To unsubscribe from this group, send email to

For more options, visit this group at
https://groups.google.com/forum/#!forum/google-apps-manager
Reply all
Reply to author
Forward
0 new messages