Skip to content

Instantly share code, notes, and snippets.

@iaindooley
Created March 25, 2020 23:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iaindooley/f0aed2352300a640e3839cdf27a391f6 to your computer and use it in GitHub Desktop.
Save iaindooley/f0aed2352300a640e3839cdf27a391f6 to your computer and use it in GitHub Desktop.
Add members from Google Group
function addMembersFromGoogleGroup()
{
var group = GroupsApp.getGroupByEmail("example@googlegroups.com");
var users = group.getUsers();
var board = new Trellinator().board("My Board");
for (var i = 0; i < users.length; i++)
board.inviteMemberByEmail(users[i].getEmail());
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment