API-created users are suspended

130 views
Skip to first unread message

Steve Hideg

unread,
Dec 8, 2012, 3:41:58 PM12/8/12
to google-ap...@googlegroups.com
I'm using GAM to create users e.g.

gam create user 'test...@domain.com' firstname '0001' lastname 'Tester' password '********' suspended off org 'Test' customerid '********'

The user is created, and put into the "Test" OU. But the account is suspended.

Trying to subsequently activate the account with GAM:

gam update user test...@domain.com suspended off

results in an error:

Error: 1102: Unknown Error: {'status': 400, 'body': '<?xml version="1.0" encoding="UTF-8"?>\r\n<AppsForYourDomainErrors>\r\n  <error errorCode="1102" invalidInput="" reason="UserSuspendedForAbuse" />\r\n</AppsForYourDomainErrors>\r\n\r\n', 'reason': 'Bad Request'}

If I create an account with a CSV upload, it is Active, but then I have to move it into the proper OU.

I need to be able to create hundreds/thousands of accounts programmatically, and I need them to be active immediately.

Is this a new 'feature' of Google? Or am I missing something?

Thanks.

RYoung.TT

unread,
Dec 9, 2012, 8:20:56 PM12/9/12
to google-ap...@googlegroups.com
Try your command without 'suspended off'

gam create user 'test...@domain.com' firstname '0001' lastname 'Tester' password '********' org 'Test' customerid '********'

See if that works?

Steve Hideg

unread,
Dec 9, 2012, 10:45:49 PM12/9/12
to google-ap...@googlegroups.com
Thanks. I've actually run that command both with and without "suspended off" with the same results.

Jay Lee

unread,
Dec 10, 2012, 7:23:13 AM12/10/12
to google-ap...@googlegroups.com
Contact Google Support (file a ticket or call them) to determine why your accounts are being flagged as abusive. It's possible your outgoing email content is being marked as spam by other Gmail users or something else is wrong with your configuration.

Jay

Steve Hideg

unread,
Dec 10, 2012, 7:59:45 AM12/10/12
to google-ap...@googlegroups.com
Thanks.

* None of these suspended accounts have sent any email yet. They are suspended at creation.

* If I create them using the API (with GAM, both with and without specifying "suspended off"), they are suspended.

* If I create them via the admin control panel, then are active.

—Steve

Steve Hideg

unread,
Dec 10, 2012, 9:17:49 AM12/10/12
to google-ap...@googlegroups.com
Perhaps this was a problem with our domain.

This morning, the behavior changed.

I can create all sorts of accounts (this morning) via the API and they are active.

Was this a hiccup on Google's part?

WTF?



On Monday, December 10, 2012 7:23:13 AM UTC-5, Jay Lee wrote:

Joseph DeFrancesco

unread,
Mar 21, 2014, 11:48:36 AM3/21/14
to google-ap...@googlegroups.com
I'm actually having this problem right now with any user account that I create in Windows Azure. I see all the users in google apps perfectly fine, but they're all Suspended. . . .
Reply all
Reply to author
Forward
0 new messages