Error 404 memberKey - notFound removing members from a group

1,157 views
Skip to first unread message

AlCrosby

unread,
Aug 9, 2017, 3:15:04 PM8/9/17
to GAM for G Suite
I'm getting 404 Resource Not Found: memberKey - notFound when I'm using gam to remove members from a group -- both with the sync command and update group groupname delete member membername

I'm running a freshly configured and authorized 4.23 (with a new project) on Windows Server 2003 (32 bit).  I get the same thing with the 64 bit version on Windows 10 64 bit.

Any thoughts?

I checked with an old install of 3.51 with python on Windows, and get the same error message.  I'll check from home soon... to make sure that it's not a firewall issue.

Thanks!

Jay Lee

unread,
Aug 9, 2017, 3:18:15 PM8/9/17
to google-ap...@googlegroups.com
Are the members to be removed users in your G Suite instance or are they external email addresses?

Jay

--
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-manager+unsub...@googlegroups.com.
To post to this group, send email to google-apps-manager@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/7884f104-d13e-4131-b405-d8cbbd04af38%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

AlCrosby

unread,
Aug 9, 2017, 4:10:07 PM8/9/17
to GAM for G Suite
They're members of the G Suite instance.  gam info user <username> returns the info about the user and shows them as a member of the group that I'm trying to remove them from.

Just had a brain storm. 
  • gam info user mymember shows that mymember is a member of mygroup.
  • gam update group mygroup remove mymember failed with the 404 error.  
  • gam update group mygroup add member mymember -- and the user got added without a duplicate error message -- even though mymember was already in the group.  
  • gam update group mygroup remove mymember  then succeded
  • gam info user mymember no longer shows mymember as a member of mygroup
I've got a lot of groups I manage with GAM -- but I'm getting tempted to export the mebers with GAM, tell it to add everyone that is returned as a member, and then try sync'ing again to remove members.

Thanks!

Albert

On Wednesday, August 9, 2017 at 2:18:15 PM UTC-5, Jay Lee wrote:
Are the members to be removed users in your G Suite instance or are they external email addresses?

Jay
On Wed, Aug 9, 2017 at 3:15 PM, AlCrosby <acr...@sdale.org> wrote:
I'm getting 404 Resource Not Found: memberKey - notFound when I'm using gam to remove members from a group -- both with the sync command and update group groupname delete member membername

I'm running a freshly configured and authorized 4.23 (with a new project) on Windows Server 2003 (32 bit).  I get the same thing with the 64 bit version on Windows 10 64 bit.

Any thoughts?

I checked with an old install of 3.51 with python on Windows, and get the same error message.  I'll check from home soon... to make sure that it's not a firewall issue.

Thanks!

--
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-manager+unsub...@googlegroups.com.
To post to this group, send email to google-ap...@googlegroups.com.

AlCrosby

unread,
Aug 10, 2017, 9:11:49 AM8/10/17
to GAM for G Suite
I got it to work.

I used gam print groups to get a list of all of my groups into a text file.  I filtered this file so that it only had my admin created groups (I use a group suffix in our G Suite instance).  Being on Windows, I used the DOS for command to send that list into gam print-member group %g fields email >> members.csv Next, edited the file to remove all of the header lines (group, email) except the first one.  Finally, I launched  gam csv members.csv gam group ~group add member ~email to add all members back into all of my groups.  After roasting some coffee beans, grinding them, and having a wonderful cup of joe, all 65,834 member / group  combinations had been reprocessed...  

After that, my sync's seem to be working -- with one caveat.  Sync seems to always try to re-add managers and get the duplicate complaint, but I seem to have that happen for some non-manager group members.  Not a big deal, though.  Haven't dug into it to find a pattern yet.

No idea why I had to jump through this hoop.

Thanks!

Albert

Ross Scroggs

unread,
Aug 10, 2017, 9:29:55 AM8/10/17
to google-ap...@googlegroups.com
Albert,

Get the role in your CSV file:
gam print-member group %g fields email,role >> members.csv 
When cleaning up your CSV file, delete the lines with role OWNER or MANAGER

You're saying add member us...@domain.com; if us...@domain.com is already a owner/manager, you'll get a duplicate.

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.
Reply all
Reply to author
Forward
0 new messages