diff --git a/wiki/Command-Data-From-Google-Docs-Sheets-Storage.md b/wiki/Command-Data-From-Google-Docs-Sheets-Storage.md index d82cee7f..d09c4f3e 100644 --- a/wiki/Command-Data-From-Google-Docs-Sheets-Storage.md +++ b/wiki/Command-Data-From-Google-Docs-Sheets-Storage.md @@ -5,6 +5,7 @@ - [Plain Text](#plain-text) - [HTML](#html) - [Read data from a Google Sheet](#read-data-from-a-google-sheet) +- [Limited Service Account Access](#limited-service-account-access) - [Read data from a Google Cloud Storage File](#read-data-from-a-google-cloud-storage-file) - [Plain Text](#plain-text) - [CSV](#csv) @@ -79,6 +80,19 @@ Example: ``` gam csv gsheet you@exmaple.com "Sheet 1" gam create user firstname "~FirstName" lastname "~lastName" email "~email" ``` + +## Limited Service Account Access +If you want to disable a user's service account access to Drive and Sheets but still allow reading command data from Google Docs and Sheets, +issue the following command and make these settings: +``` +gam user user@domain.com update serviceaccount + +[ ] 20) Drive API (supports readonly) +[*] 21) Drive API - read command data +[ ] 42) Sheets API (supports readonly) +[*] 43) Sheets API - read command data +``` + ## Read data from a Google Cloud Storage File ``` ::= diff --git a/wiki/GamUpdates.md b/wiki/GamUpdates.md index ee7ff8d2..d36bbe1e 100644 --- a/wiki/GamUpdates.md +++ b/wiki/GamUpdates.md @@ -10,6 +10,19 @@ 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 +### 7.24.00 + +If you want to disable a user's service account access to Drive and Sheets but still allow reading command data from Google Docs and Sheets, +issue the following command and make these settings: +``` +gam user user@domain.com update serviceaccount + +[ ] 20) Drive API (supports readonly) +[*] 21) Drive API - read command data +[ ] 42) Sheets API (supports readonly) +[*] 43) Sheets API - read command data +``` + ### 7.23.07 Fixed bug in `gam print|show admins` where all admin assignments were not displayed when diff --git a/wiki/How-to-Upgrade-Legacy-GAM-to-GAM7.md b/wiki/How-to-Upgrade-Legacy-GAM-to-GAM7.md index 0059e3cb..f6f6c151 100644 --- a/wiki/How-to-Upgrade-Legacy-GAM-to-GAM7.md +++ b/wiki/How-to-Upgrade-Legacy-GAM-to-GAM7.md @@ -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$ gam version WARNING: Config File: /Users/admin/GAMConfig/gam.cfg, Section: DEFAULT, Item: oauth2_txt, Value: /Users/admin/GAMConfig/oauth2.txt, Not Found -GAM 7.23.07 - https://github.com/GAM-team/GAM - pyinstaller +GAM 7.24.00 - https://github.com/GAM-team/GAM - pyinstaller GAM Team Python 3.13.7 64-bit final macOS Tahoe 26.0.1 x86_64 @@ -990,7 +990,7 @@ writes the credentials into the file oauth2.txt. C:\>del C:\GAMConfig\oauth2.txt C:\>gam version WARNING: Config File: C:\GAMConfig\gam.cfg, Section: DEFAULT, Item: oauth2_txt, Value: C:\GAMConfig\oauth2.txt, Not Found -GAM 7.23.07 - https://github.com/GAM-team/GAM - pythonsource +GAM 7.24.00 - https://github.com/GAM-team/GAM - pythonsource GAM Team Python 3.13.7 64-bit final Windows-10-10.0.17134 AMD64 diff --git a/wiki/Todrive.md b/wiki/Todrive.md index e3d35ae9..9cba27bb 100644 --- a/wiki/Todrive.md +++ b/wiki/Todrive.md @@ -330,16 +330,16 @@ you want the updated data copied to `Latest` so you don't have to remember what gam redirect csv - todrive tdfileid tdupdatesheet tdsheet Tuesday tdbackupsheet "Backup Tuesday" tdcopysheet "Latest" ... ``` ## Limited Service Account Access -If you want to limit a user's service account access but still allow `todrive', -issue the following command and authorize the additional service account APIs: +If you want to limit a user's service account access to Drive, Gmail and Sheets but still allow `todrive`, +issue the following command and make these settings: ``` -gam user user@domain.com update serviceaccount` +gam user user@domain.com update serviceaccount -Authorize these APIs: - -Drive API - todrive -Gmail API - Send Messages - including todrive -Sheets API - todrive +[ ] 20) Drive API (supports readonly) +[*] 22) Drive API - write todrive data +[*] 31) Gmail API - Send Messages - including todrive +[ ] 42) Sheets API (supports readonly) +[*] 44) Sheets API - write todrive data ``` ## No Service Account Access diff --git a/wiki/Version-and-Help.md b/wiki/Version-and-Help.md index c996576e..1dc97d06 100644 --- a/wiki/Version-and-Help.md +++ b/wiki/Version-and-Help.md @@ -3,7 +3,7 @@ Print the current version of Gam with details ``` gam version -GAM 7.23.07 - https://github.com/GAM-team/GAM - pyinstaller +GAM 7.24.00 - https://github.com/GAM-team/GAM - pyinstaller GAM Team Python 3.13.7 64-bit final macOS Tahoe 26.0.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 ``` gam version timeoffset -GAM 7.23.07 - https://github.com/GAM-team/GAM - pyinstaller +GAM 7.24.00 - https://github.com/GAM-team/GAM - pyinstaller GAM Team Python 3.13.7 64-bit final macOS Tahoe 26.0.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 ``` gam version extended -GAM 7.23.07 - https://github.com/GAM-team/GAM - pyinstaller +GAM 7.24.00 - https://github.com/GAM-team/GAM - pyinstaller GAM Team Python 3.13.7 64-bit final macOS Tahoe 26.0.1 x86_64