title: How to grant access to an Apps Script
body: <p>How do I grant access to a script I've made to another G Suite user in my domain please?</p>
  
  <p>Here is the script:</p>
  
  <pre><code>function rangeShort() {
    var range = SpreadsheetApp.getActiveRange(),
    data = range.getValues();
    var output = [];
    for(var i = 0, iLen = data.length; i &lt; iLen; i++) {
      var url = UrlShortener.Url.insert({longUrl: data[i][0]});
      output.push([url.id]);
      Utilities.sleep(100);
    }
    range.offset(0,1).setValues(output);
  }
  </code></pre>