mirror of
https://github.com/GAM-team/GAM.git
synced 2026-07-03 20:31:35 +00:00
Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
944e2ed5f4 | ||
|
|
0e7c3bee6a | ||
|
|
86e827ee66 | ||
|
|
3491267f9d | ||
|
|
4b97accc21 |
@@ -1,3 +1,7 @@
|
|||||||
|
7.28.09
|
||||||
|
|
||||||
|
Fixed bug in `gam print cigroups ... descriptionmatchpattern [not] <REMatchPattern>` that caused a trap.
|
||||||
|
|
||||||
7.28.08
|
7.28.08
|
||||||
|
|
||||||
Updated `gam <UserTypeEntity> print|show chatmessages` to cache the sender UID to email address
|
Updated `gam <UserTypeEntity> print|show chatmessages` to cache the sender UID to email address
|
||||||
@@ -17320,7 +17324,7 @@ Current version of Gam with drive_v3_name_names = false
|
|||||||
Owner,title,parents,parents.0.id,parents.1.id
|
Owner,title,parents,parents.0.id,parents.1.id
|
||||||
testuser@domain.com,TestFile,2,PPPP1111,PPPP2222
|
testuser@domain.com,TestFile,2,PPPP1111,PPPP2222
|
||||||
|
|
||||||
Current version of Gam with drive_v3_name_names = true
|
Current version of Gam with drive_v3_name_names = true
|
||||||
Owner,name,parents
|
Owner,name,parents
|
||||||
testuser@domain.com,TestFile,PPPP1111 PPPP2222
|
testuser@domain.com,TestFile,PPPP1111 PPPP2222
|
||||||
|
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ https://github.com/GAM-team/GAM/wiki
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
__author__ = 'GAM Team <google-apps-manager@googlegroups.com>'
|
__author__ = 'GAM Team <google-apps-manager@googlegroups.com>'
|
||||||
__version__ = '7.28.08'
|
__version__ = '7.28.09'
|
||||||
__license__ = 'Apache License 2.0 (http://www.apache.org/licenses/LICENSE-2.0)'
|
__license__ = 'Apache License 2.0 (http://www.apache.org/licenses/LICENSE-2.0)'
|
||||||
|
|
||||||
#pylint: disable=wrong-import-position
|
#pylint: disable=wrong-import-position
|
||||||
@@ -34700,10 +34700,10 @@ def checkGroupMatchPatterns(groupEmail, group, matchPatterns):
|
|||||||
return False
|
return False
|
||||||
else: # field in {'name', 'displayName', 'description'}:
|
else: # field in {'name', 'displayName', 'description'}:
|
||||||
if not matchp['not']:
|
if not matchp['not']:
|
||||||
if not matchp['pattern'].match(group[field]):
|
if not matchp['pattern'].match(group.get(field, '')):
|
||||||
return False
|
return False
|
||||||
else:
|
else:
|
||||||
if matchp['pattern'].match(group[field]):
|
if matchp['pattern'].match(group.get(field, '')):
|
||||||
return False
|
return False
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
|||||||
@@ -7,6 +7,7 @@
|
|||||||
- [Bulk membership changes](#bulk-membership-changes)
|
- [Bulk membership changes](#bulk-membership-changes)
|
||||||
- [Display course membership](#display-course-membership)
|
- [Display course membership](#display-course-membership)
|
||||||
- [Display course membership counts](#display-course-membership-counts)
|
- [Display course membership counts](#display-course-membership-counts)
|
||||||
|
- [Display course counts for teachers-students](#display-course-counts-for-teachers-students)
|
||||||
|
|
||||||
## API documentation
|
## API documentation
|
||||||
* [Google Classroom API](https://developers.google.com/classroom/reference/rest)
|
* [Google Classroom API](https://developers.google.com/classroom/reference/rest)
|
||||||
@@ -167,3 +168,24 @@ $count = & gam print course-participants teacher asmith states active show stude
|
|||||||
Windows Command Prompt
|
Windows Command Prompt
|
||||||
for /f "delims=" %a in ('gam print course-participants teacher asmith states active show students showitemcountonly') do set count=%a
|
for /f "delims=" %a in ('gam print course-participants teacher asmith states active show students showitemcountonly') do set count=%a
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Display course counts for teachers-students
|
||||||
|
You can get a count of the number of courses in which a teacher or student is a participant.
|
||||||
|
```
|
||||||
|
gam config csv_output_header_filter profile.emailAddress redirect csv ./Teachers.csv print course-participants states active show teachers
|
||||||
|
gam config csv_output_header_filter profile.emailAddress redirect csv ./Students.csv print course-participants states active show students
|
||||||
|
```
|
||||||
|
|
||||||
|
Download the following script: https://github.com/taers232c/GAM-Scripts3/blob/master/CountKeyValues.py
|
||||||
|
|
||||||
|
Edit the script.
|
||||||
|
```
|
||||||
|
KEY_FIELD = 'profile.emailAddress' # Set to a column header in KeyValues.csv
|
||||||
|
MIN_KEY_COUNT = 0 # 0 - Show all counts; N - Show counts >= N
|
||||||
|
```
|
||||||
|
|
||||||
|
Run the script.
|
||||||
|
```
|
||||||
|
python ./CountKeyValues.py Teachers.csv TeacherCounts.csv
|
||||||
|
python ./CountKeyValues.py Students.csv StudentCounts.csv
|
||||||
|
```
|
||||||
|
|||||||
@@ -10,6 +10,11 @@ Add the `-s` option to the end of the above commands to suppress creating the `g
|
|||||||
|
|
||||||
See [Downloads-Installs-GAM7](https://github.com/GAM-team/GAM/wiki/Downloads-Installs) for Windows or other options, including manual installation
|
See [Downloads-Installs-GAM7](https://github.com/GAM-team/GAM/wiki/Downloads-Installs) for Windows or other options, including manual installation
|
||||||
|
|
||||||
|
### 7.28.08
|
||||||
|
|
||||||
|
Updated `gam <UserTypeEntity> print|show chatmessages` to cache the sender UID to email address
|
||||||
|
map so that each sender UID only has to be looked up once; this improves performance.
|
||||||
|
|
||||||
### 7.28.07
|
### 7.28.07
|
||||||
|
|
||||||
Fixed bug in `gam report users ... aggregatebydate|aggregatebyuser` where `accounts:used_quota_in_percentage` was incorrectly displayed.
|
Fixed bug in `gam report users ... aggregatebydate|aggregatebyuser` where `accounts:used_quota_in_percentage` was incorrectly displayed.
|
||||||
|
|||||||
@@ -252,7 +252,7 @@ writes the credentials into the file oauth2.txt.
|
|||||||
admin@server:/Users/admin$ rm -f /Users/admin/GAMConfig/oauth2.txt
|
admin@server:/Users/admin$ rm -f /Users/admin/GAMConfig/oauth2.txt
|
||||||
admin@server:/Users/admin$ gam version
|
admin@server:/Users/admin$ gam version
|
||||||
WARNING: Config File: /Users/admin/GAMConfig/gam.cfg, Section: DEFAULT, Item: oauth2_txt, Value: /Users/admin/GAMConfig/oauth2.txt, Not Found
|
WARNING: Config File: /Users/admin/GAMConfig/gam.cfg, Section: DEFAULT, Item: oauth2_txt, Value: /Users/admin/GAMConfig/oauth2.txt, Not Found
|
||||||
GAM 7.28.07 - https://github.com/GAM-team/GAM - pyinstaller
|
GAM 7.28.08 - https://github.com/GAM-team/GAM - pyinstaller
|
||||||
GAM Team <google-apps-manager@googlegroups.com>
|
GAM Team <google-apps-manager@googlegroups.com>
|
||||||
Python 3.14.0 64-bit final
|
Python 3.14.0 64-bit final
|
||||||
macOS Tahoe 26.1 x86_64
|
macOS Tahoe 26.1 x86_64
|
||||||
@@ -990,7 +990,7 @@ writes the credentials into the file oauth2.txt.
|
|||||||
C:\>del C:\GAMConfig\oauth2.txt
|
C:\>del C:\GAMConfig\oauth2.txt
|
||||||
C:\>gam version
|
C:\>gam version
|
||||||
WARNING: Config File: C:\GAMConfig\gam.cfg, Section: DEFAULT, Item: oauth2_txt, Value: C:\GAMConfig\oauth2.txt, Not Found
|
WARNING: Config File: C:\GAMConfig\gam.cfg, Section: DEFAULT, Item: oauth2_txt, Value: C:\GAMConfig\oauth2.txt, Not Found
|
||||||
GAM 7.28.07 - https://github.com/GAM-team/GAM - pythonsource
|
GAM 7.28.08 - https://github.com/GAM-team/GAM - pythonsource
|
||||||
GAM Team <google-apps-manager@googlegroups.com>
|
GAM Team <google-apps-manager@googlegroups.com>
|
||||||
Python 3.14.0 64-bit final
|
Python 3.14.0 64-bit final
|
||||||
Windows 11 10.0.26200 AMD64
|
Windows 11 10.0.26200 AMD64
|
||||||
|
|||||||
@@ -52,11 +52,12 @@ config csv_output_row_filter "'\"accounts:used_quota_in_mb\":count>15000'"
|
|||||||
chrome|
|
chrome|
|
||||||
classroom|
|
classroom|
|
||||||
contextawareaccess|
|
contextawareaccess|
|
||||||
gplus|currents|google+|
|
|
||||||
datastudio|
|
datastudio|
|
||||||
drive|doc|docs|
|
drive|doc|docs|
|
||||||
gcp|cloud|
|
gcp|cloud|
|
||||||
geminiinworkspaceapps|gemini|geminiforworkspace|
|
geminiinworkspaceapps|gemini|geminiforworkspace|
|
||||||
|
gmail|
|
||||||
|
gplus|currents|google+|
|
||||||
groups|group|
|
groups|group|
|
||||||
groupsenterprise|enterprisegroups|
|
groupsenterprise|enterprisegroups|
|
||||||
jamboard|
|
jamboard|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
Print the current version of Gam with details
|
Print the current version of Gam with details
|
||||||
```
|
```
|
||||||
gam version
|
gam version
|
||||||
GAM 7.28.07 - https://github.com/GAM-team/GAM - pyinstaller
|
GAM 7.28.08 - https://github.com/GAM-team/GAM - pyinstaller
|
||||||
GAM Team <google-apps-manager@googlegroups.com>
|
GAM Team <google-apps-manager@googlegroups.com>
|
||||||
Python 3.14.0 64-bit final
|
Python 3.14.0 64-bit final
|
||||||
macOS Tahoe 26.1 x86_64
|
macOS Tahoe 26.1 x86_64
|
||||||
@@ -15,7 +15,7 @@ Time: 2023-06-02T21:10:00-07:00
|
|||||||
Print the current version of Gam with details and time offset information
|
Print the current version of Gam with details and time offset information
|
||||||
```
|
```
|
||||||
gam version timeoffset
|
gam version timeoffset
|
||||||
GAM 7.28.07 - https://github.com/GAM-team/GAM - pyinstaller
|
GAM 7.28.08 - https://github.com/GAM-team/GAM - pyinstaller
|
||||||
GAM Team <google-apps-manager@googlegroups.com>
|
GAM Team <google-apps-manager@googlegroups.com>
|
||||||
Python 3.14.0 64-bit final
|
Python 3.14.0 64-bit final
|
||||||
macOS Tahoe 26.1 x86_64
|
macOS Tahoe 26.1 x86_64
|
||||||
@@ -27,7 +27,7 @@ Your system time differs from www.googleapis.com by less than 1 second
|
|||||||
Print the current version of Gam with extended details and SSL information
|
Print the current version of Gam with extended details and SSL information
|
||||||
```
|
```
|
||||||
gam version extended
|
gam version extended
|
||||||
GAM 7.28.07 - https://github.com/GAM-team/GAM - pyinstaller
|
GAM 7.28.08 - https://github.com/GAM-team/GAM - pyinstaller
|
||||||
GAM Team <google-apps-manager@googlegroups.com>
|
GAM Team <google-apps-manager@googlegroups.com>
|
||||||
Python 3.14.0 64-bit final
|
Python 3.14.0 64-bit final
|
||||||
macOS Tahoe 26.1 x86_64
|
macOS Tahoe 26.1 x86_64
|
||||||
@@ -68,7 +68,7 @@ MacOS High Sierra 10.13.6 x86_64
|
|||||||
Path: /Users/Admin/bin/gam7
|
Path: /Users/Admin/bin/gam7
|
||||||
Version Check:
|
Version Check:
|
||||||
Current: 5.35.08
|
Current: 5.35.08
|
||||||
Latest: 7.28.07
|
Latest: 7.28.08
|
||||||
echo $?
|
echo $?
|
||||||
1
|
1
|
||||||
```
|
```
|
||||||
@@ -76,7 +76,7 @@ echo $?
|
|||||||
Print the current version number without details
|
Print the current version number without details
|
||||||
```
|
```
|
||||||
gam version simple
|
gam version simple
|
||||||
7.28.07
|
7.28.08
|
||||||
```
|
```
|
||||||
In Linux/MacOS you can do:
|
In Linux/MacOS you can do:
|
||||||
```
|
```
|
||||||
@@ -86,7 +86,7 @@ echo $VER
|
|||||||
Print the current version of Gam and address of this Wiki
|
Print the current version of Gam and address of this Wiki
|
||||||
```
|
```
|
||||||
gam help
|
gam help
|
||||||
GAM 7.28.07 - https://github.com/GAM-team/GAM
|
GAM 7.28.08 - https://github.com/GAM-team/GAM
|
||||||
GAM Team <google-apps-manager@googlegroups.com>
|
GAM Team <google-apps-manager@googlegroups.com>
|
||||||
Python 3.14.0 64-bit final
|
Python 3.14.0 64-bit final
|
||||||
macOS Tahoe 26.1 x86_64
|
macOS Tahoe 26.1 x86_64
|
||||||
|
|||||||
Reference in New Issue
Block a user