The Google Apps Script API requires permission to access 'Google Sheet'. You can create service account from Google IAM, attached that SA to your Google Sheet and Google Apps Script.