Search code examples
google-apps-scriptdeploymentweb-applicationsauthorization

Google web app script keeps asking for users to sign in?


I have created my script and it works great. I have changed the sharing so anybody can view it, but it still asks users to login to their Google account to run the script.

Here is the link: My script


Solution

  • Currently you're web app is set to execute as User accessing the web app. This means they need to sign into a Google account to execute any of the code in your app.

    You need to change this setting to: Execute the app as: Me As well as change Who has access to the app from Anyone to Anyone even anonymous

    Example:

    enter image description here

    The setting can be found by clicking on the cloud icon in the Apps Script IDE's toolbar. enter image description here

    Edit: Added new image to reflect proper settings.