You need to enable JavaScript to run this app. 我的Google账户下Google Apps Script外部scope授权被拦截
优惠活动
大模型
产品
解决方案
定价
更多

我的Google账户下Google Apps Script外部scope授权被拦截

Google Apps Script OAuth 账户级授权拦截问题
  • 核心异常表现:近段时间使用个人Google账户为Google Apps Script发起新OAuth授权时,所有不属于当前正在编辑文件范围的scope均无法完成授权,仅带.currentonly标识的scope可正常使用。
  • 授权拦截流程:选定目标Google账户后,不会跳转至常规的权限申请概览页面,直接弹出拦截提示:

This app is blocked
该应用尝试访问我的Google账户中的敏感信息,为保障账户安全,Google已拦截该次访问请求。
拦截提示参考截图:This app is blocked

  • 多场景排查结果:
    • 无论在新建、已有的Spreadsheet文件上尝试新增这类非.currentonly范围的权限,都会触发相同拦截
    • 问题出现前已完成OAuth授权的Spreadsheet,配合项目触发器的定期更新可正常运行
    • 更换其他Google账户执行完全相同操作,所有功能均可正常运行,初步判定问题源于当前异常Google账户的全局设置
    • 曾手动开启Less secure app access选项,未解决该问题,对应设置页参考截图:Less secure app access

当前项目manifest配置

{
  "timeZone": "Europe/Paris",
  "dependencies": {
  },
  "exceptionLogging": "STACKDRIVER",
  "oauthScopes": [
    "https://www.googleapis.com/auth/spreadsheets.currentonly", // 该scope可正常授权
    "https://www.googleapis.com/auth/drive", // 该scope无法授权
    "https://www.googleapis.com/auth/spreadsheets" // 该scope同样无法授权
  ],
  "runtimeVersion": "V8"
}

待解答咨询

  • 该异常是否由当前账户默认禁用未验证第三方应用的访问权限导致?
  • 如果是上述原因,该如何重新开启对应权限?

内容的提问来源于stack exchange,提问作者Nelie

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.11.12 00:45:03