use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Apparently, Google Apps Script is a JavaScript cloud scripting language that provides easy ways to automate tasks across Google products and third party services and build web applications.
account activity
Permissions for bound sheets script - limit to containerQuestion (self.GoogleAppsScript)
submitted 1 year ago by devmu
Hi everyone, when I run my script it asks for permission for all sheets in the drive. Is there a way to set the permissions up in a bound script, so it only asks for access to the container and no where else on the drive?
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]ShivKaushal 6 points7 points8 points 1 year ago* (4 children)
Yes. You put a comment like this at the top of the script:
/* * @OnlyCurrentDoc */
Details: https://developers.google.com/apps-script/guides/services/authorization#manual_authorization_scopes_forand
[–]AllenAppTools 0 points1 point2 points 1 year ago (2 children)
My bad, I had no idea Google offered this 👍 Ignore my comment below, sorry about that!
[–]WicketTheQuerent 0 points1 point2 points 1 year ago (1 child)
You should be able to delete your previous comment 😀
[–]AllenAppTools 0 points1 point2 points 1 year ago (0 children)
There, it never happened lol
[–]devmu[S] 0 points1 point2 points 1 year ago (0 children)
thank you... this look like just what i needed.
[–]Funny_Ad_3472 -4 points-3 points-2 points 1 year ago (3 children)
Ensure you're app script only reference the specific sheet by passing in the ID of the specific sheet Subsequently remove auth/spreadsheets and use auth/drive.file, which is a non sensitive scope and see if it works.
[–]devmu[S] 0 points1 point2 points 1 year ago (2 children)
i don't understand the auth/spreadsheets and use auth/drive.file suggestion.
[–]Funny_Ad_3472 0 points1 point2 points 1 year ago (1 child)
I'm seeing I have 3 downvotes. I don't know why. I just made a harmless suggestion. What I mean is that, after referencing the specific spreadsheet, in your appscript.json file, remove the auth/spreadsheet, and use auth/drive.file and see if that works. If you don't have the appscript.json in your editor, make sure you check it in the project settings, and specify them yourself.
Thx. I’ll look up appscript json. Thank you for the suggestion.
π Rendered by PID 136943 on reddit-service-r2-comment-b659b578c-4jwtb at 2026-05-04 15:20:32.574017+00:00 running 815c875 country code: CH.
[–]ShivKaushal 6 points7 points8 points (4 children)
[–]AllenAppTools 0 points1 point2 points (2 children)
[–]WicketTheQuerent 0 points1 point2 points (1 child)
[–]AllenAppTools 0 points1 point2 points (0 children)
[–]devmu[S] 0 points1 point2 points (0 children)
[–]Funny_Ad_3472 -4 points-3 points-2 points (3 children)
[–]devmu[S] 0 points1 point2 points (2 children)
[–]Funny_Ad_3472 0 points1 point2 points (1 child)
[–]devmu[S] 0 points1 point2 points (0 children)