Reputation: 53
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
Upvotes: 5
Views: 8611
Reputation: 1
I'm admin for a Google for Nonprofits workspace. When adding members to a google group (in the form "First Last <emailaddress.domain>"), the Display Name "takes" only for those users who have accounts in our organizational domain. For the others, the email address is just repeated where I wish the Display Name would appear.
Upvotes: 0
Reputation: 1
This format for adding Display names does not work in the New Google Groups. No matter what format I enter, it puts the email name in the Display Name Field instead of the name that I use to maintain the group, i.e. First Name Last Name. Since some emails are not remotely associated with a person's name, this is very difficult to manage. The special input formula works fine in Classic Google Groups but not in the New Google Groups.
Upvotes: 0
Reputation: 1
It only works if you add a user with a Google account (includes other Gsuite enabled organisations and Gmail addresses too). It does not works for users with other accounts (e.g Hotmail, iCloud, Yahoo etc).
Hopefully Google will enable GSuite admins to include the person's name with their email address for third party accounts soon.
Upvotes: 0
Reputation: 1
It can totally be done, I just did it and have done it before. When adding a new member to the group type the name as you want it displayed then the address in the <>
's. Ex. John Doe <email address>
Hope that helps.
Upvotes: -1
Reputation: 21
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.
Upvotes: 2