Looking for help/directions on the following issue:
- Apps script Web App losing permissions frequently.
A detailed explanation of the deployment:
I have a GAS Web App that has been published as a Web App and it is being "Executed as Me".
I have also created a version, and the script is then published on this specific version. Script also has a few time-driven triggers which are also set up on a specific published version.
According to Google Apps Script Documentation, above are the best practices to be used for the deployment of an Apps Script project as Web App.
But recently, this GAS/Web app is losing permissions automatically even though there is no change in the script. So eventually, script triggers start throwing an error: "Authorization is required to perform that action".
Is there anything I am missing?
FYI, below are the permissions required for my script:
"oauthScopes": ["https://www.googleapis.com/auth/spreadsheets.readonly",
"https://www.googleapis.com/auth/userinfo.email",
"https://www.googleapis.com/auth/spreadsheets.currentonly",
"https://www.googleapis.com/auth/spreadsheets",
"https://www.googleapis.com/auth/gmail.readonly",
"https://www.googleapis.com/auth/gmail.modify",
"https://mail.google.com/",
"https://www.googleapis.com/auth/script.scriptapp",
"https://www.googleapis.com/auth/script.container.ui",
"https://www.googleapis.com/auth/forms",
"https://www.googleapis.com/auth/drive.readonly",
"https://www.googleapis.com/auth/drive"],