I have a webapp, and I want to tell if the currently-logged-in user is a member, manager, or owner of a specific Google Group (the same information that you could find by clicking on "members" from a group page). Ideally, it would also be nice to list all members, managers, and owners of the group as well.
The Members API (https://developers.google.com/admin-sdk/directory/v1/reference/members/list) seems promising, but when I try it in the API explorer, I get Not Authorized to access this resource/api
errors even when I have provided OAuth permission. I can see the list of members using the Google Groups website, so it would appear that I have permission, but I am not the administrator of the Google Apps domain.
Any idea what I might be doing wrong? Thanks!
Any of the API calls in the Admin SDK require the authorising user to be an administrator of the domain they are being called against. You'll need to use an admin account to get a successful response.