Allowing anonymous access to Google Apps Script web app (Google Apps account)

一笑奈何 提交于 2019-12-07 05:20:33

问题


I have a spreadsheet in my Google Drive that I would like to share through a web app. I want the script to run as me and allow everyone to access the web app.

When this is done in my personal Google account (non Google App account), I get "Anyone, even anonymous" option under "Who has access to the web app" section in the "Publish as a web app" dialog in the Apps Script editor. And everything works fine.

However when I try to do the same thing in my Google Apps account in my organization, I do not get "Anyone, even anonymous" option under "Who has access to the web app" section. Only options that are presented is "Only myself" & "Anyone within XXXXXXX.com"

Anybody have any idea why this is happening? Is there any security option that I can change in my Google Apps domain?

Thanks


回答1:


Have you checked with your Google Apps Administrator? They might have enforced a policy that one can not share the docs outside the organization.

Here is the documentation on docs sharing policy. https://support.google.com/a/answer/60781?hl=en




回答2:


This setting is controlled by the domain administrator via the "Allow users in [domain] to publish files on the web or make them visible to the world as public or unlisted files" options that's under "Settings for Drive and Docs".

Note that after checking that option, you'll have to create a new Script in order to be able to publish it with "Anonymous" access. Existing scripts don't seem to get that option even after the setting has been changed.

Also note the Google issue tracker for this: https://issuetracker.google.com/issues/36764781



来源:https://stackoverflow.com/questions/22928411/allowing-anonymous-access-to-google-apps-script-web-app-google-apps-account

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!