3

I’d like to check on my Google App Engine application whether an user belongs to a given Google Group.

I could check manually using their username, by copying the whole list of email addresses of that group, and comparing each individually, but that would require updating the list every time a user joins or leaves the group.

Is there an easy way to do that?

qdii
  • 12,505
  • 10
  • 59
  • 116
  • Is the group part of Google Apps managed domain, or a regular google groups hosted on groups.google.com? – proppy Feb 22 '12 at 12:27
  • It is a regular google group (hosted on groups.google.com) – qdii Feb 22 '12 at 12:48
  • 1
    AFAIK, there is no API to currently access public google groups members. I would recommend starring this feature request http://code.google.com/p/gdata-issues/issues/detail?id=27. – proppy Feb 22 '12 at 13:59
  • 1
    Also take look at https://github.com/auzigog/google-groups-php-api which is an unofficial API for google groups that rely on screen scrapping. They don't currently support checking group membership but I believe this could be easily extended/ported to App Engine. – proppy Feb 22 '12 at 14:01
  • I foresee this as a FR for our User API for google apps managed domain, as people might want to restrict access to certain domain groups. – Jose Montes de Oca Apr 01 '12 at 22:44

1 Answers1

0

No. As proppy suggested in the comment, certainly you can do something like screen scraping, but it's a very fragile way and not appropriate for important things like authentication.

There is also a feature request about it. Consider starring this issue.

Takashi Matsuo
  • 3,406
  • 16
  • 25