google-apps-scripturlfetchscopes

What user data does the Google OAuth2 scope script.external_request give access to?


I'm attempting the verification process for an Apps Script web app that uses the URL Fetch service via class URLFetchApp. Per URLFetchApp documentation, this requires the scope https://www.googleapis.com/auth/script.external_request. I can't find any Google documentation for this scope, and it doesn't appear on this list of OAuth2 scopes. I'm having a hard time demonstrating how my app uses the data provided by the scope when I don't actually know what user data the scope provides. I mean, I don't think I'm using any user data... I'm just calling API executable functions from another Google Apps Script project.

What user data is this scope giving me access to? Or do I just need to explain why/how I'm using URLFetchApp?


Solution

  • If you head over the editor dashboard of your script, you will see further information about this scope stating :

    Connect to an external service under project OAuth scopes.

    Moreover, when you run your script for the first time, the permissions it is asking for are:

    Create a network connection to any external service (e.g., to read or write data)

    Therefore, despite not having much more description in the documentation (just in UrlFetchApp), I don't think you are using any user data apart from getting the user to use your script and connect to an external service.