r/GoogleAppsScript • • Aug 25 '25

Question Issues with Google Docs automation

I created an automation with Google Docs where, after filling out a Google Apps Script web app form, several sections of the document are updated, and then a PDF is generated and made available for download directly in the web app. When I test it with my own account, it works fine, but when others try it, they get a 403 (permission error).

I’ve already set the document’s access to “Editor” and granted all the necessary Google permissions. I also tried sending the PDF to a shared folder, but the same error occurs. What can I do to fix this?

1 Upvotes

6 comments sorted by

View all comments

Show parent comment

1

u/lilian0030 Aug 27 '25

I’ve left all the Web App deployment options open. The program runs under my account, and anyone with the link has access.

Both the destination folder and the Google Docs are set to “anyone with the link can edit.” I believe the issue is with the generated PDF link, which I haven’t been able to resolve yet. :(

2

u/AllenAppTools Aug 28 '25

Hm, I think the issue may be that your account creates the file, stores it in the wide open folder, but still may have individual sharing settings in the file. That's where I would check next. Does the created file have sharing settings for anyone to edit/download? If not, you'll need to add some code to make the sharing settings wide open on the copied file.

Any thoughts on that?