r/GoogleAppsScript • u/CloudNo8709 • Jul 27 '26
Resolved "This app is blocked" error when trying to authorize Apps Script project

Does anyone know what causes the app to be blocked? and how to fix it?
Note: I can authorize the app fine, it is someone else that is having this issue.
Things I have tried already, that didn't work:
- transferring the file ownership to the other person
- having them make a copy of the file
- opening the google sheets in an incognito window
3
Upvotes
2
u/WicketTheQuerent Jul 27 '26
Create a Google Cloud Project and set the OAuth Consent Screen. If you can't make it private, set its status to Testing and add your email account and the other user's email account as testers. Then link the GCP to your Apps Script project.
1
u/Nu11u5 Jul 27 '26
The script is likely using "sensitive" or "restricted" API scopes - this would be listed in the API scope documentation. Using such as scope requires that the script is linked to a full GCP project and is either setup with test users, or submitted to Google for review.
https://developers.google.com/identity/protocols/oauth2/production-readiness/sensitive-scope-verification
Review for restricted scopes is more involved and requires paying a third party to inspect your code.
https://support.google.com/cloud/answer/13464325
https://developers.google.com/identity/protocols/oauth2/production-readiness/restricted-scope-verification
Fortunately, Google offers alternative ways to use APIs that do not use restricted scopes. For example, if you only need to access specific files using the Drive API, you can use the drive.file scope.