deleting alias fails: Error 400: Type not supported: userKey - badRequest

1,161 views
Skip to first unread message

Peter Kolbe

unread,
Jun 17, 2015, 6:44:50 PM6/17/15
to google-ap...@googlegroups.com
I'm using gam 3.21 and trying to delete an alias that was created after renaming a user.

calling this:
python gam.py delete alias user...@bhsec.bard.edu
gives me:
Error 400: Type not supported: userKey - badRequest


and

python gam.py whatis user...@bhsec.bard.edu
gives me:

user...@bhsec.bard.edu is a user alias

 Alias Email: user...@bhsec.bard.edu
 User Email: bhsec-u...@bard.edu
 Unique ID: xxxxxxxxxxx


I thought this question on github looked similar:
https://github.com/jay0lee/GAM/issues/29

Any thoughts? I have 350 other users like this. :)
 
thx,
-peter

Jay Lee

unread,
Jun 17, 2015, 6:52:18 PM6/17/15
to google-ap...@googlegroups.com
For starters, upgrade to 3.45. Also try:

Also try:

gam delete alias user user...@bhsec.bard.edu

the extra "user" should tell GAM that the alias is on a user account rather than a group so that it can make the correct API call.

Jay

--
You received this message because you are subscribed to the Google Groups "Google Apps Manager" 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 http://groups.google.com/group/google-apps-manager.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/575f9b75-3a20-4183-8400-0c6887806231%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--

Jay Lee

Reply all
Reply to author
Forward
0 new messages