# ワークフロー向けEntra IDの統合

Microsoft Graph APIをNexthinkプラットフォームと統合するには、2つの統合ポイントを確立する必要があります。 データモデルのユーザーテーブルにUPNを持ち込むために1つの統合ポイントが必要です。 APIの認証情報を処理するためにもう1つのインテグレーションポイントが必要です。

{% hint style="warning" %}
コネクタアクションの権限はこのページの範囲外であることに注意してください。

各コネクタアクションおよび必要な権限の詳細については、対応するAPIエンドポイントドキュメントを参照してください。
{% endhint %}

### Entra IDインテグレーション <a href="#entraidintegrationforworkflows-entraidintegration" id="entraidintegrationforworkflows-entraidintegration"></a>

ワークフローはEntra IDインテグレーションからUPN（Universal Principal Name）を利用します。 これは、NexthinkデータモデルにUPNを入力し、それを`user.ad.name`フィールドにマッピングするために必要です。 Nexthink コネクタを Entra ID に設定する詳細については、[Microsoft Azure Active Directory用コネクタ](/platform/ja/configuring_nexthink/bringing-data-into-your-nexthink-instance/integrating-nexthink-with-third-party-tools/inbound-connectors/connector-for-microsoft-entra-id-azure-ad.md)を参照してください。

このインテグレーションの結果、ユーザーUPNがNexthinkユーザーテーブルに入力されるべきです。 このユーザーUPNは、Graph APIコールを行う際にワークフローで利用されます。 以下のスクリーンショットは、Entra IDコネクタの設定例を提供し、適切に設定された場合、ユーザーテーブルがユーザー名で満たされることを示しています。

<figure><img src="/files/8MrBsyhgNLjmIfRcHfrc" alt=""><figcaption><p>認証情報設定例</p></figcaption></figure>

<figure><img src="/files/StrKopyaZpnPaIyW7hGX" alt=""><figcaption><p>フィールドマッピング例</p></figcaption></figure>

<figure><img src="/files/k6gRYTryiYPg8XfUDam2" alt=""><figcaption><p>ユーザー名がユーザーテーブルに入力されます</p></figcaption></figure>

### Graph APIコネクタインテグレーション <a href="#entraidintegrationforworkflows-graphapiconnectorintegration" id="entraidintegrationforworkflows-graphapiconnectorintegration"></a>

APIコールを有効にするためには、コネクタ資格情報を設定することが重要です。 [コネクタ資格情報](/platform/ja/configuring_nexthink/bringing-data-into-your-nexthink-instance/integrating-nexthink-with-third-party-tools/outbound-connectors/connector-credentials.md)に関する詳細情報は、ドキュメンテーションページを参照してください。 各サービス/API Thinkletには、記入が必要な認証情報のドロップダウンフィールドがあります。 ワークフローがライブラリからインストールまたはコピーされた際、このフィールドは各環境のローカル設定であるため空白になります。ライブラリには含まれません。 Entra IDアプリケーション登録のセットアップで、APIの読み取り/書き込み権限を追加することが重要です。

<figure><img src="/files/GmVUkNRjpvD6QRx6xHxW" alt=""><figcaption><p>認証情報の設定例</p></figcaption></figure>

<figure><img src="/files/U1hxhcDvIfmZRp6YvORV" alt=""><figcaption><p>認証情報フィールドが維持されたThinklet</p></figcaption></figure>

EntraアプリケーションのApplication IDは、認証情報設定ではClient IDとして維持されます。

<figure><img src="/files/aCsk5HgpWEXCD9qGXh8c" alt=""><figcaption><p>EntraアプリケーションのApplication IDは、認証情報設定ではClient IDとして維持されます</p></figcaption></figure>

<figure><img src="/files/diFCcMEaQ3X00tmAzbGV" alt=""><figcaption><p>テナントIDはアクセス トークンURLの一部として使用されます</p></figcaption></figure>

<figure><img src="/files/MQoDhBfFj3Y9jVkrk0uR" alt=""><figcaption><p>クライアントシークレットは、アプリ登録、証明書＆シークレットからコピーする必要があります</p></figcaption></figure>


---

# Agent Instructions: 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:

```
GET https://docs.nexthink.com/platform/ja/library-packs/faq/entra-id-integration-for-workflows.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
