google-groups-api

Getting 'Missing required field: member' when trying to add a member to a google group via API

江枫思渺然 提交于 2021-01-27 13:54:06
问题 Trying to use Google admin directory API in order to read members of a google group (organization) - it works fine. When I try to add a member I get: { errors: [ { domain: 'global', reason: 'required', message: 'Missing required field: member' } ], code: 400, message: 'Missing required field: member' } I've googled the error and found questions like this, this and a few other unhelpful results. I checked and it's definitely not a missing scope nor permissions. #!/usr/bin/python import

Read messages programmatically from Google group

穿精又带淫゛_ 提交于 2020-01-24 14:37:05
问题 I'll like to run some analysis on messages that are stored in Google group which is part of Google apps domain (busines). Is it possible to read them via API? 回答1: Sorry, there is no API that allows reading of Google Group messages. If you have a Gmail user that has been a member of the group and received those messages, you could try using Gmail API against that user. 来源: https://stackoverflow.com/questions/35244801/read-messages-programmatically-from-google-group

Embedding a Google Group - nothing is displayed when not logged into Google

岁酱吖の 提交于 2020-01-21 18:52:56
问题 I'm trying to embed a Google Groups forum into a page using the supplied embed code for the group. It works fine when I'm logged into Google, but if I'm not, the embed code (that creates an iframe) throws the following error (in Chrome): Refused to display document because display forbidden by X-Frame-Options The result is that the iframe doesn't display anything. Is there a workaround for this? My guess is that the problem is on Google's end. The page is here (if you can see the forum, make

Embedding a Google Group - nothing is displayed when not logged into Google

微笑、不失礼 提交于 2020-01-21 18:51:07
问题 I'm trying to embed a Google Groups forum into a page using the supplied embed code for the group. It works fine when I'm logged into Google, but if I'm not, the embed code (that creates an iframe) throws the following error (in Chrome): Refused to display document because display forbidden by X-Frame-Options The result is that the iframe doesn't display anything. Is there a workaround for this? My guess is that the problem is on Google's end. The page is here (if you can see the forum, make

Add member to google groups using Google Apps Script

ε祈祈猫儿з 提交于 2020-01-03 02:49:09
问题 I am looking for a method to add an user to my own google-group (at least to send him an invitation) from google apps script. The snippet is: var options = { "method" : "POST", "payload" : {"email": email,"role": "MEMBER"}, "muteHttpExceptions": true}; var result = UrlFetchApp.fetch("https://www.googleapis.com/admin/directory/v1/groups/" + respGroup+"/members?key=" + key, options); But the response is: { "error": { "errors": [{ "domain": "global", "reason": "required", "message": "Login

Google Groups Post Permissions

风流意气都作罢 提交于 2020-01-02 11:46:11
问题 I have used both GAM and the Google Groups API to script the following: "whoCanPostMessage":"ALL_IN_DOMAIN_CAN_POST" By default, this also includes ALL_MEMBERS_CAN_POST. I DO_NOT want members to be able to post. Is there any way to exclude All_Members when you want ALL_IN_DOMAIN?? (I know I could do it manually, one-by-one, through the Google Admin Console, but that would be very tedious and time consuming) Please help! 回答1: According to the Groups Settings API documentation, possible

Google Groups Post Permissions

◇◆丶佛笑我妖孽 提交于 2020-01-02 11:44:46
问题 I have used both GAM and the Google Groups API to script the following: "whoCanPostMessage":"ALL_IN_DOMAIN_CAN_POST" By default, this also includes ALL_MEMBERS_CAN_POST. I DO_NOT want members to be able to post. Is there any way to exclude All_Members when you want ALL_IN_DOMAIN?? (I know I could do it manually, one-by-one, through the Google Admin Console, but that would be very tedious and time consuming) Please help! 回答1: According to the Groups Settings API documentation, possible

Creating google groups programmatically

梦想的初衷 提交于 2019-12-13 18:09:06
问题 I need to create a google group using my google app engine application. Please guide me where should i look for info regarding this. Where should i start my learning. 回答1: Groups can be created with the groups.insert() API call which is part of the Admin SDK Directory API. Note that it's only possible for Google Apps Administrators to programatically create Google Groups within their domain, non-Google Apps accounts cannot create groups via this API. 回答2: There is no API for creating groups

How to update Google Group Settings with Google Apps Script

人走茶凉 提交于 2019-12-12 19:21:00
问题 I have a Google Apps Script which has all the permissions it needs, with the Group Settings API on and working, but does not change certain things. There are no errors given, but the only thing that changes is the name, and the rest does nothing. This is the script: function modgroup() { var groupKey = 'finaltest@school.edu.mx'; var resource = { name: "finalfour", whoCanContactOwner: "ALL_MEMBERS_CAN_CONTACT", whoCanJoin: "INVITED_CAN_JOIN", whoCanViewMembership: "ALL_MEMBERS_CAN_VIEW",

Issue with Google Drive API and group sharing

时光怂恿深爱的人放手 提交于 2019-12-12 07:40:40
问题 I'm facing an issue with an application I'm developing using Google Drive. I have a Google group with some users inside, and I share a collection with this group. When I try to find this collection using Google Drive API (files().list()), as one of the users of this group, the collection shows up properly. However, if I add another user to the group (either using API or Google CPanel), and try to find the collection using Google Drive API as this user, the collection doesn't show up, as if