Trying to update the Department for all users but getting command error

353 views
Skip to first unread message

HH

unread,
Mar 13, 2020, 7:44:18 AM3/13/20
to GAM for G Suite
Command like this:
gam csv updates.csv gam update user ~Email organization department ~Department
gam update user user.name organization department "Staff"

and I'm getting this:

Python 3.8.1 64-bit final
google-api-python-client 1.7.11
Windows 10 10.0.14393   AMD64
Path: C:\GAM

Usage: gam [OPTIONS]...

GAM. Retrieve or set G Suite domain,
user, group and alias settings. Exhaustive list of commands

Examples:
gam info domain
gam create user jsmith firstname John lastname Smith password secretpass
gam update user jsmith suspended on
gam.exe update group announcements add member jsmith
...

What am I doing wrong?

Ross Scroggs

unread,
Mar 13, 2020, 7:47:17 AM3/13/20
to google-ap...@googlegroups.com
HH
<UserBasicAttribute> ::=
...
        (organization clear|([type domain_only|school|unknown|work] [customtype <String>] [name <String>] [title <String>] [department <String>] [symbol <String>]
                [costcenter <String>]  [location <String>] [description <String>] [domain <String>] [fulltimeequivalent <Integer>] notprimary|primary))|
...

There is a required option notprimary|primary at the end.

gam csv updates.csv gam update user ~Email organization department ~Department primary
gam update user user.name organization department "Staff" primary

Ross


Northbridge International School Cambodia
P.O. Box 2042, Phnom Penh 3, Cambodia
+855 (0)23 900 749

www.nisc.edu.kh



Stay Connected. Follow Us!




--
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 view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/d9301f15-54c5-4ac4-958e-ae0d415c73bd%40googlegroups.com.

Reply all
Reply to author
Forward
0 new messages