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

有帮助吗?

解决方案

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.

其他提示

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.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top