> For the complete documentation index, see [llms.txt](https://docs.scepman.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.scepman.com/ja/scepman-gou-cheng/device-directories.md).

# デバイス ディレクトリ

SCEPman は、デバイス証明書（たとえば OCSP リクエスト用）を検証するための 2 つの選択肢を提供します。両方のディレクトリには、SCEPman が存在を確認する異なる ID を持つデバイス オブジェクトが格納されています：

* Microsoft Entra ID (Azure AD) のデバイス ID
* Intune（Intune デバイス ID）

これらの ID は、Intune の各デバイスの「ハードウェア」タブで確認できます：

![](https://114237723-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LoGejQeUQcw7lqnQ3WX%2Fuploads%2Fgit-blob-d44ef355496196be88c70825db9d9249a4258254%2Fimage.png?alt=media)

発行済み証明書の背後にあるデバイスを識別するために、SCEPman には対応する **サブジェクト名内の ID が必要です**:

* Microsoft Entra ID (Azure AD)： `CN={{AAD_Device_ID}}`
* Intune： `CN={{DeviceId}}`

Intune で SCEPman と証明書プロファイルを設定する際には、 **どのインベントリを使用するかを決めることが重要です**.

### Entra ID 対 Intune

両方のディレクトリには長所と短所があります。一般的には、私たちは **Intune を推奨します** インベントリとして：

* **Entra Device ID は登録中に変更されることがあります（iOS/iPadOS/macOS で見られます）**：\
  デバイスが最終的に Entra ID に登録されるまでは、Entra Device ID は Intune デバイス ID に設定されます。Intune は、デバイスが最終的な ID を取得する前にすでに証明書を発行します。その結果、この ID 変更後、SCEPman は Entra ID 内でデバイスを見つけられません。
* **Intune の方が Entra ID よりも管理が行き届いていることが多いです**：\
  理論上、Entra ID と Intune のデバイス オブジェクトは互いに独立しています。Intune でデバイスを削除しても、対応する Entra ID オブジェクトは削除されません。さらに、Autopilot デバイスは Intune でのみ削除でき、Microsoft Entra ID では削除できないため、証明書は引き続き有効です。

### SCEPman の構成

SCEPman は、検証にどのディレクトリを使用するかを知る必要があります。そのため、次の構成オプションを提供しています[Intune 検証](/ja/scepman-gou-cheng/application-settings/scep-endpoints/intune-validation.md#appconfig-intunevalidation-devicedirectory)。必要に応じてその値を調整してください。

### 証明書プロファイル

また、以下で説明しているように、必要に応じてサブジェクト名も調整してください [Microsoft Intune](/ja/zheng-ming-shu-guan-li/microsoft-intune.md).

なお、 `CN={{DeviceId}}` 現在、Android Enterprise Fully Managed、Dedicated、Corporate-Owned Work Profile ではサポートされていません。以下の [Microsoft のドキュメント](https://docs.microsoft.com/en-us/mem/intune/protect/certificates-profile-scep#create-a-scep-certificate-profile)。これらのデバイスタイプを使用している場合は、両方のディレクトリを確認するか、Microsoft Entra ID のみを確認することを検討してください。

〜のために **移行する** Microsoft Entra ID から Intune ID へ、またはその逆へ、 **証明書** 〜する必要があります **すべてのクライアントで再発行される必要があります**。その変更の間は、SCEPman を以下で構成してください [Intune 検証](/ja/scepman-gou-cheng/application-settings/scep-endpoints/intune-validation.md#appconfig-intunevalidation-devicedirectory) 両方のディレクトリを確認するようにしてください（両方の ID が有効になるように）。移行後は、Intune または Entra ID のどちらか一方のディレクトリに切り替えることができます。


---

# 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.scepman.com/ja/scepman-gou-cheng/device-directories.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.
