I'm trying to use Google Apps Script to access the user list for a Group in my domain that I'm a member of, but I'm getting the error:
Exception: You do not have permission to view the member list for the group
The reference documentation says "Throws an exception if you do not have permission to view the group's member list" but I do have permission to view the member list.
Screenshot of group's "About" page showing I have permission to view the member list
My code is just:
GroupsApp.getGroupByEmail("group@domain.com").getUsers();
But obviously with the real group's email address. It works perfectly for groups that I am the owner or manager of, but not that I am a member of (again, even though I do have permission to see the member list). Is there another setting somewhere where I don't have that permission? Is the documentation just misleading and it never works for mere members?