Jay Lee
b78575aa8f
Initial support for group membership expiration
2020-10-05 09:46:24 -04:00
Jay Lee
d6a65861e0
GAM 5.22
2020-10-01 09:08:46 -04:00
Jay Lee
326cccd525
Stop using batch for licensing
...
Licensing API seems to throw lots of errors on large batch and we weren't retrying temp errors. For now just stick with serial methods.
2020-10-01 07:36:23 -04:00
Ross Scroggs
b41ca0f0be
More bug/pylint cleanup ( #1258 )
...
* More bug/pylint cleanup
* pylint cleanup groups.py
* Update GamCommands.txt
2020-09-30 16:56:42 -04:00
Jay Lee
02fa092775
fix reporting orgunit scoping
2020-09-30 16:44:48 -04:00
Ross Scroggs
57860dc5a6
Fix issue #1256 ( #1257 )
2020-09-30 09:43:42 -04:00
Ross Scroggs
5e38137916
Add view all|company|personal to print devices ( #1254 )
...
* Add view all|company|personal to print devices
Update documentation
* sync devices cleanup
* Update sync devices documentation
* Cleanup;
The advantage here is that they will be no filter errors unless you specify a particular view and a filter that doesn't match
* Simplify selection of devices to print
Default - all
Positve choices
Negative choices - backwards compatible
2020-09-29 14:47:06 -04:00
Ross Scroggs
dc90fb9c94
Update to new DwD page ( #1253 )
2020-09-26 10:16:08 -04:00
Ross Scroggs
2732abbc93
Make sync license consistent with other license commands ( #1252 )
2020-09-25 08:23:07 -04:00
Jay Lee
18bab4044e
'gam sync licenses' command, move licensing to separate file
2020-09-24 09:49:49 -04:00
Sean Young
56c6f6cabe
Fix issue with zsh not loading gam ( #1245 )
...
Co-authored-by: syoung-quizlet <sean.young@quizlet.com >
2020-09-22 14:03:14 -04:00
Ross Scroggs
adb1e58937
GAM_ADMIN_EMAIL overrides oauth2.txt value ( #1249 )
...
pylint cleanup unused imports
2020-09-22 12:43:53 -04:00
Ross Scroggs
a59c893652
Device updates ( #1247 )
...
* Device updates
Make info device consistent with action device: id keyword is optional
Add nodeviceusers to print devices
pylint cleanup
* Fix documentation
* Sdd orderby to print devices
* Device assetTag cleanup
* Fix typo, appease pylint
* Strip C from customer ID
2020-09-21 10:14:34 -04:00
Ross Scroggs
93bcd5f43b
Fix bug, handle missing required argument ( #1246 )
2020-09-19 12:37:40 -04:00
Ross Scroggs
d7453a7841
filter is a builtin Python function ( #1244 )
...
devices.py:118:4: W0622: Redefining built-in 'filter' (redefined-builtin)
2020-09-18 15:28:42 -04:00
Ross Scroggs
4fe3dc052a
Delete duplicate code ( #1243 )
2020-09-18 15:00:25 -04:00
Jay Lee
c88c755785
MacOS 10.15.6, fix groups+DASA+user info
2020-09-18 10:23:55 -04:00
Ross Scroggs
597256d048
Ensure that customer_id, domain and an admin email address are present for DASA ( #1242 )
...
* Ensure that customer_id, domain and an admin email address are present for DASA
* Fix typos
2020-09-18 07:38:38 -04:00
Jay Lee
cda626b01c
minor fixes to devices, more travis testing
2020-09-17 07:55:07 -04:00
Jay Lee
7d84da1520
GAM 5.20
2020-09-16 16:54:33 -04:00
Jay Lee
0b8fb177c4
Update osx-install.sh
2020-09-16 16:04:57 -04:00
Jay Lee
c2f53577ab
Cloud Identity Devices API, 5.20
2020-09-16 15:33:55 -04:00
Jay Lee
88e7941db3
fix travis creds
2020-09-15 11:48:31 -04:00
Jay Lee
6c715263e0
svars-write
2020-09-15 11:46:31 -04:00
Jay Lee
7088962d44
redo travis auth setup
2020-09-15 11:40:46 -04:00
Jay Lee
429bb0957d
Update svars-write.py
2020-09-15 09:16:54 -04:00
Ross Scroggs
1b26a11281
Complete adminrole commands; add signout and turnoff2sv ( #1237 )
...
* Complete create admintole
* Add update/delete to adminroles
* Update privileges options
* Separate create/update adminrole
* Sdd signout/turnoff2sv commands
* Move signout, turn_off_2sv to new users.py
2020-09-14 12:58:52 -04:00
Ross Scroggs
908edff878
Fix error; DASA suggestions ( #1236 )
...
* userKey and customer is an invalid combination; userkey and domain is allowed
* DASA suggestions
I would not use OAUTHFILE to distinguish between normal/DASA, it seems to me that this might lead to oauth2service.json getting deleted by accident.
By using enabledasa.txt you can flip between the two modes easily.
* Update __init__.py
Is this what yuou meant?
2020-09-11 11:33:06 -04:00
Jay Lee
487e1dc4c1
Merge branch 'master' of https://github.com/jay0lee/GAM
2020-09-10 11:36:16 -04:00
Jay Lee
244398e096
Initial support for delegated admin service accounts (DASA)
...
Google now allows GCP service accounts to be granted delegated admin status for a G Suite domain.
To use this, admins can grant the service account email address delegated admin rights in the admin console
and then set some environment variables for GAM to use:
OAUTHFILE=oauth2service.json
GA_DOMAIN=example.com # your primary domain name in Google
CUSTOMER_ID=1d80dfc # admin.google.com > Account > Account settings > Customer ID
2020-09-10 11:25:59 -04:00
Ross Scroggs
fafd9e2bd8
Fix code ( #1232 )
...
* Correct argmument
* Fix code
2020-09-08 11:47:06 -04:00
djeckle
367ea4df39
Fix seats argument reference for resoldsubscription. ( #1233 )
2020-09-08 11:46:28 -04:00
Jay Lee
630abbd0fc
merge cleanup
2020-09-06 09:53:52 -04:00
Jay Lee
fe20428a14
initial support for security and dynamic groups
2020-09-06 09:47:46 -04:00
Ross Scroggs
884cbc52a3
Clean up Cloud Identity groups/Fix get drivefile csvsheet ( #1228 )
...
* Clean up Cloud Identity groups
* Fix issue in get drivefile
Updated code in downloadDriveFile to handle unexpected data in spreadsheetUrl after /edit
```
https://docs.google.com/spreadsheets/d/%3Cdocidhere%3E/edit?ouid=1234567890123456&urlBuilderDomain=mydomain.edu
```
2020-08-27 14:35:48 -04:00
Jay Lee
88c17af8ef
Merge branch 'master' of https://github.com/jay0lee/GAM
2020-08-27 14:33:51 -04:00
Jay Lee
549670e45f
some APIs now using v2 discovery URLs
2020-08-27 14:31:47 -04:00
Jay Lee
4fa0e58e80
Update var.py
2020-08-21 08:42:01 -04:00
Jay Lee
d60b9b2b47
use new DwD page
2020-08-17 12:04:44 -04:00
Ross Scroggs
3368bd3879
Two fixes ( #1226 )
...
* Set maxtasksperchild to help avoid hangs especially on Windows
* Fix function reference
2020-08-11 12:47:03 -04:00
Ross Scroggs
45e0e57668
Several fixes ( #1218 )
...
Have create project use http object that uses CA_FILE
Fix calls to functions in new source modules
Put deprovisionupgradetransfer back
2020-07-02 04:38:40 -04:00
Jay Lee
7e128dc6c3
yet another patchelf correction
2020-06-28 19:20:14 -04:00
Jay Lee
5e1352077a
one more for patchelf
2020-06-28 19:13:37 -04:00
Jay Lee
22fc54b2fa
fix patchelf download/extract
2020-06-28 19:02:24 -04:00
Jay Lee
b67e068991
fix bonehead mistake
2020-06-28 18:42:24 -04:00
Jay Lee
40f5bb07d8
fix gs objects
2020-06-28 18:38:27 -04:00
Jay Lee
c1063d1967
Initial CloudIdentity Groups work, more APIs to own files
2020-06-28 17:26:21 -04:00
Ross Scroggs
964cd19949
Update CrOS actions ( #1217 )
2020-06-27 12:31:03 -04:00
Jay Lee
f55305a800
action deprovision_upgrade_transfer
2020-06-24 11:11:45 -04:00
Ross Scroggs
8392856ec5
Move trap statement up so it is seen before any exit command ( #1215 )
2020-06-24 08:16:23 -04:00