I want to add Email Addresses to Google Groups programmatically. While there are methods of doing so, none seem to allow the addition of the Display Names, Nicknames or just the First and Last names.
For example, the code (from Add members to google groups programatically):
GroupsManager.getGroup(group).addMember(emailAddress);
works beautifully if the emailAddress is something like [email protected], however if I try to add the DisplayName, it doesn't. I have tried:
"Fred Surname" <[email protected]>
and Fred Surname
however, I just receive an unspecified error.
Any help would be greatly appreciated - in any language, as long as there is an example!
Many thanks,
Clem Clarke
It can't be done unless the person is defined as a Google User in the Domain. See this discussion: https://productforums.google.com/forum/#!topic/apps/6Z8OpwGk7UM; specifically, the post by marcus24 on 10/10/09. It still works the same way today.