I want to add members to Google group using AdminDirectory.Members.insert.
This is my code:
function addGroupMember() {
var member = {
name: {
givenName: 'Jhon',
familyName: 'Doe'
},
email: '[email protected]',
role: 'MEMBER'
};
var newMember=AdminDirectory.Members.insert(member, '[email protected]');
}
The members is created into Group Members of Google Workspace, but without name, as you can see below:
There is one way to change Member by John Doe?
NOTE: The email domain is external, is not the same of the organization.

You may want to take a deeper look at the documentation.
From the
Memberoverview:Also you can see that the
Memberresource has no attributenameso it's indeed impossible to assign it a name before creating theUserresource.What you can do right now is creating an
Userthrough theusers.insertrequest. After that store theidof said user and insert it into a group withmembers.insert.And of course if you have already created a bunch of users without specifying the names you can update them.