gmail-unsubscribe icon indicating copy to clipboard operation
gmail-unsubscribe copied to clipboard

"This app is blocked" safety/security issue?

Open gingerbeardman opened this issue 2 years ago • 9 comments

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.

Screen shot 2023-08-03 at 21 40 03

Also see:

  • https://support.google.com/accounts/answer/6010255#more-secure-apps-how

gingerbeardman avatar Aug 03 '23 20:08 gingerbeardman

What steps did you take to get to this screen?

justjake avatar Aug 04 '23 02:08 justjake

  1. copy the sheet
  2. click "create labels"
  3. google login picker appears
  4. click my currently logged-in profile
  5. this error

gingerbeardman avatar Aug 04 '23 14:08 gingerbeardman

Do you have the enhanced protection program enabled? That would likely cause this.

taciturnaxolotl avatar Aug 16 '23 20:08 taciturnaxolotl

Nope

gingerbeardman avatar Aug 17 '23 01:08 gingerbeardman

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.

justjake avatar Aug 17 '23 01:08 justjake

I had the same issue, you just need to click "Advanced" Screenshot 2024-04-04 at 09 20 36

Strvm avatar Apr 04 '24 16:04 Strvm

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.

gingerbeardman avatar Apr 04 '24 17:04 gingerbeardman

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.

gingerbeardman avatar Apr 04 '24 18:04 gingerbeardman

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:

Screen shot 2024-04-04 at 20 26 48

gingerbeardman avatar Apr 04 '24 19:04 gingerbeardman