Ross Scroggs
4817ce282a
Handle suspended users with calendar commands; improve show calsettings output ( #369 )
2016-12-27 11:34:45 -05:00
Ross Scroggs
2da6666587
Add directmemberscount to list of group field names ( #368 )
2016-12-27 11:00:52 -05:00
Jay Lee
07f1bc050a
Improve user info response with license batching
2016-12-27 10:57:18 -05:00
Ross Scroggs
9135e15b12
Fix error handling for nonexistent users in data transfers ( #367 )
2016-12-27 10:31:26 -05:00
Ross Scroggs
5c32a86257
Use patch instead of update in doUpdateCustomer, update is broken ( #366 )
2016-12-27 10:08:31 -05:00
Ross Scroggs
d5bcac4d14
Fix run-batch to handle 0 items ( #363 )
2016-12-21 15:04:30 -05:00
Ross Scroggs
73bcadbbfe
Handle Google-Apps-For-Government ( #362 )
2016-12-21 14:05:59 -05:00
Jay Lee
f9ab78e393
update some strings to G Suite
2016-11-20 14:18:28 -05:00
Ross Scroggs
dbd09daa33
Fix Windows multiprocessing ( #346 )
...
* Fix Windows multiprocessing
* Clean up Windows initial setup
2016-11-19 13:23:33 -05:00
Ross Scroggs
25ace13a3d
Handle additional run_batch calls ( #344 )
2016-11-19 07:16:23 -05:00
Ross Scroggs
8fc6112e32
Handle folder alternateLink ( #343 )
2016-11-18 19:36:54 -05:00
Ross Scroggs
ac2eb99d63
Handle Google mis-reporting invalid group in gam print groups settings ( #342 )
2016-11-18 18:32:55 -05:00
Ross Scroggs
43707d8074
Create missing label with gam add filter ( #340 )
...
Restores behavior present with Email Settings API
2016-11-18 17:33:43 -05:00
Jay Lee
b0b3c18e99
use multiprocessing instead of threading to take advantage of multi CPU systems
2016-11-18 15:45:57 -05:00
Jay Lee
349f2801c5
Improve batch performance
...
* Use a single GAM / Python process for all threads (needs testing, will sys.exit in a function cause issues?)
- Huge reduction in useless time spent starting Python per-thread.
* Bump default from 5 threads to 25.
* Introduce default_to_batch for some user commands where it makes sense.
- most show/print commands will default to batch off.
- most do / update commands will default to on.
2016-11-18 10:19:19 -05:00
Ross Scroggs
658e7beb2b
Standardize handling oauth2.txt ( #337 )
2016-11-17 11:57:10 -05:00
Ross Scroggs
e777eb6c99
Handle Google reporting invalid when getting group settings ( #335 )
2016-11-16 12:45:04 -05:00
Ross Scroggs
8a6ce43ad3
Do not get settings for special groups abuse and postmaster ( #334 )
...
* In gam print groups settings, get gs service outside of loop
* Do not get settings for special groups abuse and postmaster
* Do not set settings for special groups abuse and postmaster
2016-11-15 22:36:59 -05:00
Jay Lee
72d182032b
point to create project / check serviceaccount rather than Wiki
2016-11-15 13:25:54 -05:00
Ross Scroggs
9b8189a3e4
In gam print groups settings, get gs service outside of loop ( #333 )
2016-11-15 09:21:05 -05:00
Ross Scroggs
cc2cba8c70
Cleanup signature/vacation processing
2016-11-14 13:16:07 -08:00
Ross Scroggs
17660220fe
Added html argument to gam add sendas/update sendas/signature to control newline (NL) processing when signature is read from a file. ( #331 )
2016-11-13 15:27:15 -05:00
Ross Scroggs
d5538a79da
Update NL handling in doSignature and doVacation ( #330 )
2016-11-13 13:48:32 -05:00
Ross Scroggs
fc5cd1c219
Improve Unicode handling when reading files. ( #329 )
2016-11-13 13:02:00 -05:00
Ross Scroggs
e10e63a87f
Cleanup doDelProjects/doCreateProject ( #327 )
...
Move common code to get CRM service into separate routine
Have delete projects get login_hint like oath create and create project
2016-11-12 16:09:17 -05:00
Ross Scroggs
93b05de15e
Update build scripts ( #326 )
2016-11-12 13:07:19 -05:00
Ross Scroggs
a6a94060c6
Standardize getting login_hint for create project and oauth request ( #325 )
...
* Use RE to validate login_hint email address
http://stackoverflow.com/questions/201323/using-a-regular-expression-to-
validate-an-email-address
Per the W3C HTML5 spec:
* Use simpler RE pattern for email validation
2016-11-11 11:26:17 -05:00
Jay Lee
a12ec0ffdc
Google API Client 1.5.5
2016-11-11 09:34:02 -05:00
Jay Lee
ae5d484309
GAM 4.03
2016-11-11 09:23:01 -05:00
Jay Lee
2cdcc6f5ad
gam-install.sh fix for Ubuntu 16+ where python 2 not always present
2016-11-10 20:28:48 -05:00
Jay Lee
3699e0199b
mktemp fix to run on OS X 10.10
2016-11-08 22:02:20 -05:00
Ross Scroggs
5ec417d50c
Validate full email address on gam oauth create <EmailAddress> ( #321 )
...
* Validate full email address on gam oauth create <EmailAddress>
* Update documentation
2016-11-08 16:32:38 -05:00
Ross Scroggs
240edd6812
Simplify doCheckServiceAccount ( #320 )
...
* Simplify doCheckServiceAccount
* Further simplify doCheckServiceAccount
List of scopes is all we need
* Build all_scopes list outside of loop, sort once
* Leave use_scopes in buildGAPIServiceObject for future use
2016-11-08 10:33:35 -05:00
Jay Lee
faa1b87926
Merge branch 'master' of https://github.com/jay0lee/GAM
2016-11-07 12:23:09 -05:00
Jay Lee
08a9764465
delete projects (undocumented), catch API ToS errors and try to point admin to correct URL before retrying.
2016-11-07 12:22:54 -05:00
Ross Scroggs
e3a73ce7d1
Process NLs in user structured/formatted addresses ( #319 )
2016-11-07 10:40:04 -05:00
Ross Scroggs
d75a5e78a5
Have doCreateProject find proper JSON files ( #318 )
...
As in https://github.com/jay0lee/GAM/pull/313 , factor in the user's
environment variables. On a new installation, the files will be in GAM
Path, but on an existing installation the environment variables may
have them located somewhere else.
2016-11-07 10:21:55 -05:00
Jay Lee
6a179215d6
sendNotifications = None
2016-11-05 20:14:05 -04:00
Ross Scroggs
c2dc2f0712
Fixes/Updates ( #317 )
...
GamCommands.txt
Update documentation
gam.py
doCheckServiceAccount
Correct my previous update - Lines 1211/1241
doCalendarDeleteEvent:
Eliminate duplicate events - Line 3337
Fix error message - LInes 3344/2245
Pass sendNotifications to API - LInes 3323,3349
doCalendarAddEvent
Update error message - LIne 3461
doGetCrosInfo
Add query capability - Lines 7992/8078
2016-11-05 20:12:51 -04:00
Jay Lee
b6b6824ee1
whatsnew for 4.02
2016-11-04 14:25:59 -04:00
Jay Lee
2902fc8931
Merge branch 'master' of https://github.com/jay0lee/GAM
2016-11-04 14:14:27 -04:00
Jay Lee
1a6ec398b2
gam calendar <> deleteevent
2016-11-04 14:14:21 -04:00
Ross Scroggs
7d849e0cc0
Code fixes, cleanup ( #315 )
...
* Code fixes, cleanup
Fix doCheckServiceAccount to pass correct api to buildGAPIServiceObject
pylint cleanup
Simplify passing login_hint to doRequestOAuth in main
Give error if invalid argument after gam <users> check
* Fix error
* Use try accept
2016-11-04 14:13:39 -04:00
Jay Lee
2958bd9f86
GAM 4.02
2016-11-04 12:02:35 -04:00
Jay Lee
15d93c9e5d
pause at end of gam-setup.bat
2016-11-04 11:48:10 -04:00
Jay Lee
082c34b453
prompt for regular user to test service account.
2016-11-04 11:39:20 -04:00
Jay Lee
32e7932050
fix potential IndexError
2016-11-03 14:42:07 -04:00
Jay Lee
6becd08f3c
fix login_hint issues
2016-11-03 14:30:14 -04:00
Jay Lee
26fbf9c524
don't run setup on upgrades
2016-11-03 14:20:15 -04:00
Ross Scroggs
d9124f3ffa
Fix doRequestOAuth to find proper client secrets JSON file ( #313 )
...
The environment variables GAMUSERCONFIGDIR and CLIENTSECRETS are
factored in to GC_Values[GC_CLIENT_SECRETS_JSON]. On a new
installation, it will have the value
os.path.join(GM_Globals[GM_GAM_PATH], FN_CLIENT_SECRETS_JSON) but on an
existing installation the environment variables may have it located
somewhere else.
2016-11-03 13:50:43 -04:00