> For the complete documentation index, see [llms.txt](https://docs.konnekt.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.konnekt.io/ja/installation/security/grant-admin-consent-in-enterprise-applications.md).

# Tenant 全体への管理者同意を付与

{% hint style="warning" %}
管理者の同意を行う必要があります **前に** 通常ユーザーで KONNEKT を使用する際に。
{% endhint %}

## 背景

KONNEKT は Microsoft 365 の複数の API と連携するアプリケーションです。そのため、KONNEKT が接続したい各 Microsoft 365 テナントで、そのための権限が必要です。この権限の 1 つのレベル（ただし唯一ではありません）が、Microsoft Entra ID（旧 Azure AD）における Enterprise App Consent です。これは、クライアント種別に対するネットワークベースやプロキシベースのアクセス制御といった従来の方法に対する大きな利点です。あらゆる場所で機能し、非常にきめ細かな権限設定が可能だからです。

KONNEKT の管理者の同意は「委任されたアクセス」のみです（詳細は [Microsoft のドキュメント](https://learn.microsoft.com/en-us/azure/active-directory/develop/permissions-consent-overview#access-scenarios) で権限と同意の詳細をご確認ください）。これは基本的に、このテナントのユーザーが、このアプリを使って要求された M365 サービス/API にアクセスできることを意味します。これは **機能しません** アプリがユーザーなしでアクセスできるようにするものではありません。

### 権限セット: バージョン 2.10 以前

KONNEKT は以下の権限への同意を要求します:

<table><thead><tr><th width="146.5">API 名</th><th>クレーム値</th><th>権限</th></tr></thead><tbody><tr><td>Microsoft Graph</td><td>User.Read</td><td>サインインしてユーザープロファイルを読み取る</td></tr><tr><td>Office 365 SharePoint Online</td><td>AllSites.Write</td><td>すべてのサイト コレクション内のアイテムの読み取りと書き込み</td></tr><tr><td>Office 365 SharePoint Online</td><td>MyFiles.Write</td><td>ユーザーのファイルの読み取りと書き込み</td></tr><tr><td>Windows Azure Active Directory</td><td>Directory.AccessAsUser.All</td><td>サインインしているユーザーとしてディレクトリにアクセスする</td></tr><tr><td>Windows Azure Active Directory</td><td>User.Read</td><td>サインインしてユーザープロファイルを読み取る</td></tr></tbody></table>

### 権限セット: バージョン 2.10 以降

{% hint style="warning" %}
設定「[**EnhancedOAuth**](/ja/configuration/system-settings/enhanced-authentication.md)」が有効な場合にのみ機能します！
{% endhint %}

<table><thead><tr><th width="146.5">API 名</th><th>クレーム値</th><th>権限</th></tr></thead><tbody><tr><td>Microsoft Graph</td><td>Files.ReadWrite.All</td><td>ユーザーがアクセスできるすべてのファイルにフルアクセスする</td></tr><tr><td>Microsoft Graph</td><td>Sites.Read.All</td><td>すべてのサイト コレクション内のアイテムを読み取る</td></tr><tr><td>Microsoft Graph</td><td>User.Read</td><td>サインインしてユーザープロファイルを読み取る</td></tr><tr><td>Office 365 SharePoint Online</td><td>AllSites.Read</td><td>すべてのサイト コレクション内のアイテムを読み取る</td></tr></tbody></table>

[一部の権限は管理者による同意が必要なため](https://learn.microsoft.com/en-us/graph/permissions-reference)、通常ユーザーで KONNEKT を使用する前に管理者の同意を行う必要があります。

詳細については [Microsoft のドキュメントで、アプリケーションへの同意の管理と同意要求の評価について学べます](https://learn.microsoft.com/en-us/azure/active-directory/manage-apps/manage-consent-requests).

## Microsoft Entra ID の Enterprise Applications に KONNEKT の権限を追加する

管理者として（または管理者の同意を付与できるロールを持つ場合）、テナント全体に対する管理者の同意を付与できます。 **KONNEKT** 次の「Magic URL」を使用して:

KONNEKT バージョンまでのアプリ登録 URL **2.9.1** およびそれ以前:

```
https://login.microsoftonline.com/{tenant-id}/adminconsent?client_id=fbaaaa6a-1ad0-4ac5-9c4c-4ce9353dc6cf
```

KONNEKT バージョン以降のアプリ登録 URL **2.10** およびそれ以降:

```
https://login.microsoftonline.com/{tenant-id}/adminconsent?client_id=11fa31bb-2024-4f49-8b38-f458d596a81a
```

したがって、必要なのは`tenant-id`これは次から取得します **Azure Portal** の **Microsoft Entra ID:**

![](/files/22fd2bf02c960dfdc0a09660202aaba0c9c29da5)

{% hint style="info" %}
次を削除するのを忘れないでください `{}` リンクから
{% endhint %}

**その後:**

1. リンクを開きます。
2. 管理者アカウント（または管理者の同意を付与できるロールを持つアカウント）でログインします。
3. KONNEKT の権限要求を承認します。
4. 完了！

{% hint style="info" %}
次が表示されても **ページが見つかりません** 同意を承認した後でも、無視してください。ここでは意味がありません。
{% endhint %}

確認するには **KONNEKT** 権限は次で確認できます **Microsoft Entra ID** の **エンタープライズ アプリケーション** -> **権限**

<figure><img src="/files/01d1bd18b1b8eafee4a62b0d64c4f060978a6e9e" alt=""><figcaption></figcaption></figure>

管理者の同意の詳細については次を参照してください [MS.Docs](https://docs.microsoft.com/en-us/azure/active-directory/manage-apps/grant-admin-consent)

## Microsoft Entra ID の Enterprise Applications から KONNEKT の権限を削除する

KONNEKT の管理者の同意を削除したい場合は、次の手順を実行してください:

1. 次にサインインします **Azure Portal** 管理者の同意を削除できるロールで。
2. 選択します **Microsoft Entra ID** 次に **Enterprise applications。**
3. を探して **Konnekt** それをクリックします。
4. 選択します **プロパティ。**
5. **削除**、そして削除を確認します。

<figure><img src="/files/37388a59a94a5c1aedd942209c79315e155b1b3f" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.konnekt.io/ja/installation/security/grant-admin-consent-in-enterprise-applications.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
