'Deploy GAS Web App without permission screen
I have developed a Web App in Google Apps Script that displays data from a Google sheet. I have set view-permissions for some of my colleagues in my organization for that sheet.
If I deploy the Web App as "Execute the app as: User accessing the app" and the users open the Web App they get this screen saying that the app isnt verified (Screenshot). They need need to click on advanced etc. to grant access. For users with not much knowledge about Workspace this is very confusing and they dont know what to do with that warning and where to click.
If I deploy the Web App as "Execute the app as: Me" the users dont get a warning screen. But every user in my organization can access the Web App now, no matter if they have access to my sheets file or not (of course because the app acts as "me").
Is there a user friendly alternative to publish a Web App for specific users without having this "alert screen"?
Thank you!
Solution 1:[1]
Based in the official article the error seems related to the scopes that you may have defined for the app, as there may be a mismatch on the scopes used and the scopes defined. I would recommend checking that, and if the users are part of your organization. If you have admin access, I would suggest whitelisting the app in the API controls of the Admin console. You need to add the app and mark the access as "Trusted".
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Fernando Lara |
