title: Add emailadress to Spreadsheet, auto add the email to a Google group
body: <p>I have a Google Forms were the user writes her/his emailadress. When they do so, i would like it to auto add the emailadress/user to a Google Group. </p>
  
  <p>I tried to do this with Apps Script, but i do not get any luck with it. </p>
  
  <pre><code>function addUserToGroup() 
  {
    var emailadd = SpreadsheetApp.getActiveSheet().getRange("B2:B99");
    var group = GroupsManager.getGroup("grouptest@mydomain.com").addMember(emailAdd);
  
  }
  </code></pre>
  
  <p>I think i might be missing something in my script, but i don't know what it is.</p>
  
  <p>I am domain admin Provisioning API is enabled. </p>