google / clasp

πŸ”— Command Line Apps Script Projects
https://developers.google.com/apps-script/guides/clasp
Apache License 2.0
4.49k stars 420 forks source link

Clasp not approved by Google Advanced Protection #946

Open Mistic92 opened 1 year ago

Mistic92 commented 1 year ago

(Note: Non-breaking issues are likely not to be prioritized. Please consider a PR in addition to your issue)

Expected Behavior

Run clasp with Google Advanced Protection enabled on account

Actual Behavior

Error after login

Access blocked: clasp – The Apps Script CLI is not approved by Advanced Protection
The Advanced Protection Program performs additional security checks to safeguard your account data, and it hasn't approved this app.
If you want to allow clasp – The Apps Script CLI access to your data, you can reach out to the app [developer](https://accounts.google.com/) and encourage them to submit the app for verification. [Learn more about this error](https://support.google.com/accounts/answer/7539956#zippy=%2Ccan-i-still-use-sign-in-with-google%2Ccan-i-use-non-google-apps-services-or-apps-script-with-advanced-protection)
If you are a developer of clasp – The Apps Script CLI, see [error details](https://accounts.google.com/).
Error 400: policy_enforced

Steps to Reproduce the Problem

  1. Enable advanced protection on account
  2. clasp login

Specifications

8enmann commented 8 months ago

You can allowlist if you are a Google Workspace Admin like this: https://support.google.com/a/answer/7281227