gmail-unsubscribe
gmail-unsubscribe copied to clipboard
"This app is blocked" safety/security issue?
This might be because I have 2FA activated?
https://myaccount.google.com/lesssecureapps is also not available to me for that reason.
This app is blocked
This app tried to access sensitive info in your Google Account. To keep your account safe, Google blocked this access.
Also see:
- https://support.google.com/accounts/answer/6010255#more-secure-apps-how
What steps did you take to get to this screen?
- copy the sheet
- click "create labels"
- google login picker appears
- click my currently logged-in profile
- this error
Do you have the enhanced protection program enabled? That would likely cause this.
Nope
I tried to repro with a friends Google accounts all of whom have 2FA, but couldn’t repro. I recommend trying the developer setup guide to upload the code to your own account fresh instead of copying out of my account. Maybe that will work.
I had the same issue, you just need to click "Advanced"
I had the same issue, you just need to click "Advanced"
That's not the same issue.
Look at the image in the original post, note that the error message is different and there are no buttons or links or such to choose.
Did some digging and found this old, archived blog post: https://web.archive.org/web/20231008232312/https://aimanfikri.com/2022/05/09/this-app-is-blocked-error-on-google-apps-script-solution/
This mentions a google issue (closed) https://issuetracker.google.com/issues/181220763?pli=1
...which explains that because my account is recommended to enroll in Google's Advanced Protection Programme (but I have not enabled it because I need to buy a physical security keys) I am seeing this issue.
Basically, if Google flag your account as recommended for Advanced Protection, then all Apps Scripts scripts are blocked.
Using the info in that blog post and this Stack Overflow answer, I was able to set up my Google Account so my copy of the script in the sheet can be logged in. And it's working!
Login now gives me this warning: