Can I restrict the access of my Google Apps Script Web App to a single Google Spreadsheet?

588 views
Skip to first unread message

Robert McGregor

unread,
Sep 7, 2023, 6:26:20 AM9/7/23
to Google Apps Script Community

I'm following this tutorial to connect a Godot program to a single specific Google Sheet.

However, when I reach the point of deploying the Web App, I'm asked to authorise the app to access my account - with a warning from Google that this will let the Web App alter ANY data in my Google account.

I would prefer to give this web app as little access to my account as absolutely possible - indeed, my intention was for the app to only be able to access a single Sheet.

Does anybody know how to deploy an Apps Script program while restricting access to a single Google Spreadsheet?

Message has been deleted

Jonathan Butler

unread,
Sep 7, 2023, 12:40:19 PM9/7/23
to google-apps-sc...@googlegroups.com
This is an automatically generated prompt based on the drive scopes the app uses. Google Appscript will automatically add the full drive permissions (View and manage all of your Drive files) if the code uses DriveApp. The code that requires those permissions is the code you wrote following the tutorial. So if you can read the code, you can check if it is safe. Alternatively, you can paste the code into ChatGpt and ask it what the code is doing. That way you can evaluate if the code is safe in plain english.

On Thu, Sep 7, 2023 at 8:02 AM Robert McGregor <ogmadig...@gmail.com> wrote:
This warning is giving me a great deal of anxiety...!


--
You received this message because you are subscribed to the Google Groups "Google Apps Script Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-script-c...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-script-community/0c0441d5-82b9-46c2-a6b4-cc981d83b7c1n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages