title: Expand/Collapse Columns in Protected Sheets
body: <p>I'm trying to create expand and collapse buttons in google sheets because google won't allow that functionality in protected sheets.</p>
  
  <p>In a protected sheet I have this function for collapse:</p>
  
  <pre><code>function Collapse() {
   var sheet = SpreadsheetApp.getActiveSpreadsheet().getSheetByName('Sheet1');
   var range = sheet.getRange('D1:M1');
    sheet.setColumnGroupControlPosition(SpreadsheetApp.GroupControlTogglePosition.BEFORE);
   var user = Session.getActiveUser();
    sheet.protect().addEditor(user)
   var group = sheet.getColumnGroup(4, 1);
    group.collapse();
  }
  </code></pre>
  
  <p>It's still not allowing other individuals to expand/collapse the columns. </p>
  
  <p>Is there something I can do to allow users to access this functionality?</p>