title: Google Apps Add editors folder
body: <p>I have a list of email user in <code>Listvalideur[]</code>. I have created a folder.</p>
  
  <ol>
  <li><p>How can I add editor right to the new folder with this <code>Listvalideur</code>? These few lines don't work:</p>
  
  <pre><code>var folder = optFolder.createFolder(folderName); 
  for (var i=0; i&lt;Listvalideur.length; i++) {
      folder.addEditor(Listvalideur[i][0]);
  }  
  </code></pre></li>
  <li><p>Can you also give me the syntax for <code>folder.addeditors</code> methods? These 2 syntaxs don't work:</p>
  
  <pre><code>folder.addEditors('xxx1.yyy1@vvv.com','xxx2.yyyy2@vvv.com');
  folder.addEditors('xxx1.yyy1@vvv.com,xxx2.yyyy2@vvv.com');
  </code></pre></li>
  </ol>
  
  <p>Thanks a lot</p>
  
  <p>Thks for your answer.
  In fact my array is only one dimension Listvalideur[i]. I get this variable from a spreadsheet sheet Call $ListValideur</p>
  
  <pre><code>   |       A 
  1  |  email1@etc
  2  |  email2@example
  </code></pre>
  
  <p>I use this syntax to read and set a array call listvalideur[]</p>
  
  <pre><code>var Listvalideur = SpreadsheetApp.openById(sskeyTable)
       .getSheetByName('$ListValideur')
       .getDataRange‌​()
       .getValues(); 
  </code></pre>
  
  <p>Now I want to Add all email user from my array listvalideur[] to acces to a folder.</p>
  
  <p>I try this syntax without manage : </p>
  
  <pre><code>var folder = optFolder.createFolder(folderName); 
  folder.addEditors(ListValideur[]); 
  </code></pre>