.netgoogle-apigoogle-groups-apigoogle-groups-settings

Google Group Setting API, shows error on updating group setting


I am working on client interface which pushes and pulls information from Google Group Setting API and google group api. This client interface is written in asp.net (vb.net). I have successfully created group, added members, removed members and changing role of members through Google Group API and Group Setting API.

Problem is with updating group setting, when I update group setting whoCanPostMessage to ANYONE_CAN_POST, api throws following error :

Google.Apis.Requests.RequestError PermissionDenied: Cannot allow external entities to post. [400] Errors [ Message[PermissionDenied: Cannot allow external entities to post.] Location[ - ] Reason[invalid] Domain[global] ]

The important point is that, I am getting this error only when I am changing group setting whoCanPostMessage to ANYONE_CAN_POST, all other options like "ALL_IN_DOMAIN_CAN_POST", "ALL_MEMBERS_CAN_POST" and "ALL_MANAGERS_CAN_POST" are working fine.

I am not sure why I am getting above mentioned error on changing setting whoCanPostMessage to ANYONE_CAN_POST only.

Can anyone please assist me on this?


Solution

  • Found a solution.

    Wait a minute.

    Now I can modify all the settings that I could not before including "whoCanPostMessage".

    Hope this helps.