title: Hiding google sheet tab from users
body: <p>I have a google sheets document with two tabs one called called internal and the other called external. How can i hide the internal tab from other users? the lock function already avialble is not good enough I only want people from my company to be able to see both tabs, clients should only be able to see the external tab.</p>
  <pre><code>function validUsers() { 
  String[] adminUsers = {”email1@gmail.com”,”email2@gmail.com”,”email3@gmail.com”};
  
  if (adminUsers.indexOf(Session.getEffectiveUser().getEmail()) &gt;= 0) { 
      SpreadsheetApp.getActiveSpreadsheet().getSheetByName('Internal').showSheet() 
  else
      SpreadsheetApp.getActiveSpreadsheet().getSheetByName('Internal').hideSheet() 
  } 
  </code></pre>
  <p>}</p>