"Some requested scopes cannot be shown" 为 Datastudio 执行 OAuth2 流程时出错 API

"Some requested scopes cannot be shown" error when performing OAuth2 flow for Datastudio API

我正在尝试使用 Datastudio API to create a small script that I plan to use at a later point to manipulate asset permissions as it won't be possible to do so via the Google Drive API in the future

当我执行 OAuth2 流程尝试授权指定的范围时

https://www.googleapis.com/auth/datastudio
https://www.googleapis.com/auth/userinfo.email
https://www.googleapis.com/auth/userinfo.profile
openid

我收到以下错误:

当我删除 https://www.googleapis.com/auth/datastudio 时,流程工作正常。

Datastudio API 已在特定项目的 Google 云控制台中启用。此外,我尝试授权的帐户属于 G Suite Enterprise 域。

我错过了什么?

事实证明,Data Studio API 仅支持“Web 应用程序”类型的 OAuth2 客户端,而不支持“已安装的应用程序”。