【问题标题】:I am getting an error message: Exception: You do not have permission to call DriveApp.getFileById. Required permissions:我收到一条错误消息:异常:您无权调用 DriveApp.getFileById。所需权限:
【发布时间】:2021-12-30 02:42:06
【问题描述】:

例外:您无权调用 getFileById 所需权限:(https://www.googleapis.com/auth/drive.readonly || https://www.googleapis.com/auth/drive)

我批准的范围包括,https://www.googleapis.com/auth/drive

【问题讨论】:

    标签: permissions required scopes


    【解决方案1】:

    如果您使用触发器,删除并重新创建现有触发器将启动 Oauth 页面。这将为您的脚本提供所需的权限

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-11-05
      • 1970-01-01
      • 2018-05-23
      • 2022-08-16
      • 2020-11-27
      相关资源
      最近更新 更多