Googleスプレッドシートに紐づくApps Scriptについて質問です。
Googleアカウントの「サードパーティとの接続」で、アプリのアクセス権詳細を開くと、「ウェブアドレス」に https://example.com/privacy と表示されます。このURLはコードにも設定ファイルにも入力していません。
環境:
・個人のGoogleアカウント
・スプレッドシートに紐づくApps Script
・デフォルトのGoogle Cloudプロジェクト
・V8ランタイム
・権限は https://www.googleapis.com/auth/spreadsheets.currentonly のみ
確認したこと:
元のファイルをコピーせず、新しい空のスプレッドシートから比較用スクリプトを作成しました。コードは @OnlyCurrentDoc を付け、現在のスプレッドシートにtoastメッセージを表示するだけです。
この新規スクリプトも実行には成功しますが、アクセス権の詳細に同じURLが表示されます。
URL横の説明には「ウェブアドレスは Google で検証されていません。この情報は、このアプリのデベロッパーから提供されたものです」と表示されています。
確認したい点:
-
このウェブアドレスは、どの設定から生成されるのでしょうか。
-
デフォルトCloudプロジェクトで、このURLを削除または正しいURLへ変更する公式の方法はありますか。
-
標準Cloudプロジェクトのブランド情報を設定すると、この接続管理画面にも反映されますか。
-
利用者がスプレッドシートをコピーして付属スクリプトを所有・実行する場合、正しいURLを表示させるには、コピーごとに設定が必要ですか。
仕様・不具合のどちらか判断できていないため、確認方法をご教示いただけますと幸いです。
It should be something you set in the Oauth Consent Screen for the project.
https://console.cloud.google.com/auth/branding
Thank you for your reply.
This script uses an automatically created default Google Cloud project, not a standard Cloud project. I have not configured an OAuth consent screen or entered this URL.
I also reproduced the same [https://example.com/privacy](https://example.com/privacy) website entry with a newly created spreadsheet-bound script that only calls SpreadsheetApp.getActiveSpreadsheet().toast(...), using @OnlyCurrentDoc.
Google’s documentation says that consent screen settings cannot be adjusted for default Cloud projects:
https://developers.google.com/apps-script/guides/cloud-platform-projects#complete_the_oauth_consent_screen
Is there a way to inspect or correct this URL while keeping the default Cloud project, or is switching to a standard Cloud project required?
2026年9月25日(金) 15:57 Kim Nilsson <no-reply@discuss.google.dev>:
Some actions/features require a Standard project to work. There should be documentation about that.