# Microsoft Intuneコネクターシンクレット

Microsoft Intuneコネクタthinkletsを設定して、ワークフロー内で特定のアクションを実行します。

{% hint style="info" %}
Microsoft ドキュメントの [権限](https://learn.microsoft.com/en-us/graph/api/intune-devices-manageddevice-get?view=graph-rest-1.0#permissions) セクションを参照して、必要な承認を確認してください。
{% endhint %}

## 操作: デバイス登録詳細を取得 <a href="#microsoftoutlookconnectorthinklet-action-sendanemailtoonerecipient" id="microsoftoutlookconnectorthinklet-action-sendanemailtoonerecipient"></a>

**デバイス登録詳細を取得** は、Microsoft Intune がデバイスを管理していることを確認し、Microsoft Intune デバイスのプロパティを取得します。 これらのプロパティには、管理デバイスID、登録タイプ、登録日時、および所有権タイプが含まれます。

Microsoft Intune コネクタ Thinklet は、Microsoft Graph が提供する [Get managedDevice](https://learn.microsoft.com/en-us/graph/api/intune-devices-manageddevice-get?view=graph-rest-1.0) API エンドポイントに依存しています。

<figure><img src="/files/P5nCWSSAZ9KMNnFlTqHm" alt="" width="375"><figcaption></figcaption></figure>

* **パラメーター**
  * **デバイス名**: プロパティを取得したいデバイス。
* **出力**
  * **ID (**`ManagedDeviceId`**):** デバイスが Microsoft Intune に存在することを示す管理デバイス ID。
  * **登録タイプ (**`EnrollmentType`**):** ユーザー駆動型の登録、Entra ID 登録、その他のようなデバイス登録タイプを示します。
  * **登録日時 (**`EnrollmentDateTime`**):** デバイスが Microsoft Intune に登録された時間と日付。
  * **所有権タイプ (**`OwnershipType`**):** このデバイスが個人、企業、または不明な人物のいずれに所属するかを示します。

以下の表は、コネクタを再作成する際に必要な API サービスコネクタの詳細を示しています。

<table><thead><tr><th width="272">フィールド</th><th>値</th><th data-hidden></th></tr></thead><tbody><tr><td>リソースパス</td><td><code>/deviceManagement/managedDevices?$filter=(deviceName eq '{{DeviceName}}')&#x26;$select=id,enrolledDateTime,deviceEnrollmentType,managedDeviceOwnerType</code></td><td></td></tr><tr><td>メソッド</td><td>GET</td><td></td></tr><tr><td>ペイロード</td><td></td><td></td></tr><tr><td>出力</td><td><p><code>EnrollmentType $.value[0].deviceEnrollmentType EnrollmentDateTime $.value[0].enrolledDateTime ManagedDeviceId $.value[0].id</code></p><p><code>OwnershipType $.value[0].managedDeviceOwnerType</code></p></td><td></td></tr></tbody></table>

## 操作: **デバイスのコンプライアンス状態を取得** <a href="#microsoftoutlookconnectorthinklet-action-sendanemailtotworecipients" id="microsoftoutlookconnectorthinklet-action-sendanemailtotworecipients"></a>

**デバイスのコンプライアンス状態を取得** は、管理デバイスのコンプライアンスの状態と詳細を取得します。 これらの詳細には、デバイスのコンプライアンス状態とデバイスの暗号化状態が含まれています。

Microsoft Intune コネクタ Thinklet は、Microsoft Graph が提供する [Get managedDevice](https://learn.microsoft.com/en-us/graph/api/intune-devices-manageddevice-get?view=graph-rest-1.0) API エンドポイントに依存しています。

<figure><img src="/files/KzZqKUmcvYCAwfixv5NL" alt="" width="375"><figcaption></figcaption></figure>

* **パラメータ**
  * **デバイス名**: プロパティを取得したいデバイス。
* **出力**
  * **デバイスコンプライアンス状態 (**`DeviceComplianceState`**):** デバイスが Microsoft Intune ポリシーに準拠しているかどうかを示します。
  * **デバイス暗号化状態 (**`DeviceEncryptionState`**):** デバイスが暗号化されているかどうかを示します。

以下の表は、コネクタを再作成する際に必要なAPIサービスコネクタの詳細を示しています:

<table><thead><tr><th width="272">フィールド</th><th>値</th><th data-hidden></th></tr></thead><tbody><tr><td>リソースパス</td><td><code>/deviceManagement/managedDevices?$filter=(deviceName eq '{{DeviceName}}')&#x26;$select=complianceState,jailBroken,isEncrypted</code></td><td></td></tr><tr><td>メソッド</td><td>GET</td><td></td></tr><tr><td>ペイロード</td><td></td><td></td></tr><tr><td>出力</td><td><code>DeviceComplianceState $.value[0].complianceState DeviceEncryptionState $.value[0].isEncrypted</code></td><td></td></tr></tbody></table>

コネクタ Thinklets に関する詳細については、[コネクタ Thinklets の設定](/platform/ja/user-guide/workflows/creating-workflows/configuring-connector-thinklet.md) ドキュメンテーションを参照してください。


---

# 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/user-guide/workflows/creating-workflows/configuring-connector-thinklet/microsoft-intune-connector-thinklet.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.
