I am rather confused but, as a new Google Apps user, I may do things wrongly.
I created a "mydomain.tld" domain and a "mygroup" google group on this domain.
This group contains email addresses which are not all @gmail.com or @domain.tld. All have been directly added (it is a student list for a school)
I created a spreadsheet and added a script to the sheet to retrieve all the members of the group.
All is fine if I use the deprecated function :
GroupsManager.getGroup("mygroup@mydomain.tld").getAllMembers();
I only get a small part of the group members when I use the new API:
GroupsApp.getGroupByEmail("mygroup@mydomain.tld").getUsers();
As far I can see I get all the gmail.com email addresses plus some emails from other domains too.
Many thanks in advance to let me know what I is wrong and how I could get all the email addresses of the group with the current API.