tlacroix
tlacroix

Reputation: 21

How to get a group type using Google Apps APIs?

I'm currently developing a Google Apps Script that modifies the settings of all groups of a domain, but the settings applied depend on the group type (i.e. email list or collaborative inbox, mostly).

However, I've not found a way to determine the group type using the Google APIs (I'm using the "Groups Settings API" and the "Directory API: Groups").

Does anyone know how to get the group type using the Google APIs, or any other programmatic way ?

Upvotes: 2

Views: 335

Answers (2)

Eshan Chattaraj
Eshan Chattaraj

Reputation: 368

You can change the group types by selecting the very group..after that..goto SETTINGS SYMBOL-->by going to the GROUP setting in right side of dropdown menu of SETTINGS ..

then in the left side you will find ADVANCE option TAG under the "INFORMATION" COLLAPSIBLE TAG in where you can change the google group type to any of the four thing

Upvotes: 0

miketreacy
miketreacy

Reputation: 1120

These group 'types' aren't really types - because of this, there's nothing in the Groups Settings API to set or get the type.

Essentially, when you change between them, Google Groups is just changing a bunch of presets. The only way to tell the difference would be to create different test groups for each 'type', GET the settings for each with the Groups Settings API and use any difference in settings between them as how you determine the 'type' of the group.

Hope this helps!

Upvotes: 1

Related Questions