ERROR: Suspended is not a valid argument for "gam update user"

496 views
Skip to first unread message

Mike McLoughlin

unread,
Mar 29, 2017, 4:03:07 AM3/29/17
to GAM for G Suite
Hi,

GAM version: 4.12

I am trying to suspend users with the command:

E:\gam\gam.exe update user jsm...@mydomain.co.uk supended on

...and am seeing the error message:

ERROR: Suspended is not a valid argument for "gam update user"

The syntax guide suggests it should work (my emphasis) - although is is flagged as for GAM3:

Update and Rename a User

Syntax

gam update user <email address>
 [firstname <First Name>] [lastname <Last Name>]
 [password <Password>]
 [username <New Username>]
 [email <New Email>]
 [gal on|off] [admin on|off] [suspended on|off]
 [sha] [md5] [crypt] [nohash] 
 [changepassword on|off] [org <Org Name>] 

Am I missing something obvious here?

- Mike

Mike McLoughlin

unread,
Mar 29, 2017, 5:18:22 AM3/29/17
to GAM for G Suite
I have managed to get around this via the bulk method instead, like this:

gam csv C:\gam\suspend.csv gam update user ~email suspended on

- Mike

Ross Scroggs

unread,
Mar 29, 2017, 7:57:51 AM3/29/17
to google-ap...@googlegroups.com
Mike,

Your command as shown (suspended misspelled): E:\gam\gam.exe update user jsm...@mydomain.co.uk supended on
The error message as shown (suspended spelled correctly but capitalized): ERROR: Suspended is not a valid argument for "gam update user"
There is a mismatch here in what you're reporting.
This command: E:\gam\gam.exe update user jsm...@mydomain.co.uk supended on
should give this error: ERROR: supended is not a valid argument for "gam update user"

Correct usage: E:\gam\gam.exe update user jsm...@mydomain.co.uk suspended on
Check your spelling and report back.

Ross

-- 
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-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.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/31b21a2c-30bf-4736-a381-5415d76b71a8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Mike McLoughlin (PCA)

unread,
Mar 29, 2017, 8:47:18 AM3/29/17
to GAM for G Suite
Hi Ross,

Oh, how embarrassing - a simple spelling mistake, lol.

My command-line interface was very small text-wise. 

#lameexcuseclearly

Thanks for your help.

- Mike
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-manager+unsub...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages