From b107afc13c9a25d23defd0ee9ccd1c315e8f6170 Mon Sep 17 00:00:00 2001 From: Ross Scroggs Date: Mon, 27 Aug 2018 15:26:06 -0700 Subject: [PATCH] Add ability to specify suspended/not suspended users for groups and ous (#786) Simplify specifying ChromeBooks by serial number --- src/GamCommands.txt | 50 +++++++----- src/gam.py | 183 ++++++++++++++++++++++++-------------------- src/var.py | 10 ++- 3 files changed, 138 insertions(+), 105 deletions(-) diff --git a/src/GamCommands.txt b/src/GamCommands.txt index 9c1123c2..971fe5d5 100644 --- a/src/GamCommands.txt +++ b/src/GamCommands.txt @@ -41,14 +41,14 @@ If an item contains spaces, it should be surrounded by ". ::= csv|html|txt|tsv|jpeg|jpg|png|svg|pdf|rtf|pptx|xlsx|docx|odt|ods|openoffice|ms|microsoft|micro$oft ::= - #000000|#076239|#0b804b|#149e60|#16a766|#1a764d|#1c4587|#285bac| - #2a9c68|#3c78d8|#3dc789|#41236d|#434343|#43d692|#44b984|#4a86e8| - #653e9b|#666666|#68dfa9|#6d9eeb|#822111|#83334c|#89d3b2|#8e63ce| - #999999|#a0eac9|#a46a21|#a479e2|#a4c2f4|#aa8831|#ac2b16|#b65775| - #b694e8|#b9e4d0|#c6f3de|#c9daf8|#cc3a21|#cccccc|#cf8933|#d0bcf1| - #d5ae49|#e07798|#e4d7f5|#e66550|#eaa041|#efa093|#efefef|#f2c960| - #f3f3f3|#f691b3|#f6c5be|#f7a7c0|#fad165|#fb4c2f|#fbc8d9|#fcda83| - #fcdee8|#fce8b3|#fef1d1|#ffad47|#ffbc6b|#ffd6a2|#ffe6c7|#ffffff + #000000|#076239|#0b804b|#149e60|#16a766|#1a764d|#1c4587|#285bac| + #2a9c68|#3c78d8|#3dc789|#41236d|#434343|#43d692|#44b984|#4a86e8| + #653e9b|#666666|#68dfa9|#6d9eeb|#822111|#83334c|#89d3b2|#8e63ce| + #999999|#a0eac9|#a46a21|#a479e2|#a4c2f4|#aa8831|#ac2b16|#b65775| + #b694e8|#b9e4d0|#c6f3de|#c9daf8|#cc3a21|#cccccc|#cf8933|#d0bcf1| + #d5ae49|#e07798|#e4d7f5|#e66550|#eaa041|#efa093|#efefef|#f2c960| + #f3f3f3|#f691b3|#f6c5be|#f7a7c0|#fad165|#fb4c2f|#fbc8d9|#fcda83| + #fcdee8|#fce8b3|#fef1d1|#ffad47|#ffbc6b|#ffd6a2|#ffe6c7|#ffffff ::= ach|af|ag|ak|am|ar|az|be|bem|bg|bn|br|bs|ca|chr|ckb|co|crs|cs|cy|da|de|ee|el|en|en-gb|en-us|eo|es|es-419|et|eu| fa|fi|fo|fr|fr-ca|fy|ga|gaa|gd|gl|gn|gu|ha|haw|he|hi|hr|ht|hu|hy|ia|id|ig|in|is|it|iw|ja|jw| @@ -145,7 +145,6 @@ If an item contains spaces, it should be surrounded by ". ::= teacher|teachers|student|students ::= active|archived|provisioned|declined ::= - ::= |(query:)|(query:orgunitpath:) ::= ::= ::= commenter|editor|organizer|owner|reader|writer @@ -211,6 +210,7 @@ If an item contains spaces, it should be surrounded by ". ::= ::=
::= + ::= ::= ::= || ::= @@ -520,7 +520,7 @@ Items, separated by spaces, with spaces, commas or single quotes in the items th ::= "(,)*" ::= "(,)*" ::= "(,)*" - ::= "(,)*" + ::= "(,)*" ::= "(,)*" ::= "(,)*" ::= "(,)*" @@ -549,6 +549,7 @@ Items, separated by spaces, with spaces, commas or single quotes in the items th ::= "(,)*" ="(,)*" ::= "(,)*" + ::= "(,)*" ::= "(,)*" ::= "(,)*" ::= "(,)*" @@ -557,9 +558,14 @@ Items, separated by spaces, with spaces, commas or single quotes in the items th Specify a collection of ChromeOS devices by directly specifying them + ::= + | (cros_sn ) | + (query:)|(query:orgunitpath:)|(query ) + ::= (all cros)| - (cros )| + (cros )| + (cros_sn )| (crosfile )| (croscsvfile :)| (crosquery )| @@ -573,9 +579,13 @@ Specify a collection of Users by directly specifying them or by specifiying item (all users)| (user )| (users )| - (group )| + (ou_and_children_ns|ou_and_child_ns )| + (ou_and_children_susp|ou_and_child_susp )| (courseparticipants )| (students )| (teachers )| @@ -710,7 +720,6 @@ Specify a collection of Users by directly specifying them or by specifiying item ::= (address clear|(type work|home|other|(custom ) [unstructured|formatted ] [pobox ] [extendedaddress ] [streetaddress ] [locality ] [region ] [postalcode ] [country ] [countrycode ] notprimary|primary))| - (admin )| (agreed2terms|agreedtoterms )| (changepassword|changepasswordatnextlogin )| (crypt|sha|sha1|sha-1|md5|nohash)| @@ -863,7 +872,7 @@ gam create org|ou [description ] [parent ] [inherit| gam update org|ou [name ] [description ] [parent ] [inherit|noinherit] gam update org|ou add|move | gam delete org|ou -gam info org|ou [nousers] [children|child] +gam info org|ou [nousers|notsuspended|suspended] [children|child] gam print orgs|ous [todrive] [toplevelonly] [from_parent ] [allfields|(fields )] gam create alias|nickname user|group|target | @@ -889,8 +898,8 @@ gam calendar wipe gam calendar modify + -gam update cros (+)|(action deprovision_same_model_replace|deprovision_different_model_replace|deprovision_retiring_device|disable|reenable [acknowledge_device_touch_requirement]) -gam info cros [nolists] [listlimit ] [start ] [end ] +gam update cros (+)|(action deprovision_same_model_replace|deprovision_different_model_replace|deprovision_retiring_device|disable|reenable [acknowledge_device_touch_requirement]) +gam info cros [nolists] [listlimit ] [start ] [end ] [basic|full|allfields] * [fields ] [downloadfile latest|