The behaviour you noted is a side effect of a known issue, whereby setting messageModerationLevel to MODERATE_ALL_MESSAGES , causes whoCanPostMessage to be changed to ALL_MEMBERS_CAN_POST , as viewed via the Groups Settings API. The Groups UI still sees the correct setting.
Unfortunately, once modified, whoCanPostMessage can't be changed by subsequent PUT requests. The issue is being addressed by Google engineers, and can be reproduced via the following steps:
'Owners of the group',
'Managers of the group'
"messageModerationLevel": "MODERATE_NONE",
"whoCanPostMessage": "ALL_MANAGERS_CAN_POST"
"messageModerationLevel": "MODERATE_ALL_MESSAGES",
"whoCanPostMessage": "ALL_MANAGERS_CAN_POST"
"messageModerationLevel": "MODERATE_ALL_MESSAGES",
"whoCanPostMessage": "ALL_MEMBERS_CAN_POST",
'Owners of the group',
'Managers of the group'.
To avoid this issue, I'd recommend NOT setting messageModerationLevel to MODERATE_ALL_MESSAGES , when only managers can post to the group, as they are the ones who would approve posts anyway.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.