Home > FAQ (よくあるご質問) > 自動検出 > Sites.FullControl.All 権限をマイ カスタム アプリに追加できない場合の解決方法 > Specify Selected Sites via Graph Explorer
Export to PDF以下の説明を参照し、アプリがアクセスできるサイトを指定します。
Go to , and click the profile icon to sign in.

ポップアップ ウィンドウが表示されると、[承諾] をクリックします。

以下の説明を参照して、提供したキーワードと一致するサイトを検索します。
From the left navigation, click search for a SharePoint site by keyword.

Modify permissions タブで、Sites.Read.All または Sites.ReadWrite.All 権限が付与されていることを確認します。****付与されていない場合、[Consent] をクリックして権限を付与します。

Replace the text after search= with the desired site name. 例として以下のスクリーンショットを参照してください。

[Run query] をクリックします。****応答結果を確認して、以下のスクリーンショットの赤いボックスの位置にあるサイト ID 値をメモします。サイト ID 値は以下の手順で使用されます。

特定のサイトにアクセスするには、以下の API 呼び出しを使用して、アプリに対して FullControl 権限を付与します。
リクエスト方法を POST に変更します。
Enter the following URL in the address bar, replacing {site-id} with the site ID value obtained in the previous step.
https://graph.microsoft.com/v1.0/sites/{site-id}/permissions

In the Request body text box, enter the following JSON, replacing {app-id} and {app-name} with the custom app's client ID and display name.
{
}

Modify permissions タブで、Sites.FullControl.All 権限が付与されていることを確認します。付与されていない場合、[Consent] をクリックして権限を付与します。

[Run query] をクリックして、リクエストを実行します。正常に実行すると、特定のサイトにおける操作が完了します。
