Question

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).

Was it helpful?

Solution

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.

OTHER TIPS

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top