The Google Apps Provisioning API lets you retrieve the current memberships for a Google Apps user as well as list all members of a Google Apps Google Group. However, there is no way to do this for consumer (@gmail.com) Google Accounts and regular (@googlegroups.com) Google Groups.
Google Groups: Retrieve list of groups for a user
-
12-12-2021 - |
Frage
Is there an API to get the list of all Google groups a user is part of (of course, with his/her permission) and vice versa (given a Google group, get all users part of that group).
Lösung
Andere Tipps
Also it need not be Google Apps Provisioning. They also have gdata Services and retrieve Groups function. For example if you have an user example@domain.com, then you can use RetrieveGroups(String memberId, bool directOnly) where memberId is the email address and directOnly must be set to True. This works sleek.
Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow