mirror of
https://github.com/GAM-team/GAM.git
synced 2026-07-03 20:31:35 +00:00
Multiple updates
Course copyfrom update Python 3.12.4 Chat API DPP
This commit is contained in:
2
.github/workflows/build.yml
vendored
2
.github/workflows/build.yml
vendored
@@ -115,7 +115,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
path: |
|
path: |
|
||||||
cache.tar.xz
|
cache.tar.xz
|
||||||
key: gam-${{ matrix.jid }}-20240607
|
key: gam-${{ matrix.jid }}-20240620
|
||||||
|
|
||||||
- name: Untar Cache archive
|
- name: Untar Cache archive
|
||||||
if: matrix.goal == 'build' && steps.cache-python-ssl.outputs.cache-hit == 'true'
|
if: matrix.goal == 'build' && steps.cache-python-ssl.outputs.cache-hit == 'true'
|
||||||
|
|||||||
@@ -47,6 +47,64 @@ This Wiki page was built directly from Jay Lee's Wiki page; my sincere thanks fo
|
|||||||
<ChatMessageID> ::= client-<String>
|
<ChatMessageID> ::= client-<String>
|
||||||
<String> must contain only lowercase letters, numbers, and hyphens up to 56 characters in length.
|
<String> must contain only lowercase letters, numbers, and hyphens up to 56 characters in length.
|
||||||
```
|
```
|
||||||
|
```
|
||||||
|
<ChatSpaceFieldName> ::=
|
||||||
|
accesssettings|
|
||||||
|
admininstalled|
|
||||||
|
createtime|
|
||||||
|
displayname|
|
||||||
|
externaluserallowed|
|
||||||
|
importmode|
|
||||||
|
lastactivetime|
|
||||||
|
membershipcount|
|
||||||
|
name|
|
||||||
|
singleuserbotdm|
|
||||||
|
spacedetails|
|
||||||
|
spacehistorystate|
|
||||||
|
spacethreadingstate|threaded|
|
||||||
|
spacetype|type|
|
||||||
|
spaceuri
|
||||||
|
<ChatSpaceFieldNameList> ::= "<ChatSpaceFieldName>(,<ChatSpaceFieldName>)*"
|
||||||
|
|
||||||
|
<ChatMemberFieldName> ::=
|
||||||
|
createtime|
|
||||||
|
deletetime|
|
||||||
|
groupmember|
|
||||||
|
member|
|
||||||
|
name|
|
||||||
|
role|
|
||||||
|
state|
|
||||||
|
<ChatMemberFieldNameList> ::= "<ChatMemberFieldName>(,<ChatMemberFieldName>)*"
|
||||||
|
|
||||||
|
<ChatMessageFieldName> ::=
|
||||||
|
accessorywidgets|
|
||||||
|
actionresponse|
|
||||||
|
annotations|
|
||||||
|
argumenttext|
|
||||||
|
attachedgifs|
|
||||||
|
attachment|
|
||||||
|
cards|
|
||||||
|
cardsv2|
|
||||||
|
clientassignedmessageid|
|
||||||
|
createtime|
|
||||||
|
deletetime|
|
||||||
|
deletionmetadata|
|
||||||
|
emojireactionsummaries|
|
||||||
|
fallbacktext|
|
||||||
|
formattedtext|
|
||||||
|
lastupdatetime|
|
||||||
|
matchedurl|
|
||||||
|
name|
|
||||||
|
privatemessageviewer|
|
||||||
|
quotedmessagemetadata|
|
||||||
|
sender|
|
||||||
|
slashcommand|
|
||||||
|
space|
|
||||||
|
text|
|
||||||
|
thread|
|
||||||
|
threadreply
|
||||||
|
<ChatMessageFieldNameList> ::= "<ChatMessageFieldName>(,<ChatMessageFieldName>)*"
|
||||||
|
```
|
||||||
|
|
||||||
## Set up a Chat Bot
|
## Set up a Chat Bot
|
||||||
Since GAM 6.04.00, GAM is capable of acting as a Chat Bot and sending messages to Chat Rooms or direct messages to users. You first need to configure your Chat Bot.
|
Since GAM 6.04.00, GAM is capable of acting as a Chat Bot and sending messages to Chat Rooms or direct messages to users. You first need to configure your Chat Bot.
|
||||||
@@ -69,6 +127,7 @@ At first you'll have no spaces listed. Try [finding your bot and chatting it](ht
|
|||||||
### Display information about a specific chat space
|
### Display information about a specific chat space
|
||||||
```
|
```
|
||||||
gam info chatspace space <ChatSpace>
|
gam info chatspace space <ChatSpace>
|
||||||
|
[fields <ChatSpaceFieldNameList>]
|
||||||
[formatjson]
|
[formatjson]
|
||||||
```
|
```
|
||||||
By default, Gam displays the information as an indented list of keys and values.
|
By default, Gam displays the information as an indented list of keys and values.
|
||||||
@@ -77,6 +136,7 @@ By default, Gam displays the information as an indented list of keys and values.
|
|||||||
### Display information about all chat spaces
|
### Display information about all chat spaces
|
||||||
```
|
```
|
||||||
gam show chatspaces
|
gam show chatspaces
|
||||||
|
[fields <ChatSpaceFieldNameList>]
|
||||||
[formatjson]
|
[formatjson]
|
||||||
```
|
```
|
||||||
By default, Gam displays the information as an indented list of keys and values.
|
By default, Gam displays the information as an indented list of keys and values.
|
||||||
@@ -84,11 +144,12 @@ By default, Gam displays the information as an indented list of keys and values.
|
|||||||
|
|
||||||
```
|
```
|
||||||
gam print chatspaces [todrive <ToDriveAttribute>*]
|
gam print chatspaces [todrive <ToDriveAttribute>*]
|
||||||
|
[fields <ChatSpaceFieldNameList>]
|
||||||
[formatjson [quotechar <Character>]]
|
[formatjson [quotechar <Character>]]
|
||||||
```
|
```
|
||||||
By default, Gam displays the information as columns of fields; the following option causes the output to be in JSON format,
|
By default, Gam displays the information as columns of fields; the following option causes the output to be in JSON format,
|
||||||
* `formatjson` - Display the fields in JSON format.
|
* `formatjson` - Display the fields in JSON format.
|
||||||
|
`
|
||||||
By default, when writing CSV files, Gam uses a quote character of double quote `"`. The quote character is used to enclose columns that contain
|
By default, when writing CSV files, Gam uses a quote character of double quote `"`. The quote character is used to enclose columns that contain
|
||||||
the quote character itself, the column delimiter (comma by default) and new-line characters. Any quote characters within the column are doubled.
|
the quote character itself, the column delimiter (comma by default) and new-line characters. Any quote characters within the column are doubled.
|
||||||
When using the `formatjson` option, double quotes are used extensively in the data resulting in hard to read/process output.
|
When using the `formatjson` option, double quotes are used extensively in the data resulting in hard to read/process output.
|
||||||
@@ -101,6 +162,7 @@ The `quotechar <Character>` option allows you to choose an alternate quote chara
|
|||||||
### Display information about a specific chat member
|
### Display information about a specific chat member
|
||||||
```
|
```
|
||||||
gam info chatmember member <ChatMember>
|
gam info chatmember member <ChatMember>
|
||||||
|
[fields <ChatMemberFieldNameList>]
|
||||||
[formatjson]
|
[formatjson]
|
||||||
```
|
```
|
||||||
By default, Gam displays the information as an indented list of keys and values.
|
By default, Gam displays the information as an indented list of keys and values.
|
||||||
@@ -110,6 +172,7 @@ By default, Gam displays the information as an indented list of keys and values.
|
|||||||
```
|
```
|
||||||
gam show chatmembers space <ChatSpace>
|
gam show chatmembers space <ChatSpace>
|
||||||
[showinvited [<Boolean>]] [showgroups [<Boolean>]] [filter <String>]
|
[showinvited [<Boolean>]] [showgroups [<Boolean>]] [filter <String>]
|
||||||
|
[fields <ChatMemberFieldNameList>]
|
||||||
[formatjson]
|
[formatjson]
|
||||||
```
|
```
|
||||||
By default, Gam displays the information as an indented list of keys and values.
|
By default, Gam displays the information as an indented list of keys and values.
|
||||||
@@ -118,6 +181,7 @@ By default, Gam displays the information as an indented list of keys and values.
|
|||||||
```
|
```
|
||||||
gam print chatmembers [todrive <ToDriveAttribute>*] space <ChatSpace>
|
gam print chatmembers [todrive <ToDriveAttribute>*] space <ChatSpace>
|
||||||
[showinvited [<Boolean>]] [showgroups [<Boolean>]] [filter <String>]
|
[showinvited [<Boolean>]] [showgroups [<Boolean>]] [filter <String>]
|
||||||
|
[fields <ChatMemberFieldNameList>]
|
||||||
[formatjson [quotechar <Character>]]
|
[formatjson [quotechar <Character>]]
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -238,6 +302,7 @@ Display the given Chat message.
|
|||||||
|
|
||||||
```
|
```
|
||||||
gam info chatmessage name <ChatMessage>
|
gam info chatmessage name <ChatMessage>
|
||||||
|
[fields <ChatMessageFieldNameList>]
|
||||||
[formatjson]
|
[formatjson]
|
||||||
```
|
```
|
||||||
By default, Gam displays the information as an indented list of keys and values.
|
By default, Gam displays the information as an indented list of keys and values.
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -272,6 +272,7 @@ gam create|add course [id|alias <CourseAlias>] <CourseAttribute>*
|
|||||||
[announcementstates <CourseAnnouncementStateList>]
|
[announcementstates <CourseAnnouncementStateList>]
|
||||||
[materialstates <CourseMaterialStateList>]
|
[materialstates <CourseMaterialStateList>]
|
||||||
[workstates <CourseWorkStateList>]
|
[workstates <CourseWorkStateList>]
|
||||||
|
[individualstudentassignments copy|delete|maptoall]
|
||||||
[removeduedate [<Boolean>]]
|
[removeduedate [<Boolean>]]
|
||||||
[mapsharemodestudentcopy edit|none|view]
|
[mapsharemodestudentcopy edit|none|view]
|
||||||
[copymaterialsfiles [<Boolean>]]
|
[copymaterialsfiles [<Boolean>]]
|
||||||
@@ -286,6 +287,7 @@ gam update course <CourseID> <CourseAttribute>+
|
|||||||
[announcementstates <CourseAnnouncementStateList>]
|
[announcementstates <CourseAnnouncementStateList>]
|
||||||
[materialstates <CourseMaterialStateList>]
|
[materialstates <CourseMaterialStateList>]
|
||||||
[workstates <CourseWorkStateList>]
|
[workstates <CourseWorkStateList>]
|
||||||
|
[individualstudentassignments copy|delete|maptoall]
|
||||||
[removeduedate [<Boolean>]]
|
[removeduedate [<Boolean>]]
|
||||||
[mapsharemodestudentcopy edit|none|view]
|
[mapsharemodestudentcopy edit|none|view]
|
||||||
[copymaterialsfiles [<Boolean>]]
|
[copymaterialsfiles [<Boolean>]]
|
||||||
@@ -299,6 +301,7 @@ gam update courses <CourseEntity> <CourseAttribute>+
|
|||||||
[announcementstates <CourseAnnouncementStateList>]
|
[announcementstates <CourseAnnouncementStateList>]
|
||||||
[materialstates <CourseMaterialStateList>]
|
[materialstates <CourseMaterialStateList>]
|
||||||
[workstates <CourseWorkStateList>]
|
[workstates <CourseWorkStateList>]
|
||||||
|
[individualstudentassignments copy|delete|maptoall]
|
||||||
[removeduedate [<Boolean>]]
|
[removeduedate [<Boolean>]]
|
||||||
[mapsharemodestudentcopy edit|none|view]
|
[mapsharemodestudentcopy edit|none|view]
|
||||||
[copymaterialsfiles [<Boolean>]]
|
[copymaterialsfiles [<Boolean>]]
|
||||||
@@ -315,6 +318,9 @@ gam update courses <CourseEntity> <CourseAttribute>+
|
|||||||
* `materialstates <CourseMaterialsStateList>` - Copy class materials with the specified states
|
* `materialstates <CourseMaterialsStateList>` - Copy class materials with the specified states
|
||||||
* Work - By default, no course work is copied
|
* Work - By default, no course work is copied
|
||||||
* `workstates <CourseWorkStateList>` - Copy class work with the specified states
|
* `workstates <CourseWorkStateList>` - Copy class work with the specified states
|
||||||
|
* `individualstudentassignments copy` - Copy individual student assignments; this is the default. You will get an error if the student is not a member of the course.
|
||||||
|
* `individualstudentassignments delete` - Delete individual student assignments
|
||||||
|
* `individualstudentassignments maptoall` - Map individual student assignments to all student assignments
|
||||||
* `removeduedate false` - Remove due dates before the current time; this is the default
|
* `removeduedate false` - Remove due dates before the current time; this is the default
|
||||||
* `removeduedate|removeduedate true` - Remove all due dates
|
* `removeduedate|removeduedate true` - Remove all due dates
|
||||||
* Announcements, Materials and Work Materials files
|
* Announcements, Materials and Work Materials files
|
||||||
|
|||||||
@@ -10,6 +10,34 @@ Add the `-s` option to the end of the above commands to suppress creating the `g
|
|||||||
|
|
||||||
See [Downloads](https://github.com/taers232c/GAMADV-XTD3/wiki/Downloads) for Windows or other options, including manual installation
|
See [Downloads](https://github.com/taers232c/GAMADV-XTD3/wiki/Downloads) for Windows or other options, including manual installation
|
||||||
|
|
||||||
|
### 6.77.00
|
||||||
|
|
||||||
|
Added option `individualstudentassignments copy|delete|maptoall` to `gam create|update course ... copyfrom`
|
||||||
|
that controls how individual student assignments in the `copyfrom` course are processed.
|
||||||
|
* `individualstudentassignments copy` - Copy individual student assignments; this is the default. You will get an error if the student is not a member of the course.
|
||||||
|
* `individualstudentassignments delete` - Delete individual student assignments
|
||||||
|
* `individualstudentassignments maptoall` - Map individual student assignments to all student assignments
|
||||||
|
|
||||||
|
Upgraded to Python 3.12.4 where possible.
|
||||||
|
|
||||||
|
Added option `asadmin` to the following Chat commands that allows admin access.
|
||||||
|
These commands are in Developer Preview, your project must have Developer Preview enabled for the Chat API
|
||||||
|
in order to use these commands.
|
||||||
|
```
|
||||||
|
gam <UserItem> delete chatspace asadmin
|
||||||
|
gam <UserItem> update chatspace asadmin
|
||||||
|
gam <UserItem> info chatspace asadmin
|
||||||
|
gam <UserItem> print|show chatspaces asadmin
|
||||||
|
gam <UserItem> create chatmember asadmin
|
||||||
|
gam <UserItem> delete|remove chatmember asadmin
|
||||||
|
gam <UserItem> update|modify chatmember asadmin
|
||||||
|
gam <UserItem> sync chatmembers asadmin
|
||||||
|
gam <UserItem> info chatmember asadmin
|
||||||
|
gam <UserItem> print|show chatmembers|asadmin
|
||||||
|
```
|
||||||
|
|
||||||
|
* See: https://github.com/taers232c/GAMADV-XTD3/wiki/Users-Chat
|
||||||
|
|
||||||
### 6.76.15
|
### 6.76.15
|
||||||
|
|
||||||
Fixed bug in `gam <UserTypeEntity> print|show filesharecounts summary only summaryuser <String>`
|
Fixed bug in `gam <UserTypeEntity> print|show filesharecounts summary only summaryuser <String>`
|
||||||
|
|||||||
@@ -279,6 +279,7 @@ If `actioncsv` is specified, a CSV file with columns `group,email,role,action,me
|
|||||||
that shows the actions performed when updating the group.
|
that shows the actions performed when updating the group.
|
||||||
|
|
||||||
The option `additionalmembers [<GroupRole>] <EmailAddressEntity>` can be used to specify members in addition to those specified with `<UserTypeEntity>`.
|
The option `additionalmembers [<GroupRole>] <EmailAddressEntity>` can be used to specify members in addition to those specified with `<UserTypeEntity>`.
|
||||||
|
If a <GroupRole> is specified, it must match the same role as the one used for the group sync.
|
||||||
|
|
||||||
For example,
|
For example,
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -10,6 +10,7 @@
|
|||||||
- [Definitions](#definitions)
|
- [Definitions](#definitions)
|
||||||
- [GUI API Group settings mapping](#gui-api-group-settings-mapping)
|
- [GUI API Group settings mapping](#gui-api-group-settings-mapping)
|
||||||
- [GUI API Group access type settings mapping](#gui-api-group-access-type-settings-mapping)
|
- [GUI API Group access type settings mapping](#gui-api-group-access-type-settings-mapping)
|
||||||
|
- [whoCanViewMembership and whoCanDiscoverGroup interactions](#whocanviewmembership-and-whocandiscovergroup-interactions)
|
||||||
- [Manage groups](#manage-groups)
|
- [Manage groups](#manage-groups)
|
||||||
- [Update a group's settings with JSON data](#update-a-groups-settings-with-json-data)
|
- [Update a group's settings with JSON data](#update-a-groups-settings-with-json-data)
|
||||||
- [Display information about specific groups](#display-information-about-specific-groups)
|
- [Display information about specific groups](#display-information-about-specific-groups)
|
||||||
@@ -303,6 +304,46 @@ Restricted
|
|||||||
whoCanViewMembership ALL_MEMBERS_CAN_VIEW
|
whoCanViewMembership ALL_MEMBERS_CAN_VIEW
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## whoCanViewMembership and whoCanDiscoverGroup interactions
|
||||||
|
Some combinations of these two settings are not allowed:
|
||||||
|
```
|
||||||
|
gam update group group@domain.com whoCanViewMembership ALL_IN_DOMAIN_CAN_VIEW whoCanDiscoverGroup ANYONE_CAN_DISCOVER
|
||||||
|
Group: group@domain.com, Updated
|
||||||
|
|
||||||
|
gam update group group@domain.com whoCanViewMembership ALL_OWNERS_CAN_VIEW whoCanDiscoverGroup ANYONE_CAN_DISCOVER
|
||||||
|
Group: group@domain.com, Update Failed: Failed request validation in update settings: DONT_USE_OR_ELSE_WHO_CAN_MANAGE_MEMBERS_CANNOT_BE_BROADER_THAN_WHO_CAN_VIEW_MEMBERSHIP
|
||||||
|
|
||||||
|
gam update group group@domain.com whoCanViewMembership ALL_MANAGERS_CAN_VIEW whoCanDiscoverGroup ANYONE_CAN_DISCOVER
|
||||||
|
Group: group@domain.com, Updated
|
||||||
|
|
||||||
|
gam update group group@domain.com whoCanViewMembership ALL_MEMBERS_CAN_VIEW whoCanDiscoverGroup ANYONE_CAN_DISCOVER
|
||||||
|
Group: group@domain.com, Updated
|
||||||
|
|
||||||
|
gam update group group@domain.com whoCanViewMembership ALL_IN_DOMAIN_CAN_VIEW whoCanDiscoverGroup ALL_IN_DOMAIN_CAN_DISCOVER
|
||||||
|
Group: group@domain.com, Updated
|
||||||
|
|
||||||
|
gam update group group@domain.com whoCanViewMembership ALL_OWNERS_CAN_VIEW whoCanDiscoverGroup ALL_IN_DOMAIN_CAN_DISCOVER
|
||||||
|
Group: group@domain.com, Update Failed: Failed request validation in update settings: DONT_USE_OR_ELSE_WHO_CAN_MANAGE_MEMBERS_CANNOT_BE_BROADER_THAN_WHO_CAN_VIEW_MEMBERSHIP
|
||||||
|
|
||||||
|
gam update group group@domain.com whoCanViewMembership ALL_MANAGERS_CAN_VIEW whoCanDiscoverGroup ALL_IN_DOMAIN_CAN_DISCOVER
|
||||||
|
Group: group@domain.com, Updated
|
||||||
|
|
||||||
|
gam update group group@domain.com whoCanViewMembership ALL_MEMBERS_CAN_VIEW whoCanDiscoverGroup ALL_IN_DOMAIN_CAN_DISCOVER
|
||||||
|
Group: group@domain.com, Updated
|
||||||
|
|
||||||
|
gam update group group@domain.com whoCanViewMembership ALL_IN_DOMAIN_CAN_VIEW whoCanDiscoverGroup ALL_MEMBERS_CAN_DISCOVER
|
||||||
|
Group: group@domain.com, Update Failed: Failed request validation in update settings: WHO_CAN_VIEW_MEMBERSHIP_CANNOT_BE_BROADER_THAN_WHO_CAN_SEE_GROUP
|
||||||
|
|
||||||
|
gam update group group@domain.com whoCanViewMembership ALL_OWNERS_CAN_VIEW whoCanDiscoverGroup ALL_MEMBERS_CAN_DISCOVER
|
||||||
|
Group: group@domain.com, Update Failed: Failed request validation in update settings: DONT_USE_OR_ELSE_WHO_CAN_MANAGE_MEMBERS_CANNOT_BE_BROADER_THAN_WHO_CAN_VIEW_MEMBERSHIP
|
||||||
|
|
||||||
|
gam update group group@domain.com whoCanViewMembership ALL_MANAGERS_CAN_VIEW whoCanDiscoverGroup ALL_MEMBERS_CAN_DISCOVER
|
||||||
|
Group: group@domain.com, Updated
|
||||||
|
|
||||||
|
gam update group group@domain.com whoCanViewMembership ALL_MEMBERS_CAN_VIEW whoCanDiscoverGroup ALL_MEMBERS_CAN_DISCOVER
|
||||||
|
Group: group@domain.com, Updated
|
||||||
|
```
|
||||||
|
|
||||||
## Manage groups
|
## Manage groups
|
||||||
|
|
||||||
These commands allow you to create, update and delete groups.
|
These commands allow you to create, update and delete groups.
|
||||||
|
|||||||
@@ -335,10 +335,10 @@ writes the credentials into the file oauth2.txt.
|
|||||||
admin@server:/Users/admin/bin/gamadv-xtd3$ rm -f /Users/admin/GAMConfig/oauth2.txt
|
admin@server:/Users/admin/bin/gamadv-xtd3$ rm -f /Users/admin/GAMConfig/oauth2.txt
|
||||||
admin@server:/Users/admin/bin/gamadv-xtd3$ ./gam version
|
admin@server:/Users/admin/bin/gamadv-xtd3$ ./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
|
||||||
GAMADV-XTD3 6.76.15 - https://github.com/taers232c/GAMADV-XTD3 - pythonsource
|
GAMADV-XTD3 6.77.00 - https://github.com/taers232c/GAMADV-XTD3 - pythonsource
|
||||||
Ross Scroggs <ross.scroggs@gmail.com>
|
Ross Scroggs <ross.scroggs@gmail.com>
|
||||||
Python 3.12.3 64-bit final
|
Python 3.12.4 64-bit final
|
||||||
MacOS Sonoma 14.4.1 x86_64
|
MacOS Sonoma 14.5 x86_64
|
||||||
Path: /Users/admin/bin/gamadv-xtd3
|
Path: /Users/admin/bin/gamadv-xtd3
|
||||||
Config File: /Users/admin/GAMConfig/gam.cfg, Section: DEFAULT, customer_id: my_customer, domain: domain.com
|
Config File: /Users/admin/GAMConfig/gam.cfg, Section: DEFAULT, customer_id: my_customer, domain: domain.com
|
||||||
|
|
||||||
@@ -1009,9 +1009,9 @@ writes the credentials into the file oauth2.txt.
|
|||||||
C:\GAMADV-XTD3>del C:\GAMConfig\oauth2.txt
|
C:\GAMADV-XTD3>del C:\GAMConfig\oauth2.txt
|
||||||
C:\GAMADV-XTD3>gam version
|
C:\GAMADV-XTD3>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
|
||||||
GAMADV-XTD3 6.76.15 - https://github.com/taers232c/GAMADV-XTD3 - pythonsource
|
GAMADV-XTD3 6.77.00 - https://github.com/taers232c/GAMADV-XTD3 - pythonsource
|
||||||
Ross Scroggs <ross.scroggs@gmail.com>
|
Ross Scroggs <ross.scroggs@gmail.com>
|
||||||
Python 3.12.3 64-bit final
|
Python 3.12.4 64-bit final
|
||||||
Windows-10-10.0.17134 AMD64
|
Windows-10-10.0.17134 AMD64
|
||||||
Path: C:\GAMADV-XTD3
|
Path: C:\GAMADV-XTD3
|
||||||
Config File: C:\GAMConfig\gam.cfg, Section: DEFAULT, customer_id: my_customer, domain: domain.com
|
Config File: C:\GAMConfig\gam.cfg, Section: DEFAULT, customer_id: my_customer, domain: domain.com
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
# Users - Chat
|
# Users - Chat
|
||||||
- [API documentation](#api-documentation)
|
- [API documentation](#api-documentation)
|
||||||
- [Introduction](#introduction)
|
- [Introduction](#introduction)
|
||||||
|
- [Developer Preview Admin Access](#developer-preview-admin-access)
|
||||||
- [Set up a Chat Bot](#set-up-a-chat-bot)
|
- [Set up a Chat Bot](#set-up-a-chat-bot)
|
||||||
- [Definitions](#definitions)
|
- [Definitions](#definitions)
|
||||||
- [Manage Chat Spaces](#manage-chat-spaces)
|
- [Manage Chat Spaces](#manage-chat-spaces)
|
||||||
@@ -19,6 +20,7 @@
|
|||||||
* https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.messages/list
|
* https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.messages/list
|
||||||
* https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.spaceEvents/list
|
* https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.spaceEvents/list
|
||||||
* https://support.google.com/chat/answer/7655820
|
* https://support.google.com/chat/answer/7655820
|
||||||
|
* https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces/search
|
||||||
|
|
||||||
## Introduction
|
## Introduction
|
||||||
These features were added in version 6.60.00.
|
These features were added in version 6.60.00.
|
||||||
@@ -27,12 +29,42 @@ To use these commands you must update your service account authorization.
|
|||||||
```
|
```
|
||||||
gam user user@domain.com update serviceaccount
|
gam user user@domain.com update serviceaccount
|
||||||
|
|
||||||
[*] 3) Chat API - Memberships (supports readonly)
|
[*] 4) Chat API - Memberships (supports readonly)
|
||||||
[*] 4) Chat API - Messages (supports readonly)
|
[*] 6) Chat API - Messages (supports readonly)
|
||||||
[*] 5) Chat API - Spaces (supports readonly)
|
[*] 7) Chat API - Spaces (supports readonly)
|
||||||
[*] 6) Chat API - Spaces Delete
|
[*] 9) Chat API - Spaces Delete
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Developer Preview Admin Access
|
||||||
|
The Chat API Developer Preview allows an admin to perform certain actions
|
||||||
|
on all Chat Spaces. These commands were added in version 6.77.00.
|
||||||
|
|
||||||
|
You must be enrolled in the Developer Preview program for the CHAT API to use these commands.
|
||||||
|
|
||||||
|
```
|
||||||
|
gam <UserItem> delete chatspace asadmin
|
||||||
|
gam <UserItem> update chatspace asadmin
|
||||||
|
gam <UserItem> info chatspace asadmin
|
||||||
|
gam <UserItem> print|show chatspaces asadmin
|
||||||
|
gam <UserItem> create chatmember asadmin
|
||||||
|
gam <UserItem> delete|remove chatmember asadmin
|
||||||
|
gam <UserItem> update|modify chatmember asadmin
|
||||||
|
gam <UserItem> sync chatmembers asadmin
|
||||||
|
gam <UserItem> info chatmember asadmin
|
||||||
|
gam <UserItem> print|show chatmembers|asadmin
|
||||||
|
```
|
||||||
|
To use these commands you must update your service account authorization.
|
||||||
|
```
|
||||||
|
gam user user@domain.com update serviceaccount
|
||||||
|
|
||||||
|
```
|
||||||
|
[*] 5) Chat API - Memberships Admin (supports readonly)
|
||||||
|
[*] 8) Chat API - Spaces Admin (supports readonly)
|
||||||
|
[*] 10) Chat API - Spaces Delete Admin
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
Google requires that you have a Chat Bot configured in order to use the Chat API; set up a Chat Bot as described in the next section.
|
Google requires that you have a Chat Bot configured in order to use the Chat API; set up a Chat Bot as described in the next section.
|
||||||
|
|
||||||
## Set up a Chat Bot
|
## Set up a Chat Bot
|
||||||
@@ -81,6 +113,65 @@ Google requires that you have a Chat Bot configured in order to use the Chat API
|
|||||||
<ChatMessageID> ::= client-<String>
|
<ChatMessageID> ::= client-<String>
|
||||||
<String> must contain only lowercase letters, numbers, and hyphens up to 56 characters in length.
|
<String> must contain only lowercase letters, numbers, and hyphens up to 56 characters in length.
|
||||||
```
|
```
|
||||||
|
```
|
||||||
|
<ChatSpaceFieldName> ::=
|
||||||
|
accesssettings|
|
||||||
|
admininstalled|
|
||||||
|
createtime|
|
||||||
|
displayname|
|
||||||
|
externaluserallowed|
|
||||||
|
importmode|
|
||||||
|
lastactivetime|
|
||||||
|
membershipcount|
|
||||||
|
name|
|
||||||
|
singleuserbotdm|
|
||||||
|
spacedetails|
|
||||||
|
spacehistorystate|
|
||||||
|
spacethreadingstate|threaded|
|
||||||
|
spacetype|type|
|
||||||
|
spaceuri
|
||||||
|
<ChatSpaceFieldNameList> ::= "<ChatSpaceFieldName>(,<ChatSpaceFieldName>)*"
|
||||||
|
|
||||||
|
<ChatMemberFieldName> ::=
|
||||||
|
createtime|
|
||||||
|
deletetime|
|
||||||
|
groupmember|
|
||||||
|
member|
|
||||||
|
name|
|
||||||
|
role|
|
||||||
|
state|
|
||||||
|
<ChatMemberFieldNameList> ::= "<ChatMemberFieldName>(,<ChatMemberFieldName>)*"
|
||||||
|
|
||||||
|
<ChatMessageFieldName> ::=
|
||||||
|
accessorywidgets|
|
||||||
|
actionresponse|
|
||||||
|
annotations|
|
||||||
|
argumenttext|
|
||||||
|
attachedgifs|
|
||||||
|
attachment|
|
||||||
|
cards|
|
||||||
|
cardsv2|
|
||||||
|
clientassignedmessageid|
|
||||||
|
createtime|
|
||||||
|
deletetime|
|
||||||
|
deletionmetadata|
|
||||||
|
emojireactionsummaries|
|
||||||
|
fallbacktext|
|
||||||
|
formattedtext|
|
||||||
|
lastupdatetime|
|
||||||
|
matchedurl|
|
||||||
|
name|
|
||||||
|
privatemessageviewer|
|
||||||
|
quotedmessagemetadata|
|
||||||
|
sender|
|
||||||
|
slashcommand|
|
||||||
|
space|
|
||||||
|
text|
|
||||||
|
thread|
|
||||||
|
threadreply
|
||||||
|
<ChatMessageFieldNameList> ::= "<ChatMessageFieldName>(,<ChatMessageFieldName>)*"
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
## Manage Chat Spaces
|
## Manage Chat Spaces
|
||||||
### Create a chat space
|
### Create a chat space
|
||||||
@@ -128,7 +219,7 @@ The `restricted|audience` options are in Developer Preview and will not be gener
|
|||||||
By default, details about the chatmessage are displayed.
|
By default, details about the chatmessage are displayed.
|
||||||
* `returnidonly` - Display the chatmessage name only
|
* `returnidonly` - Display the chatmessage name only
|
||||||
|
|
||||||
### Update a chat space
|
### Update a user's chat space
|
||||||
```
|
```
|
||||||
gam <UserTypeEntity> update chatspace <ChatSpace>
|
gam <UserTypeEntity> update chatspace <ChatSpace>
|
||||||
[restricted|(audience <String>)]|
|
[restricted|(audience <String>)]|
|
||||||
@@ -146,15 +237,39 @@ They are in Developer Preview and will not be generally available.
|
|||||||
By default, Gam displays the information about the created chatspace as an indented list of keys and values.
|
By default, Gam displays the information about the created chatspace as an indented list of keys and values.
|
||||||
* `formatjson` - Display the fields in JSON format.
|
* `formatjson` - Display the fields in JSON format.
|
||||||
|
|
||||||
### Delete a chat space
|
### Update a chat space, asadmin
|
||||||
|
```
|
||||||
|
gam <UserItem> update chatspace asadmin <ChatSpace>
|
||||||
|
[restricted|(audience <String>)]|
|
||||||
|
([displayname <String>]
|
||||||
|
[type space]
|
||||||
|
[description <String>] [guidelines|rules <String>]
|
||||||
|
[history <Boolean>])
|
||||||
|
[formatjson]
|
||||||
|
```
|
||||||
|
A groupchat space can be upgraded to a space by specifying `type space` and `displayname <String>`.
|
||||||
|
|
||||||
|
The `restricted|audience` options can not be combined with options `displayname,type,description,guidelines,history`.
|
||||||
|
They are in Developer Preview and will not be generally available.
|
||||||
|
|
||||||
|
By default, Gam displays the information about the created chatspace as an indented list of keys and values.
|
||||||
|
* `formatjson` - Display the fields in JSON format.
|
||||||
|
|
||||||
|
### Delete a user's chat space
|
||||||
```
|
```
|
||||||
gam <UserTypeEntity> delete chatspace <ChatSpace>
|
gam <UserTypeEntity> delete chatspace <ChatSpace>
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### Delete a chat space, asadmin
|
||||||
|
```
|
||||||
|
gam <UserItem> delete chatspace asadmin <ChatSpace>
|
||||||
|
```
|
||||||
|
|
||||||
## Display Chat Spaces
|
## Display Chat Spaces
|
||||||
### Display information about a specific chat space for a user
|
### Display information about a specific chat space for a user
|
||||||
```
|
```
|
||||||
gam <UserTypeEntity> info chatspace <ChatSpace>
|
gam <UserTypeEntity> info chatspace <ChatSpace>
|
||||||
|
[fields <ChatSpaceFieldNameList>]
|
||||||
[formatjson]
|
[formatjson]
|
||||||
```
|
```
|
||||||
By default, Gam displays the information as an indented list of keys and values.
|
By default, Gam displays the information as an indented list of keys and values.
|
||||||
@@ -163,6 +278,7 @@ By default, Gam displays the information as an indented list of keys and values.
|
|||||||
### Display information about a direct message chat space between two users
|
### Display information about a direct message chat space between two users
|
||||||
```
|
```
|
||||||
gam <UserTypeEntity> info chatspacedm <UserItem>
|
gam <UserTypeEntity> info chatspacedm <UserItem>
|
||||||
|
[fields <ChatSpaceFieldNameList>]
|
||||||
[formatjson]
|
[formatjson]
|
||||||
```
|
```
|
||||||
By default, Gam displays the information as an indented list of keys and values.
|
By default, Gam displays the information as an indented list of keys and values.
|
||||||
@@ -172,16 +288,24 @@ By default, Gam displays the information as an indented list of keys and values.
|
|||||||
```
|
```
|
||||||
gam <UserTypeEntity> show chatspaces
|
gam <UserTypeEntity> show chatspaces
|
||||||
[types <ChatSpaceTypeList>]
|
[types <ChatSpaceTypeList>]
|
||||||
|
[fields <ChatSpaceFieldNameList>]
|
||||||
[formatjson]
|
[formatjson]
|
||||||
```
|
```
|
||||||
|
By default, chat spaces of all types are displayed.
|
||||||
|
* `types <ChatSpaceTypeList>` - Display specific types of spaces.
|
||||||
|
|
||||||
By default, Gam displays the information as an indented list of keys and values.
|
By default, Gam displays the information as an indented list of keys and values.
|
||||||
* `formatjson` - Display the fields in JSON format.
|
* `formatjson` - Display the fields in JSON format.
|
||||||
|
|
||||||
```
|
```
|
||||||
gam <UserTypeEntity> print chatspaces [todrive <ToDriveAttribute>*]
|
gam <UserTypeEntity> print chatspaces [todrive <ToDriveAttribute>*]
|
||||||
[types <ChatSpaceTypeList>]
|
[types <ChatSpaceTypeList>]
|
||||||
|
[fields <ChatSpaceFieldNameList>]
|
||||||
[formatjson [quotechar <Character>]]
|
[formatjson [quotechar <Character>]]
|
||||||
```
|
```
|
||||||
|
By default, chat spaces of all types are displayed.
|
||||||
|
* `types <ChatSpaceTypeList>` - Display specific types of spaces.
|
||||||
|
|
||||||
By default, Gam displays the information as columns of fields; the following option causes the output to be in JSON format,
|
By default, Gam displays the information as columns of fields; the following option causes the output to be in JSON format,
|
||||||
* `formatjson` - Display the fields in JSON format.
|
* `formatjson` - Display the fields in JSON format.
|
||||||
|
|
||||||
@@ -191,7 +315,7 @@ When using the `formatjson` option, double quotes are used extensively in the da
|
|||||||
The `quotechar <Character>` option allows you to choose an alternate quote character, single quote for instance, that makes for readable/processable output.
|
The `quotechar <Character>` option allows you to choose an alternate quote character, single quote for instance, that makes for readable/processable output.
|
||||||
`quotechar` defaults to `gam.cfg/csv_output_quote_char`. When uploading CSV files to Google, double quote `"` should be used.
|
`quotechar` defaults to `gam.cfg/csv_output_quote_char`. When uploading CSV files to Google, double quote `"` should be used.
|
||||||
|
|
||||||
### Display information about all chat spaces
|
### Display information about all user's chat spaces
|
||||||
```
|
```
|
||||||
# Local file
|
# Local file
|
||||||
gam config auto_batch_min 1 redirect csv ./AllChatSpaces.csv multiprocess redirect stdout - multiprocess redirect stderr stdout all users print chatspaces
|
gam config auto_batch_min 1 redirect csv ./AllChatSpaces.csv multiprocess redirect stdout - multiprocess redirect stderr stdout all users print chatspaces
|
||||||
@@ -212,8 +336,54 @@ When using the `formatjson` option, double quotes are used extensively in the da
|
|||||||
The `quotechar <Character>` option allows you to choose an alternate quote character, single quote for instance, that makes for readable/processable output.
|
The `quotechar <Character>` option allows you to choose an alternate quote character, single quote for instance, that makes for readable/processable output.
|
||||||
`quotechar` defaults to `gam.cfg/csv_output_quote_char`. When uploading CSV files to Google, double quote `"` should be used.
|
`quotechar` defaults to `gam.cfg/csv_output_quote_char`. When uploading CSV files to Google, double quote `"` should be used.
|
||||||
|
|
||||||
|
### Display information about a specific chat space, asadmin
|
||||||
|
```
|
||||||
|
gam <UserItem> info chatspace asadmin <ChatSpace>
|
||||||
|
[fields <ChatSpaceFieldNameList>]
|
||||||
|
[formatjson]
|
||||||
|
```
|
||||||
|
By default, Gam displays the information as an indented list of keys and values.
|
||||||
|
* `formatjson` - Display the fields in JSON format.
|
||||||
|
|
||||||
|
### Display information about all chat spaces, asadmin
|
||||||
|
For query and orderby information, see: https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces/search
|
||||||
|
```
|
||||||
|
gam <UserItem> show chatspaces asadmin
|
||||||
|
[query <String>] [querytime<String> <Time>]
|
||||||
|
[orderby <ChatSpaceAdminOrderByFieldName> [ascending|descending]]
|
||||||
|
[fields <ChatSpaceFieldNameList>]
|
||||||
|
[formatjson]
|
||||||
|
```
|
||||||
|
By default, all chat spaces of type SPACE are displayed.
|
||||||
|
* `query <String> [querytime<String> <Time>]` - Display selected chat spaces
|
||||||
|
* See: https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces/search
|
||||||
|
|
||||||
|
By default, Gam displays the information as an indented list of keys and values.
|
||||||
|
* `formatjson` - Display the fields in JSON format.
|
||||||
|
|
||||||
|
```
|
||||||
|
gam <UserItem> print chatspaces asadmin [todrive <ToDriveAttribute>*]
|
||||||
|
[query <String>] [querytime<String> <Time>]
|
||||||
|
[orderby <ChatSpaceAdminOrderByFieldName> [ascending|descending]]
|
||||||
|
[fields <ChatSpaceFieldNameList>]
|
||||||
|
[formatjson [quotechar <Character>]]
|
||||||
|
```
|
||||||
|
By default, all chat spaces of type SPACE are displayed.
|
||||||
|
* `query <String> [querytime<String> <Time>]` - Display selected chat spaces
|
||||||
|
* See: https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces/search
|
||||||
|
|
||||||
|
By default, Gam displays the information as columns of fields; the following option causes the output to be in JSON format,
|
||||||
|
* `formatjson` - Display the fields in JSON format.
|
||||||
|
|
||||||
|
By default, when writing CSV files, Gam uses a quote character of double quote `"`. The quote character is used to enclose columns that contain
|
||||||
|
the quote character itself, the column delimiter (comma by default) and new-line characters. Any quote characters within the column are doubled.
|
||||||
|
When using the `formatjson` option, double quotes are used extensively in the data resulting in hard to read/process output.
|
||||||
|
The `quotechar <Character>` option allows you to choose an alternate quote character, single quote for instance, that makes for readable/processable output.
|
||||||
|
`quotechar` defaults to `gam.cfg/csv_output_quote_char`. When uploading CSV files to Google, double quote `"` should be used.
|
||||||
|
|
||||||
|
|
||||||
## Manage Chat Members
|
## Manage Chat Members
|
||||||
### Add members to a chat space
|
### Add members to a user's chat space
|
||||||
```
|
```
|
||||||
gam <UserTypeEntity> create chatmember <ChatSpace>
|
gam <UserTypeEntity> create chatmember <ChatSpace>
|
||||||
[type human|bot] [role member|manager]
|
[type human|bot] [role member|manager]
|
||||||
@@ -225,7 +395,7 @@ By default, Gam displays the information about the chatmember as an indented lis
|
|||||||
* `formatjson` - Display the fields in JSON format.
|
* `formatjson` - Display the fields in JSON format.
|
||||||
* `returnidonly` - Display the chatmember name only
|
* `returnidonly` - Display the chatmember name only
|
||||||
|
|
||||||
### Delete members from a chat space
|
### Delete members from a user's chat space
|
||||||
Delete members by specifying a chat space and user/group email addresses.
|
Delete members by specifying a chat space and user/group email addresses.
|
||||||
```
|
```
|
||||||
gam <UserTypeEntity> delete chatmember <ChatSpace>
|
gam <UserTypeEntity> delete chatmember <ChatSpace>
|
||||||
@@ -233,12 +403,37 @@ gam <UserTypeEntity> delete chatmember <ChatSpace>
|
|||||||
(group <GroupItem>)|(groups <GroupEntity>))+
|
(group <GroupItem>)|(groups <GroupEntity>))+
|
||||||
```
|
```
|
||||||
|
|
||||||
Delete members by specifying chatmember names.
|
Delete members from a user's chat space by specifying chatmember names.
|
||||||
```
|
```
|
||||||
gam <UserTypeEntity> remove chatmember members <ChatMemberList>
|
gam <UserTypeEntity> remove chatmember members <ChatMemberList>
|
||||||
```
|
```
|
||||||
|
|
||||||
### Update members role
|
### Add members to a chat space, asadmin
|
||||||
|
```
|
||||||
|
gam <UserItem> create chatmember asadmin <ChatSpace>
|
||||||
|
[type human|bot] [role member|manager]
|
||||||
|
(user <UserItem>)* (members <UserTypeEntity>)*
|
||||||
|
(group <GroupItem>)* (groups <GroupEntity>)*
|
||||||
|
[formatjson|returnidonly]
|
||||||
|
```
|
||||||
|
By default, Gam displays the information about the chatmember as an indented list of keys and values.
|
||||||
|
* `formatjson` - Display the fields in JSON format.
|
||||||
|
* `returnidonly` - Display the chatmember name only
|
||||||
|
|
||||||
|
### Delete members from a chat space, asadmin
|
||||||
|
Delete members by specifying a chat space and user/group email addresses.
|
||||||
|
```
|
||||||
|
gam <UserItem> delete chatmember asadmin <ChatSpace>
|
||||||
|
((user <UserItem>)|(members <UserTypeEntity>)|
|
||||||
|
(group <GroupItem>)|(groups <GroupEntity>))+
|
||||||
|
```
|
||||||
|
|
||||||
|
Delete members from a chat space by specifying chatmember names, asadmin
|
||||||
|
```
|
||||||
|
gam <UserItem> remove chatmember members asadmin <ChatMemberList>
|
||||||
|
```
|
||||||
|
|
||||||
|
### Update a members role in a user's chat space
|
||||||
Update members by specifying a chat space, user/group email addresses and role.
|
Update members by specifying a chat space, user/group email addresses and role.
|
||||||
```
|
```
|
||||||
gam <UserTypeEntity> update chatmember <ChatSpace>
|
gam <UserTypeEntity> update chatmember <ChatSpace>
|
||||||
@@ -252,31 +447,98 @@ gam <UserTypeEntity> modify chatmember
|
|||||||
members <ChatMemberList>
|
members <ChatMemberList>
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### Update a members role in a chat space, asadmin
|
||||||
|
Update members by specifying a chat space, user/group email addresses and role.
|
||||||
|
```
|
||||||
|
gam <UserItem> update chatmember asadmin <ChatSpace>
|
||||||
|
role member|manager
|
||||||
|
((user <UserItem>)|(members <UserTypeEntity>))+
|
||||||
|
```
|
||||||
|
Update members by specifying chatmember names and role.
|
||||||
|
```
|
||||||
|
gam <UserItem> modify chatmember asadmin
|
||||||
|
role member|manager
|
||||||
|
members <ChatMemberList>
|
||||||
|
```
|
||||||
|
|
||||||
## Display Chat Members
|
## Display Chat Members
|
||||||
### Display information about a specific chat members
|
### Display information about a user's specific chat members
|
||||||
```
|
```
|
||||||
gam <UserTypeEntity> info chatmember members <ChatMemberList>
|
gam <UserTypeEntity> info chatmember members <ChatMemberList>
|
||||||
|
[fields <ChatMemberFieldNameList>]
|
||||||
[formatjson]
|
[formatjson]
|
||||||
```
|
```
|
||||||
By default, Gam displays the information as an indented list of keys and values.
|
By default, Gam displays the information as an indented list of keys and values.
|
||||||
* `formatjson` - Display the fields in JSON format.
|
* `formatjson` - Display the fields in JSON format.
|
||||||
|
|
||||||
### Display information about all chat members in a chat space
|
### Display information about members in a user's chat spaces
|
||||||
```
|
```
|
||||||
gam <UserTypeEntity> show chatmembers <ChatSpace>
|
gam <UserTypeEntity> show chatmembers
|
||||||
|
<ChatSpace>* [types <ChatSpaceTypeList>]
|
||||||
[showinvited [<Boolean>]] [showgroups [<Boolean>]] [filter <String>]
|
[showinvited [<Boolean>]] [showgroups [<Boolean>]] [filter <String>]
|
||||||
|
[fields <ChatMemberFieldNameList>]
|
||||||
[formatjson]
|
[formatjson]
|
||||||
```
|
```
|
||||||
|
|
||||||
|
By default, members for all of a user's chat spaces of all types are displayed.
|
||||||
|
* `<ChatSpace>` - Display members for a specific chat space
|
||||||
|
* `types <ChatSpaceTypeList>` - Display members for specific types of spaces.
|
||||||
|
|
||||||
|
By default, all JOINED user members in a chat space are displayed.
|
||||||
|
* `showinvited` - Display `INVITED` members.
|
||||||
|
* `showgroups` - Display group members,
|
||||||
|
* `filter <String>` - Filter memberships by a member's `role `and `member.type`.
|
||||||
|
* To filter by role, set role to ROLE_MEMBER or ROLE_MANAGER.
|
||||||
|
* To filter by type, set member.type to HUMAN or BOT.
|
||||||
|
* To filter by both role and type, use the AND operator.
|
||||||
|
* To filter by either role or type, use the OR operator.
|
||||||
|
|
||||||
|
For example, the following filters are valid:
|
||||||
|
```
|
||||||
|
role = "ROLE_MANAGER" OR role = "ROLE_MEMBER"
|
||||||
|
member.type = "HUMAN" AND role = "ROLE_MANAGER"
|
||||||
|
```
|
||||||
|
The following filters are invalid:
|
||||||
|
```
|
||||||
|
member.type = "HUMAN" AND member.type = "BOT"
|
||||||
|
role = "ROLE_MANAGER" AND role = "ROLE_MEMBER"
|
||||||
|
```
|
||||||
|
|
||||||
By default, Gam displays the information as an indented list of keys and values.
|
By default, Gam displays the information as an indented list of keys and values.
|
||||||
* `formatjson` - Display the fields in JSON format.
|
* `formatjson` - Display the fields in JSON format.
|
||||||
|
|
||||||
```
|
```
|
||||||
gam <UserTypeEntity> print chatmembers [todrive <ToDriveAttribute>*] <ChatSpace>
|
gam <UserTypeEntity> print chatmembers [todrive <ToDriveAttribute>*]
|
||||||
|
<ChatSpace>* [types <ChatSpaceTypeList>]
|
||||||
[showinvited [<Boolean>]] [showgroups [<Boolean>]] [filter <String>]
|
[showinvited [<Boolean>]] [showgroups [<Boolean>]] [filter <String>]
|
||||||
|
[fields <ChatMemberFieldNameList>]
|
||||||
[formatjson [quotechar <Character>]]
|
[formatjson [quotechar <Character>]]
|
||||||
```
|
```
|
||||||
|
|
||||||
|
By default, members for all of a user's chat spaces of all types are displayed.
|
||||||
|
* `<ChatSpace>` - Display members for a specific chat space
|
||||||
|
* `types <ChatSpaceTypeList>` - Display members for specific types of spaces.
|
||||||
|
|
||||||
|
By default, all JOINED user members in a chat space are displayed.
|
||||||
|
* `showinvited` - Display `INVITED` members.
|
||||||
|
* `showgroups` - Display group members,
|
||||||
|
* `filter <String>` - Filter memberships by a member's `role `and `member.type`.
|
||||||
|
* To filter by role, set role to ROLE_MEMBER or ROLE_MANAGER.
|
||||||
|
* To filter by type, set member.type to HUMAN or BOT.
|
||||||
|
* To filter by both role and type, use the AND operator.
|
||||||
|
* To filter by either role or type, use the OR operator.
|
||||||
|
|
||||||
|
For example, the following filters are valid:
|
||||||
|
```
|
||||||
|
role = "ROLE_MANAGER" OR role = "ROLE_MEMBER"
|
||||||
|
member.type = "HUMAN" AND role = "ROLE_MANAGER"
|
||||||
|
```
|
||||||
|
The following filters are invalid:
|
||||||
|
```
|
||||||
|
member.type = "HUMAN" AND member.type = "BOT"
|
||||||
|
role = "ROLE_MANAGER" AND role = "ROLE_MEMBER"
|
||||||
|
```
|
||||||
|
|
||||||
By default, Gam displays the information as columns of fields; the following option causes the output to be in JSON format,
|
By default, Gam displays the information as columns of fields; the following option causes the output to be in JSON format,
|
||||||
* `formatjson` - Display the fields in JSON format.
|
* `formatjson` - Display the fields in JSON format.
|
||||||
|
|
||||||
@@ -286,25 +548,95 @@ When using the `formatjson` option, double quotes are used extensively in the da
|
|||||||
The `quotechar <Character>` option allows you to choose an alternate quote character, single quote for instance, that makes for readable/processable output.
|
The `quotechar <Character>` option allows you to choose an alternate quote character, single quote for instance, that makes for readable/processable output.
|
||||||
`quotechar` defaults to `gam.cfg/csv_output_quote_char`. When uploading CSV files to Google, double quote `"` should be used.
|
`quotechar` defaults to `gam.cfg/csv_output_quote_char`. When uploading CSV files to Google, double quote `"` should be used.
|
||||||
|
|
||||||
By default, only `JOINED` members are displayed; use `showinvited` to also display `INVITED` members.
|
### Display information about specific chat members, asadmin
|
||||||
|
```
|
||||||
|
gam <UserItem> info chatmember asadmin members <ChatMemberList>
|
||||||
|
[fields <ChatMemberFieldNameList>]
|
||||||
|
[formatjson]
|
||||||
|
```
|
||||||
|
By default, Gam displays the information as an indented list of keys and values.
|
||||||
|
* `formatjson` - Display the fields in JSON format.
|
||||||
|
|
||||||
Use `filter <String>` to filter memberships by a member's `role `and `member.type`.
|
### Display information about members all chat spaces, asadmin
|
||||||
|
For query and orderby information, see: https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces/search
|
||||||
|
```
|
||||||
|
gam <UserItem> show chatmembers asadmin
|
||||||
|
<ChatSpace>* [query <String>] [querytime<String> <Time>]
|
||||||
|
[showinvited [<Boolean>]] [showgroups [<Boolean>]] [filter <String>]
|
||||||
|
[fields <ChatMemberFieldNameList>]
|
||||||
|
[formatjson]
|
||||||
|
```
|
||||||
|
|
||||||
|
By default, members for all chat spaces of type SPACE are displayed.
|
||||||
|
* `<ChatSpace>` - Display members for a specific chat space
|
||||||
|
* `query <String> [querytime<String> <Time>]` - Display members for selected chat spaces
|
||||||
|
* See: https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces/search
|
||||||
|
|
||||||
|
By default, all JOINED user members in a chat space are displayed.
|
||||||
|
* `showinvited` - Display `INVITED` members.
|
||||||
|
* `showgroups` - Display group members,
|
||||||
|
* `filter <String>` - Filter memberships by a member's `role `and `member.type`.
|
||||||
* To filter by role, set role to ROLE_MEMBER or ROLE_MANAGER.
|
* To filter by role, set role to ROLE_MEMBER or ROLE_MANAGER.
|
||||||
* To filter by type, set member.type to HUMAN or BOT.
|
* To filter by type, set member.type to HUMAN or BOT.
|
||||||
* To filter by both role and type, use the AND operator.
|
* To filter by both role and type, use the AND operator.
|
||||||
* To filter by either role or type, use the OR operator.
|
* To filter by either role or type, use the OR operator.
|
||||||
|
|
||||||
For example, the following queries are valid:
|
For example, the following filters are valid:
|
||||||
```
|
```
|
||||||
role = "ROLE_MANAGER" OR role = "ROLE_MEMBER"
|
role = "ROLE_MANAGER" OR role = "ROLE_MEMBER"
|
||||||
member.type = "HUMAN" AND role = "ROLE_MANAGER"
|
member.type = "HUMAN" AND role = "ROLE_MANAGER"
|
||||||
```
|
```
|
||||||
The following queries are invalid:
|
The following filters are invalid:
|
||||||
```
|
```
|
||||||
member.type = "HUMAN" AND member.type = "BOT"
|
member.type = "HUMAN" AND member.type = "BOT"
|
||||||
role = "ROLE_MANAGER" AND role = "ROLE_MEMBER"
|
role = "ROLE_MANAGER" AND role = "ROLE_MEMBER"
|
||||||
```
|
```
|
||||||
|
|
||||||
|
By default, Gam displays the information as an indented list of keys and values.
|
||||||
|
* `formatjson` - Display the fields in JSON format.
|
||||||
|
|
||||||
|
```
|
||||||
|
gam <UserItem> print chatmembers asadmin [todrive <ToDriveAttribute>*]
|
||||||
|
<ChatSpace>* [query <String>] [querytime<String> <Time>]
|
||||||
|
[showinvited [<Boolean>]] [showgroups [<Boolean>]] [filter <String>]
|
||||||
|
[fields <ChatMemberFieldNameList>]
|
||||||
|
[formatjson [quotechar <Character>]]
|
||||||
|
```
|
||||||
|
|
||||||
|
By default, members for all chat spaces of type SPACE are displayed.
|
||||||
|
* `<ChatSpace>` - Display members for a specific chat space
|
||||||
|
* `query <String> [querytime<String> <Time>]` - Display members for selected chat spaces
|
||||||
|
* See: https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces/search
|
||||||
|
|
||||||
|
By default, all JOINED user members in a chat space are displayed.
|
||||||
|
* `showinvited` - Display `INVITED` members.
|
||||||
|
* `showgroups` - Display group members,
|
||||||
|
* `filter <String>` - Filter memberships by a member's `role `and `member.type`.
|
||||||
|
* To filter by role, set role to ROLE_MEMBER or ROLE_MANAGER.
|
||||||
|
* To filter by type, set member.type to HUMAN or BOT.
|
||||||
|
* To filter by both role and type, use the AND operator.
|
||||||
|
* To filter by either role or type, use the OR operator.
|
||||||
|
|
||||||
|
For example, the following filters are valid:
|
||||||
|
```
|
||||||
|
role = "ROLE_MANAGER" OR role = "ROLE_MEMBER"
|
||||||
|
member.type = "HUMAN" AND role = "ROLE_MANAGER"
|
||||||
|
```
|
||||||
|
The following filters are invalid:
|
||||||
|
```
|
||||||
|
member.type = "HUMAN" AND member.type = "BOT"
|
||||||
|
role = "ROLE_MANAGER" AND role = "ROLE_MEMBER"
|
||||||
|
```
|
||||||
|
|
||||||
|
By default, Gam displays the information as columns of fields; the following option causes the output to be in JSON format,
|
||||||
|
* `formatjson` - Display the fields in JSON format.
|
||||||
|
|
||||||
|
By default, when writing CSV files, Gam uses a quote character of double quote `"`. The quote character is used to enclose columns that contain
|
||||||
|
the quote character itself, the column delimiter (comma by default) and new-line characters. Any quote characters within the column are doubled.
|
||||||
|
When using the `formatjson` option, double quotes are used extensively in the data resulting in hard to read/process output.
|
||||||
|
The `quotechar <Character>` option allows you to choose an alternate quote character, single quote for instance, that makes for readable/processable output.
|
||||||
|
`quotechar` defaults to `gam.cfg/csv_output_quote_char`. When uploading CSV files to Google, double quote `"` should be used.
|
||||||
|
|
||||||
### Delete a user from their `space` and `groupchat` spaces
|
### Delete a user from their `space` and `groupchat` spaces
|
||||||
There is no way to delete a user from a directmessage space.
|
There is no way to delete a user from a directmessage space.
|
||||||
```
|
```
|
||||||
@@ -397,6 +729,7 @@ Display a specific Chat message.
|
|||||||
|
|
||||||
```
|
```
|
||||||
gam <UserTypeEntity> info chatmessage name <ChatMessage>
|
gam <UserTypeEntity> info chatmessage name <ChatMessage>
|
||||||
|
[fields <ChatMessageFieldNameList>]
|
||||||
[formatjson]
|
[formatjson]
|
||||||
```
|
```
|
||||||
By default, Gam displays the information as an indented list of keys and values.
|
By default, Gam displays the information as an indented list of keys and values.
|
||||||
@@ -409,16 +742,20 @@ gam user user@domain.com info chatmessage name spaces/AAAADi-pvqc/messages/PKJrx
|
|||||||
|
|
||||||
### Display information about all chat messages in a chat space
|
### Display information about all chat messages in a chat space
|
||||||
```
|
```
|
||||||
gam <UserTypeEntity> show chatmessages <ChatSpace>
|
gam <UserTypeEntity> show chatmessages
|
||||||
|
<ChatSpace>+
|
||||||
[showdeleted [<Boolean>]] [filter <String>]
|
[showdeleted [<Boolean>]] [filter <String>]
|
||||||
|
[fields <ChatMessageFieldNameList>]
|
||||||
[formatjson]
|
[formatjson]
|
||||||
```
|
```
|
||||||
By default, Gam displays the information as an indented list of keys and values.
|
By default, Gam displays the information as an indented list of keys and values.
|
||||||
* `formatjson` - Display the fields in JSON format.
|
* `formatjson` - Display the fields in JSON format.
|
||||||
|
|
||||||
```
|
```
|
||||||
gam <UserTypeEntity> print chatmessages [todrive <ToDriveAttribute>*] <ChatSpace>
|
gam <UserTypeEntity> print chatmessages [todrive <ToDriveAttribute>*]
|
||||||
|
<ChatSpace>+
|
||||||
[showdeleted [<Boolean>]] [filter <String>]
|
[showdeleted [<Boolean>]] [filter <String>]
|
||||||
|
[fields <ChatMessageFieldNameList>]
|
||||||
[formatjson [quotechar <Character>]]
|
[formatjson [quotechar <Character>]]
|
||||||
```
|
```
|
||||||
By default, Gam displays the information as columns of fields; the following option causes the output to be in JSON format,
|
By default, Gam displays the information as columns of fields; the following option causes the output to be in JSON format,
|
||||||
@@ -482,7 +819,8 @@ gam user user@domain.com info chatevent name spaces/AAAAsUhqjkg/spaceEvents/MTcx
|
|||||||
|
|
||||||
### Display information about all chat events in a chat space
|
### Display information about all chat events in a chat space
|
||||||
```
|
```
|
||||||
gam <UserTypeEntity> show chatevents <ChatSpace>
|
gam <UserTypeEntity> show chatevents
|
||||||
|
<ChatSpace>+
|
||||||
filter <String>
|
filter <String>
|
||||||
[formatjson]
|
[formatjson]
|
||||||
```
|
```
|
||||||
@@ -490,7 +828,8 @@ By default, Gam displays the information as an indented list of keys and values.
|
|||||||
* `formatjson` - Display the fields in JSON format.
|
* `formatjson` - Display the fields in JSON format.
|
||||||
|
|
||||||
```
|
```
|
||||||
gam <UserTypeEntity> print chatevents [todrive <ToDriveAttribute>*] <ChatSpace>
|
gam <UserTypeEntity> print chatevents [todrive <ToDriveAttribute>*]
|
||||||
|
<ChatSpace>+
|
||||||
filter <String>
|
filter <String>
|
||||||
[formatjson [quotechar <Character>]]
|
[formatjson [quotechar <Character>]]
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -3,10 +3,10 @@
|
|||||||
Print the current version of Gam with details
|
Print the current version of Gam with details
|
||||||
```
|
```
|
||||||
gam version
|
gam version
|
||||||
GAMADV-XTD3 6.76.15 - https://github.com/taers232c/GAMADV-XTD3 - pythonsource
|
GAMADV-XTD3 6.77.00 - https://github.com/taers232c/GAMADV-XTD3 - pythonsource
|
||||||
Ross Scroggs <ross.scroggs@gmail.com>
|
Ross Scroggs <ross.scroggs@gmail.com>
|
||||||
Python 3.12.3 64-bit final
|
Python 3.12.4 64-bit final
|
||||||
MacOS Sonoma 14.4.1 x86_64
|
MacOS Sonoma 14.5 x86_64
|
||||||
Path: /Users/Admin/bin/gamadv-xtd3
|
Path: /Users/Admin/bin/gamadv-xtd3
|
||||||
Config File: /Users/admin/GAMConfig/gam.cfg, Section: DEFAULT, customer_id: my_customer, domain: domain.com
|
Config File: /Users/admin/GAMConfig/gam.cfg, Section: DEFAULT, customer_id: my_customer, domain: domain.com
|
||||||
Time: 2023-06-02T21:10:00-07:00
|
Time: 2023-06-02T21:10:00-07:00
|
||||||
@@ -15,10 +15,10 @@ 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
|
||||||
GAMADV-XTD3 6.76.15 - https://github.com/taers232c/GAMADV-XTD3 - pythonsource
|
GAMADV-XTD3 6.77.00 - https://github.com/taers232c/GAMADV-XTD3 - pythonsource
|
||||||
Ross Scroggs <ross.scroggs@gmail.com>
|
Ross Scroggs <ross.scroggs@gmail.com>
|
||||||
Python 3.12.3 64-bit final
|
Python 3.12.4 64-bit final
|
||||||
MacOS Sonoma 14.4.1 x86_64
|
MacOS Sonoma 14.5 x86_64
|
||||||
Path: /Users/Admin/bin/gamadv-xtd3
|
Path: /Users/Admin/bin/gamadv-xtd3
|
||||||
Config File: /Users/admin/GAMConfig/gam.cfg, Section: DEFAULT, customer_id: my_customer, domain: domain.com
|
Config File: /Users/admin/GAMConfig/gam.cfg, Section: DEFAULT, customer_id: my_customer, domain: domain.com
|
||||||
Your system time differs from www.googleapis.com by less than 1 second
|
Your system time differs from www.googleapis.com by less than 1 second
|
||||||
@@ -27,17 +27,17 @@ 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
|
||||||
GAMADV-XTD3 6.76.15 - https://github.com/taers232c/GAMADV-XTD3 - pythonsource
|
GAMADV-XTD3 6.77.00 - https://github.com/taers232c/GAMADV-XTD3 - pythonsource
|
||||||
Ross Scroggs <ross.scroggs@gmail.com>
|
Ross Scroggs <ross.scroggs@gmail.com>
|
||||||
Python 3.12.3 64-bit final
|
Python 3.12.4 64-bit final
|
||||||
MacOS Sonoma 14.4.1 x86_64
|
MacOS Sonoma 14.5 x86_64
|
||||||
Path: /Users/Admin/bin/gamadv-xtd3
|
Path: /Users/Admin/bin/gamadv-xtd3
|
||||||
Config File: /Users/admin/GAMConfig/gam.cfg, Section: DEFAULT, customer_id: my_customer, domain: domain.com
|
Config File: /Users/admin/GAMConfig/gam.cfg, Section: DEFAULT, customer_id: my_customer, domain: domain.com
|
||||||
Time: 2023-06-02T21:10:00-07:00
|
Time: 2023-06-02T21:10:00-07:00
|
||||||
Your system time differs from admin.googleapis.com by less than 1 second
|
Your system time differs from admin.googleapis.com by less than 1 second
|
||||||
OpenSSL 3.1.1 30 May 2023
|
OpenSSL 3.1.1 30 May 2023
|
||||||
cryptography 41.0.1
|
cryptography 41.0.1
|
||||||
filelock 3.12.3
|
filelock 3.12.4
|
||||||
google-api-python-client 2.88.0
|
google-api-python-client 2.88.0
|
||||||
google-auth-httplib2 0.1.0
|
google-auth-httplib2 0.1.0
|
||||||
google-auth-oauthlib 1.0.0
|
google-auth-oauthlib 1.0.0
|
||||||
@@ -64,7 +64,7 @@ MacOS High Sierra 10.13.6 x86_64
|
|||||||
Path: /Users/Admin/bin/gamadv-xtd3
|
Path: /Users/Admin/bin/gamadv-xtd3
|
||||||
Version Check:
|
Version Check:
|
||||||
Current: 5.35.08
|
Current: 5.35.08
|
||||||
Latest: 6.76.15
|
Latest: 6.77.00
|
||||||
echo $?
|
echo $?
|
||||||
1
|
1
|
||||||
```
|
```
|
||||||
@@ -72,7 +72,7 @@ echo $?
|
|||||||
Print the current version number without details
|
Print the current version number without details
|
||||||
```
|
```
|
||||||
gam version simple
|
gam version simple
|
||||||
6.76.15
|
6.77.00
|
||||||
```
|
```
|
||||||
In Linux/MacOS you can do:
|
In Linux/MacOS you can do:
|
||||||
```
|
```
|
||||||
@@ -82,10 +82,10 @@ 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 6.76.15 - https://github.com/taers232c/GAMADV-XTD3
|
GAM 6.77.00 - https://github.com/taers232c/GAMADV-XTD3
|
||||||
Ross Scroggs <ross.scroggs@gmail.com>
|
Ross Scroggs <ross.scroggs@gmail.com>
|
||||||
Python 3.12.3 64-bit final
|
Python 3.12.4 64-bit final
|
||||||
MacOS Sonoma 14.4.1 x86_64
|
MacOS Sonoma 14.5 x86_64
|
||||||
Path: /Users/Admin/bin/gamadv-xtd3
|
Path: /Users/Admin/bin/gamadv-xtd3
|
||||||
Config File: /Users/admin/GAMConfig/gam.cfg, Section: DEFAULT, customer_id: my_customer, domain: domain.com
|
Config File: /Users/admin/GAMConfig/gam.cfg, Section: DEFAULT, customer_id: my_customer, domain: domain.com
|
||||||
Time: 2023-06-02T21:10:00-07:00
|
Time: 2023-06-02T21:10:00-07:00
|
||||||
|
|||||||
@@ -1993,7 +1993,7 @@ gam revoke browsertoken <BrowserTokenPermanentID>
|
|||||||
state|
|
state|
|
||||||
token|
|
token|
|
||||||
tokenpermanentid
|
tokenpermanentid
|
||||||
<BrowserTokenFieldNameList> ::= "<BrowseTokenFieldName>(,<BrowserTokenFieldName>)*"
|
<BrowserTokenFieldNameList> ::= "<BrowserTokenFieldName>(,<BrowserTokenFieldName>)*"
|
||||||
|
|
||||||
gam show browsertokens
|
gam show browsertokens
|
||||||
([ou|org|orgunit|browserou <OrgUnitPath>] [(query <QueryBrowserToken>)|(queries <QueryBrowserTokenList>)))
|
([ou|org|orgunit|browserou <OrgUnitPath>] [(query <QueryBrowserToken>)|(queries <QueryBrowserTokenList>)))
|
||||||
@@ -2024,20 +2024,55 @@ gam print browsertokens [todrive <ToDriveAttribute>*]
|
|||||||
|
|
||||||
gam setup chat
|
gam setup chat
|
||||||
|
|
||||||
|
<ChatSpaceFieldName> ::=
|
||||||
|
accesssettings|
|
||||||
|
admininstalled|
|
||||||
|
createtime|
|
||||||
|
displayname|
|
||||||
|
externaluserallowed|
|
||||||
|
importmode|
|
||||||
|
lastactivetime|
|
||||||
|
membershipcount|
|
||||||
|
name|
|
||||||
|
singleuserbotdm|
|
||||||
|
spacedetails|
|
||||||
|
spacehistorystate|
|
||||||
|
spacethreadingstate|threaded|
|
||||||
|
spacetype|type|
|
||||||
|
spaceuri
|
||||||
|
<ChatSpaceFieldNameList> ::= "<ChatSpaceFieldName>(,<ChatSpaceFieldName>)*"
|
||||||
|
|
||||||
gam info chatspace <ChatSpace>
|
gam info chatspace <ChatSpace>
|
||||||
|
[fields <ChatSpaceFieldNameList>]
|
||||||
[formatjson]
|
[formatjson]
|
||||||
gam show chatspaces
|
gam show chatspaces
|
||||||
|
[fields <ChatSpaceFieldNameList>]
|
||||||
[formatjson]
|
[formatjson]
|
||||||
gam print chatspaces [todrive <ToDriveAttribute>*]
|
gam print chatspaces [todrive <ToDriveAttribute>*]
|
||||||
|
[fields <ChatSpaceFieldNameList>]
|
||||||
[formatjson [quotechar <Character>]]
|
[formatjson [quotechar <Character>]]
|
||||||
|
|
||||||
|
<ChatMemberFieldName> ::=
|
||||||
|
createtime|
|
||||||
|
deletetime|
|
||||||
|
groupmember|
|
||||||
|
member|
|
||||||
|
name|
|
||||||
|
role|
|
||||||
|
state|
|
||||||
|
<ChatMemberFieldNameList> ::= "<ChatMemberFieldName>(,<ChatMemberFieldName>)*"
|
||||||
|
|
||||||
gam info chatmember member <ChatMember>
|
gam info chatmember member <ChatMember>
|
||||||
|
[fields <ChatMemberFieldNameList>]
|
||||||
[formatjson]
|
[formatjson]
|
||||||
gam show chatmembers <ChatSpace>
|
gam show chatmembers <ChatSpace>
|
||||||
[showinvited [<Boolean>]] [showgroups [<Boolean>]] [filter <String>]
|
[showinvited [<Boolean>]] [showgroups [<Boolean>]] [filter <String>]
|
||||||
|
[fields <ChatMemberFieldNameList>]
|
||||||
[formatjson]
|
[formatjson]
|
||||||
gam print chatmembers [todrive <ToDriveAttribute>*] <ChatSpace>
|
gam print chatmembers [todrive <ToDriveAttribute>*] <ChatSpace>
|
||||||
[showinvited [<Boolean>]] [showgroups [<Boolean>]] [filter <String>]
|
[showinvited [<Boolean>]] [showgroups [<Boolean>]] [filter <String>]
|
||||||
|
[fields <ChatMemberFieldNameList>]
|
||||||
|
(addcsvdata <FieldName> <String>)*
|
||||||
[formatjson [quotechar <Character>]]
|
[formatjson [quotechar <Character>]]
|
||||||
|
|
||||||
gam create chatmessage <ChatSpace>
|
gam create chatmessage <ChatSpace>
|
||||||
@@ -2049,7 +2084,37 @@ gam update chatmessage name <ChatMessage>
|
|||||||
<ChatContent>
|
<ChatContent>
|
||||||
gam delete chatmessage name <ChatMessage>
|
gam delete chatmessage name <ChatMessage>
|
||||||
|
|
||||||
|
<ChatMessageFieldName> ::=
|
||||||
|
accessorywidgets|
|
||||||
|
actionresponse|
|
||||||
|
annotations|
|
||||||
|
argumenttext|
|
||||||
|
attachedgifs|
|
||||||
|
attachment|
|
||||||
|
cards|
|
||||||
|
cardsv2|
|
||||||
|
clientassignedmessageid|
|
||||||
|
createtime|
|
||||||
|
deletetime|
|
||||||
|
deletionmetadata|
|
||||||
|
emojireactionsummaries|
|
||||||
|
fallbacktext|
|
||||||
|
formattedtext|
|
||||||
|
lastupdatetime|
|
||||||
|
matchedurl|
|
||||||
|
name|
|
||||||
|
privatemessageviewer|
|
||||||
|
quotedmessagemetadata|
|
||||||
|
sender|
|
||||||
|
slashcommand|
|
||||||
|
space|
|
||||||
|
text|
|
||||||
|
thread|
|
||||||
|
threadreply
|
||||||
|
<ChatMessageFieldNameList> ::= "<ChatMessageFieldName>(,<ChatMessageFieldName>)*"
|
||||||
|
|
||||||
gam info chatmessage name <ChatMessage>
|
gam info chatmessage name <ChatMessage>
|
||||||
|
[fields <ChatMessageFieldNameList>]
|
||||||
[formatjson]
|
[formatjson]
|
||||||
|
|
||||||
gam info chatevent name <ChatEvent>
|
gam info chatevent name <ChatEvent>
|
||||||
@@ -2869,6 +2934,7 @@ gam create|add course [id|alias <CourseAlias>] <CourseAttribute>*
|
|||||||
[announcementstates <CourseAnnouncementStateList>]
|
[announcementstates <CourseAnnouncementStateList>]
|
||||||
[materialstates <CourseMaterialStateList>]
|
[materialstates <CourseMaterialStateList>]
|
||||||
[workstates <CourseWorkStateList>]
|
[workstates <CourseWorkStateList>]
|
||||||
|
[individualstudentassignments copy|delete|maptoall]
|
||||||
[removeduedate [<Boolean>]]
|
[removeduedate [<Boolean>]]
|
||||||
[mapsharemodestudentcopy edit|none|view]
|
[mapsharemodestudentcopy edit|none|view]
|
||||||
[copymaterialsfiles [<Boolean>]]
|
[copymaterialsfiles [<Boolean>]]
|
||||||
@@ -2881,6 +2947,7 @@ gam update course <CourseID> <CourseAttribute>+
|
|||||||
[announcementstates <CourseAnnouncementStateList>]
|
[announcementstates <CourseAnnouncementStateList>]
|
||||||
[materialstates <CourseMaterialStateList>]
|
[materialstates <CourseMaterialStateList>]
|
||||||
[workstates <CourseWorkStateList>]
|
[workstates <CourseWorkStateList>]
|
||||||
|
[individualstudentassignments copy|delete|maptoall]
|
||||||
[removeduedate [<Boolean>]]
|
[removeduedate [<Boolean>]]
|
||||||
[mapsharemodestudentcopy edit|none|view]
|
[mapsharemodestudentcopy edit|none|view]
|
||||||
[copymaterialsfiles [<Boolean>]]
|
[copymaterialsfiles [<Boolean>]]
|
||||||
@@ -2895,6 +2962,7 @@ gam update courses <CourseEntity> <CourseAttribute>+
|
|||||||
[announcementstates <CourseAnnouncementStateList>]
|
[announcementstates <CourseAnnouncementStateList>]
|
||||||
[materialstates <CourseMaterialStateList>]
|
[materialstates <CourseMaterialStateList>]
|
||||||
[workstates <CourseWorkStateList>]
|
[workstates <CourseWorkStateList>]
|
||||||
|
[individualstudentassignments copy|delete|maptoall]
|
||||||
[removeduedate [<Boolean>]]
|
[removeduedate [<Boolean>]]
|
||||||
[mapsharemodestudentcopy edit|none|view]
|
[mapsharemodestudentcopy edit|none|view]
|
||||||
[copymaterialsfiles [<Boolean>]]
|
[copymaterialsfiles [<Boolean>]]
|
||||||
@@ -5974,50 +6042,148 @@ gam <UserTypeEntity> update chatspace <ChatSpace>
|
|||||||
[description <String>] [guidelines|rules <String>]
|
[description <String>] [guidelines|rules <String>]
|
||||||
[history <Boolean>])
|
[history <Boolean>])
|
||||||
[formatjson]
|
[formatjson]
|
||||||
gam <UserTypeEntity> delete chatspace [adminaccess|asadmin] <ChatSpace>
|
gam <UserTypeEntity> delete chatspace <ChatSpace>
|
||||||
|
|
||||||
|
gam <UserItem> update chatspace asadmin <ChatSpace>
|
||||||
|
[restricted|(audience <String>)]|
|
||||||
|
([displayname <String>]
|
||||||
|
[type space]
|
||||||
|
[description <String>] [guidelines|rules <String>]
|
||||||
|
[history <Boolean>])
|
||||||
|
[formatjson]
|
||||||
|
gam <UserItem> delete chatspace asadmin <ChatSpace>
|
||||||
|
|
||||||
|
<ChatSpaceFieldName> ::=
|
||||||
|
accesssettings|
|
||||||
|
admininstalled|
|
||||||
|
createtime|
|
||||||
|
displayname|
|
||||||
|
externaluserallowed|
|
||||||
|
importmode|
|
||||||
|
lastactivetime|
|
||||||
|
membershipcount|
|
||||||
|
name|
|
||||||
|
singleuserbotdm|
|
||||||
|
spacedetails|
|
||||||
|
spacehistorystate|
|
||||||
|
spacethreadingstate|threaded|
|
||||||
|
spacetype|type|
|
||||||
|
spaceuri
|
||||||
|
<ChatSpaceFieldNameList> ::= "<ChatSpaceFieldName>(,<ChatSpaceFieldName>)*"
|
||||||
|
|
||||||
gam <UserTypeEntity> info chatspace <ChatSpace>
|
gam <UserTypeEntity> info chatspace <ChatSpace>
|
||||||
|
[fields <ChatSpaceFieldNameList>]
|
||||||
[formatjson]
|
[formatjson]
|
||||||
gam <UserTypeEntity> info chatspacedm <UserItem>
|
gam <UserTypeEntity> info chatspacedm <UserItem>
|
||||||
|
[fields <ChatSpaceFieldNameList>]
|
||||||
[formatjson]
|
[formatjson]
|
||||||
gam <UserTypeEntity> show chatspaces
|
gam <UserTypeEntity> show chatspaces
|
||||||
[types <ChatSpaceTypeList>]
|
[types <ChatSpaceTypeList>]
|
||||||
|
[fields <ChatSpaceFieldNameList>]
|
||||||
[formatjson]
|
[formatjson]
|
||||||
gam <UserTypeEntity> print chatspaces [todrive <ToDriveAttribute>*]
|
gam <UserTypeEntity> print chatspaces [todrive <ToDriveAttribute>*]
|
||||||
[types <ChatSpaceTypeList>]
|
[types <ChatSpaceTypeList>]
|
||||||
[formatjson [quotechar <Character>]]
|
[fields <ChatSpaceFieldNameList>]
|
||||||
gam [<UserTypeEntity>] show chatspaces adminaccess|asadmin
|
|
||||||
[query <String>] [querytime<String> <Time>]
|
|
||||||
[orderby <ChatSpaceAdminOrderByFieldName> [ascending|descending]]
|
|
||||||
[formatjson]
|
|
||||||
gam [<UserTypeEntity>] print chatspaces adminaccess|asadmin [todrive <ToDriveAttribute>*]
|
|
||||||
[query <String>] [querytime<String> <Time>]
|
|
||||||
[orderby <ChatSpaceAdminOrderByFieldName> [ascending|descending]]
|
|
||||||
[formatjson [quotechar <Character>]]
|
[formatjson [quotechar <Character>]]
|
||||||
|
|
||||||
gam <UserTypeEntity> create chatmember [adminaccess|asadmin] <ChatSpace>
|
gam <UserItem> info chatspace asadmin <ChatSpace>
|
||||||
|
[fields <ChatSpaceFieldNameList>]
|
||||||
|
[formatjson]
|
||||||
|
gam <UserItem> show chatspaces asadmin
|
||||||
|
[query <String>] [querytime<String> <Time>]
|
||||||
|
[orderby <ChatSpaceAdminOrderByFieldName> [ascending|descending]]
|
||||||
|
[fields <ChatSpaceFieldNameList>]
|
||||||
|
[formatjson]
|
||||||
|
gam <UserItem> print chatspaces asadmin [todrive <ToDriveAttribute>*]
|
||||||
|
[query <String>] [querytime<String> <Time>]
|
||||||
|
[orderby <ChatSpaceAdminOrderByFieldName> [ascending|descending]]
|
||||||
|
[fields <ChatSpaceFieldNameList>]
|
||||||
|
[formatjson [quotechar <Character>]]
|
||||||
|
|
||||||
|
gam <UserTypeEntity> create chatmember <ChatSpace>
|
||||||
[type human|bot] [role member|manager]
|
[type human|bot] [role member|manager]
|
||||||
(user <UserItem>)* (members <UserTypeEntity>)*
|
(user <UserItem>)* (members <UserTypeEntity>)*
|
||||||
(group <GroupItem>)* (groups <GroupEntity>)*
|
(group <GroupItem>)* (groups <GroupEntity>)*
|
||||||
[formatjson|returnidonly]
|
[formatjson|returnidonly]
|
||||||
gam <UserTypeEntity> delete chatmember [adminaccess|asadmin] <ChatSpace>
|
gam <UserTypeEntity> delete chatmember <ChatSpace>
|
||||||
((user <UserItem>)|(members <UserTypeEntity>)|
|
((user <UserItem>)|(members <UserTypeEntity>)|
|
||||||
(group <GroupItem>)|(groups <GroupEntity>))+
|
(group <GroupItem>)|(groups <GroupEntity>))+
|
||||||
gam <UserTypeEntity> remove chatmember [adminaccess|asadmin] members <ChatMemberList>
|
gam <UserTypeEntity> remove chatmember members <ChatMemberList>
|
||||||
gam <UserTypeEntity> update chatmember <ChatSpace>
|
gam <UserTypeEntity> update chatmember <ChatSpace>
|
||||||
role member|manager
|
role member|manager
|
||||||
((user <UserItem>)|(members <UserTypeEntity>))+
|
((user <UserItem>)|(members <UserTypeEntity>))+
|
||||||
gam <UserTypeEntity> modify chatmember
|
gam <UserTypeEntity> modify chatmember
|
||||||
role member|manager
|
role member|manager
|
||||||
members <ChatMemberList>
|
members <ChatMemberList>
|
||||||
|
gam <UserTypeEntity> sync chatmembers <ChatSpace>
|
||||||
|
[role member|manager] [type human|bot]
|
||||||
|
[addonly|removeonly]
|
||||||
|
[preview [actioncsv]]
|
||||||
|
(users <UserTypeEntity>)* (groups <GroupEntity>)*
|
||||||
|
|
||||||
gam <UserTypeEntity> info chatmember members <ChatMemberList>
|
gam <UserItem> create chatmember asadmin <ChatSpace>
|
||||||
|
[type human|bot] [role member|manager]
|
||||||
|
(user <UserItem>)* (members <UserTypeEntity>)*
|
||||||
|
(group <GroupItem>)* (groups <GroupEntity>)*
|
||||||
|
[formatjson|returnidonly]
|
||||||
|
gam <UserItem> remove chatmember asadmin members <ChatMemberList>
|
||||||
|
gam <UserItem> delete chatmember asadmin <ChatSpace>
|
||||||
|
((user <UserItem>)|(members <UserTypeEntity>)|
|
||||||
|
(group <GroupItem>)|(groups <GroupEntity>))+
|
||||||
|
gam <UserItem> update chatmember asadmin <ChatSpace>
|
||||||
|
role member|manager
|
||||||
|
((user <UserItem>)|(members <UserTypeEntity>))+
|
||||||
|
gam <UserItem> modify chatmember asadmin
|
||||||
|
role member|manager
|
||||||
|
members <ChatMemberList>
|
||||||
|
gam <UserItem> sync chatmembers asadmin <ChatSpace>
|
||||||
|
[role member|manager] [type human|bot]
|
||||||
|
[addonly|removeonly]
|
||||||
|
[preview [actioncsv]]
|
||||||
|
(users <UserTypeEntity>)* (groups <GroupEntity>)*
|
||||||
|
|
||||||
|
<ChatMemberFieldName> ::=
|
||||||
|
createtime|
|
||||||
|
deletetime|
|
||||||
|
groupmember|
|
||||||
|
member|
|
||||||
|
name|
|
||||||
|
role|
|
||||||
|
state|
|
||||||
|
<ChatMemberFieldNameList> ::= "<ChatMemberFieldName>(,<ChatMemberFieldName>)*"
|
||||||
|
|
||||||
|
gam <UserTypeEntity> info chatmember
|
||||||
|
members <ChatMemberList>
|
||||||
|
[fields <ChatMemberFieldNameList>]
|
||||||
[formatjson]
|
[formatjson]
|
||||||
gam <UserTypeEntity> show chatmembers [adminaccess|asadmin] <ChatSpace>
|
gam <UserTypeEntity> show chatmembers
|
||||||
|
<ChatSpace>* [types <ChatSpaceTypeList>]
|
||||||
[showinvited [<Boolean>]] [showgroups [<Boolean>]] [filter <String>]
|
[showinvited [<Boolean>]] [showgroups [<Boolean>]] [filter <String>]
|
||||||
|
[fields <ChatMemberFieldNameList>]
|
||||||
[formatjson]
|
[formatjson]
|
||||||
gam <UserTypeEntity> print chatmembers [adminaccess|asadmin] [todrive <ToDriveAttribute>*] <ChatSpace>
|
gam <UserTypeEntity> print chatmembers [todrive <ToDriveAttribute>*]
|
||||||
|
<ChatSpace>* [types <ChatSpaceTypeList>]
|
||||||
[showinvited [<Boolean>]] [showgroups [<Boolean>]] [filter <String>]
|
[showinvited [<Boolean>]] [showgroups [<Boolean>]] [filter <String>]
|
||||||
|
[fields <ChatMemberFieldNameList>]
|
||||||
|
(addcsvdata <FieldName> <String>)*
|
||||||
|
[formatjson [quotechar <Character>]]
|
||||||
|
|
||||||
|
gam <UserItem> info chatmember asadmin
|
||||||
|
members <ChatMemberList>
|
||||||
|
[fields <ChatMemberFieldNameList>]
|
||||||
|
[formatjson]
|
||||||
|
gam <UserItem> show chatmembers asadmin
|
||||||
|
<ChatSpace>* [query <String>] [querytime<String> <Time>]
|
||||||
|
[orderby <ChatSpaceAdminOrderByFieldName> [ascending|descending]]
|
||||||
|
[showinvited [<Boolean>]] [showgroups [<Boolean>]] [filter <String>]
|
||||||
|
[fields <ChatMemberFieldNameList>]
|
||||||
|
[formatjson]
|
||||||
|
gam <UserItem> print chatmembers asadmin [todrive <ToDriveAttribute>*]
|
||||||
|
<ChatSpace>* [query <String>] [querytime<String> <Time>]
|
||||||
|
[orderby <ChatSpaceAdminOrderByFieldName> [ascending|descending]]
|
||||||
|
[showinvited [<Boolean>]] [showgroups [<Boolean>]] [filter <String>]
|
||||||
|
[fields <ChatMemberFieldNameList>]
|
||||||
|
(addcsvdata <FieldName> <String>)*
|
||||||
[formatjson [quotechar <Character>]]
|
[formatjson [quotechar <Character>]]
|
||||||
|
|
||||||
gam <UserTypeEntity> create chatmessage <ChatSpace>
|
gam <UserTypeEntity> create chatmessage <ChatSpace>
|
||||||
@@ -6029,21 +6195,57 @@ gam <UserTypeEntity> update chatmessage name <ChatMessage>
|
|||||||
<ChatContent>
|
<ChatContent>
|
||||||
gam <UserTypeEntity> delete chatmessage name <ChatMessage>
|
gam <UserTypeEntity> delete chatmessage name <ChatMessage>
|
||||||
|
|
||||||
|
<ChatMessageFieldName> ::=
|
||||||
|
accessorywidgets|
|
||||||
|
actionresponse|
|
||||||
|
annotations|
|
||||||
|
argumenttext|
|
||||||
|
attachedgifs|
|
||||||
|
attachment|
|
||||||
|
cards|
|
||||||
|
cardsv2|
|
||||||
|
clientassignedmessageid|
|
||||||
|
createtime|
|
||||||
|
deletetime|
|
||||||
|
deletionmetadata|
|
||||||
|
emojireactionsummaries|
|
||||||
|
fallbacktext|
|
||||||
|
formattedtext|
|
||||||
|
lastupdatetime|
|
||||||
|
matchedurl|
|
||||||
|
name|
|
||||||
|
privatemessageviewer|
|
||||||
|
quotedmessagemetadata|
|
||||||
|
sender|
|
||||||
|
slashcommand|
|
||||||
|
space|
|
||||||
|
text|
|
||||||
|
thread|
|
||||||
|
threadreply
|
||||||
|
<ChatMessageFieldNameList> ::= "<ChatMessageFieldName>(,<ChatMessageFieldName>)*"
|
||||||
|
|
||||||
gam <UserTypeEntity> info chatmessage name <ChatMessage>
|
gam <UserTypeEntity> info chatmessage name <ChatMessage>
|
||||||
|
[fields <ChatMessageFieldNameList>]
|
||||||
[formatjson]
|
[formatjson]
|
||||||
gam <UserTypeEntity> show chatmessages <ChatSpace>
|
gam <UserTypeEntity> show chatmessages
|
||||||
|
<ChatSpace>+
|
||||||
[showdeleted [<Boolean>]] [filter <String>]
|
[showdeleted [<Boolean>]] [filter <String>]
|
||||||
|
[fields <ChatMessageFieldNameList>]
|
||||||
[formatjson]
|
[formatjson]
|
||||||
gam <UserTypeEntity> print chatmessages [todrive <ToDriveAttribute>*] <ChatSpace>
|
gam <UserTypeEntity> print chatmessages [todrive <ToDriveAttribute>*]
|
||||||
|
<ChatSpace>+
|
||||||
[showdeleted [<Boolean>]] [filter <String>]
|
[showdeleted [<Boolean>]] [filter <String>]
|
||||||
|
[fields <ChatMessageFieldNameList>]
|
||||||
[formatjson [quotechar <Character>]]
|
[formatjson [quotechar <Character>]]
|
||||||
|
|
||||||
gam <UserTypeEntity> info chatevent name <ChatEvent>
|
gam <UserTypeEntity> info chatevent name <ChatEvent>
|
||||||
[formatjson]
|
[formatjson]
|
||||||
gam <UserTypeEntity> show chatevents <ChatSpace>
|
gam <UserTypeEntity> show chatevents
|
||||||
|
<ChatSpace>+
|
||||||
filter <String>
|
filter <String>
|
||||||
[formatjson]
|
[formatjson]
|
||||||
gam <UserTypeEntity> print chatevents [todrive <ToDriveAttribute>*] <ChatSpace>
|
gam <UserTypeEntity> print chatevents [todrive <ToDriveAttribute>*]
|
||||||
|
<ChatSpace>+
|
||||||
filter <String>
|
filter <String>
|
||||||
[formatjson [quotechar <Character>]]
|
[formatjson [quotechar <Character>]]
|
||||||
|
|
||||||
|
|||||||
@@ -2,6 +2,34 @@
|
|||||||
|
|
||||||
Merged GAM-Team version
|
Merged GAM-Team version
|
||||||
|
|
||||||
|
6.77.00
|
||||||
|
|
||||||
|
Added option `individualstudentassignments copy|delete|maptoall` to `gam create|update course ... copyfrom`
|
||||||
|
that controls how individual student assignments in the `copyfrom` course are processed.
|
||||||
|
* `individualstudentassignments copy` - Copy individual student assignments; this is the default. You will get an error if the student is not a member of the course.
|
||||||
|
* `individualstudentassignments delete` - Delete individual student assignments
|
||||||
|
* `individualstudentassignments maptoall` - Map individual student assignments to all student assignments
|
||||||
|
|
||||||
|
Upgraded to Python 3.12.4 where possible.
|
||||||
|
|
||||||
|
Added option `asadmin` to the following Chat commands that allows admin access.
|
||||||
|
These commands are in Developer Preview, your project must have Developer Preview enabled for the Chat API
|
||||||
|
in order to use these commands.
|
||||||
|
```
|
||||||
|
gam <UserItem> delete chatspace asadmin
|
||||||
|
gam <UserItem> update chatspace asadmin
|
||||||
|
gam <UserItem> info chatspace asadmin
|
||||||
|
gam <UserItem> print|show chatspaces asadmin
|
||||||
|
gam <UserItem> create chatmember asadmin
|
||||||
|
gam <UserItem> delete|remove chatmember asadmin
|
||||||
|
gam <UserItem> update|modify chatmember asadmin
|
||||||
|
gam <UserItem> sync chatmembers asadmin
|
||||||
|
gam <UserItem> info chatmember asadmin
|
||||||
|
gam <UserItem> print|show chatmembers|asadmin
|
||||||
|
```
|
||||||
|
|
||||||
|
* See: https://github.com/taers232c/GAMADV-XTD3/wiki/Users-Chat
|
||||||
|
|
||||||
6.76.15
|
6.76.15
|
||||||
|
|
||||||
Fixed bug in `gam <UserTypeEntity> print|show filesharecounts summary only summaryuser <String>`
|
Fixed bug in `gam <UserTypeEntity> print|show filesharecounts summary only summaryuser <String>`
|
||||||
|
|||||||
8355
src/chat-v1.json
8355
src/chat-v1.json
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user