r/GoogleAppsScript • u/talgu • Apr 16 '25
Question Limit script permissions to specific files/calendars
I know there's a way to limit the script's permissions to the current spreadsheet, which is half of what I want.
However the script is supposed to update three specific calendars and everything I have found so far implies that the user will have to give permission for the script to access all of their calendars. Which is basically the same as having no security at all.
I haven't started to look into this yet, but I'm also wondering whether it's possible to give a script read permissions to a specific Drive directory?
0
Upvotes
View all comments
Show parent comment
1
u/talgu Apr 17 '25
Unfortunately I haven't found anything yet. There is
@OnlyCurrentDoc, and something similar that can be placed in the manifest. But it's not very helpful when you have two documents.Writing this now however I'm kind of wondering whether you can't do this via the REST API. So maybe something like current doc plus doing everything through the REST API could work. 🤔 It would be clunky, but perhaps?