title: Stop installable triggers if user removed permissions for the add-on
body: <p>How to stop all installable triggers of the add-on if the user removed permissions for the add-on in the page <a href="https://myaccount.google.com/permissions" rel="nofollow noreferrer">Apps with access to your account</a>?</p>
  
  <p>For standalone scripts, the user will receive a <a href="https://developers.google.com/apps-script/guides/triggers/installable#errors_in_triggers" rel="nofollow noreferrer">"Summary of failures for Google Apps Script"</a> email. But for the add-on developer, the add-on will just keep throwing the error "The script does not have permission to get the active user's identity." in Stackdriver Logging.</p>
  
  <p>Notice that this case is different from uninstalling or disabling the add-on, as it would be possible to stop the trigger by testing the authMode of the event object. Example:</p>
  
  <pre><code>function onEditCustom(e) {
      if(e.authMode != ScriptApp.AuthMode.FULL) return;
  
      // code...
  }
  </code></pre>