Is it possible to set a user's group email not

2019-05-23 21:12发布

问题:

When a user joins a group, they are presented with options for linking their profile as well as choosing their email notification style on a screen like this:

Is it possible to set these values, in particular the email notification choices, via API?

I've found the API to add a member to a group (https://developers.google.com/apis-explorer/#p/admin/directory_v1/directory.members.insert), but not to set these meta-values pertaining to that membership.

回答1:

Sorry, there is no way to set a user's mail delivery preferences via the current APIs.



回答2:

So while you can't get the mail preferences for each individual user, you can get some settings associated with the group. By using the Groups Settings API as per https://developers.google.com/admin-sdk/groups-settings/manage, you should be able to return a number of parameters which list the settings of said group.

Hope this helps,