Hi everyone,
I'm experiencing a very frustrating and persistent "Specified permissions are not sufficient" error in my Google Apps Script project, even after trying extensive troubleshooting steps. I'm trying to automate sending emails via Gmail from a Google Sheet, triggered by a checkbox.
The error message I consistently receive is: Exception: Specified permissions are not sufficient to perform the action. Required permissions: (https://mail.google.com/ || https://www.googleapis.com/auth/gmail.readonly || https://www.googleapis.com/auth/gmail.compose || https://www.googleapis.com/auth/gmail.modify)
This happens when the onEdit trigger fires from a checkbox being checked in the Google Sheet.
Here's my setup:
Google Sheet StructureI have tried all of the following, on two separate free Gmail accounts, with consistent failure:
Despite all these steps, the "Specified permissions are not sufficient" error persists, indicating the permissions are somehow not "sticking" or being recognized by Google's system.
Has anyone encountered such a persistent authorization issue with Apps Script on a free Gmail account, and if so, what was the resolution? Any insights or further diagnostic steps would be greatly appreciated.
On Jun 23, 2025, at 3:38 PM, Amy Smith <amy.smi...@gmail.com> wrote:
--
You received this message because you are subscribed to the Google Groups "Google Apps Script Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-script-c...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/google-apps-script-community/cc5b7446-ad9c-4d0b-96b6-ba6619bba82en%40googlegroups.com.
You can not use the simple trigger to do this. You will have to define a trigger and authorize the software to do this function.
Also rename the onEdit function to something else so that it does not confuse the simple trigger versus the defined trigger.
To view this discussion visit https://groups.google.com/d/msgid/google-apps-script-community/F6251D70-0437-4956-8CE5-AB26610F3F36%40bbchs.org.
To view this discussion visit https://groups.google.com/d/msgid/google-apps-script-community/d88c270f-7124-4915-9c30-06fafaf66116n%40googlegroups.com.