> For the complete documentation index, see [llms.txt](https://docs.realmjoin.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.realmjoin.com/ja/zhan-kai/infrastructure/limiting-the-scope-of-realmjoin-portal.md).

# RealmJoin Portal のスコープを制限する

RealmJoin での管理単位の使用

RealmJoin Portal はサポートしています [Microsoft Entra ID の管理単位 (AU)](https://learn.microsoft.com/en-us/entra/identity/role-based-access-control/administrative-units).

### 制限付き管理の管理単位

RealmJoin から一部の機密グループを非表示/保護するには、次を作成できます **Microsoft Entra ID 内の制限付き管理の管理単位**。その制限付き AU を作成した後、 **機密グループ** をその AU に割り当て、これらのグループを RealmJoin Portal から（および RealmJoin Portal を使用するすべての人から）「非表示」にできます。\
これは次の対象にとって良いアイデアです **高機密グループ** 。たとえば、権限/ロールの付与に使用されるグループや、特定の Conditional Access ポリシーなどからユーザーを除外するためのグループです。\
ユーザーとアプリケーションは **明示的に付与/追加される必要があります** 制限付き管理 AU によって「保護」されているグループとやり取りできるようにするには、AU のスコープに含まれている必要があります。

制限付き管理の管理単位を利用するには、 **RealmJoin で必要な設定はありません**.

* Microsoft Entra ID の制限付き管理の管理単位について詳しく読むことができます [こちら](https://learn.microsoft.com/en-us/entra/identity/role-based-access-control/admin-units-restricted-management).
* 制限付き AU を作成するには、Microsoft のガイドに従ってください [こちら](https://learn.microsoft.com/en-us/entra/identity/role-based-access-control/admin-units-manage?tabs=admin-center).
* 保護したいグループを制限付き AU に追加し、さらにこれらのグループとやり取りすることを許可したい管理者を追加するには、このガイドを参照してください [こちら](https://learn.microsoft.com/en-us/entra/identity/role-based-access-control/admin-units-members-add?tabs=admin-center).

### RealmJoin Portal に専用の管理単位を割り当てる

RealmJoin Portal を完全に「カプセル化」するには、専用の AU（既定の非制限）を作成し、RealmJoin Portal アプリをその AU に割り当てます。\
その結果、RealmJoin Portal はその特定の AU 内でのみグループを作成し、この AU の対象範囲に明示的に含まれるグループとのみやり取りできます。

* AU を作成するには、 [Microsoft のガイド](https://learn.microsoft.com/en-us/entra/identity/role-based-access-control/admin-units-manage?tabs=admin-center)
* RealmJoin が引き続きこれらのグループとやり取りできるように、グループを AU のスコープに追加するには、 [このガイド](https://learn.microsoft.com/en-us/entra/identity/role-based-access-control/admin-units-members-add?tabs=admin-center)
* 管理単位スコープのロールを割り当てるには、 [このガイド](https://learn.microsoft.com/en-us/entra/identity/role-based-access-control/manage-roles-portal?tabs=admin-center#assign-roles-with-administrative-unit-scope)

#### RealmJoin で Administrative Units を使用できるようにする

1. Entra で AU を作成します（既定、非制限）。
2. AU で、ロール「Group Administrator」を RealmJoin Portal アプリ（Application ID: "b0130885-16be-4c6f-83de-5b1042b5d2e3"）に永続的に割り当てます。
3. Microsoft Graph API の権限 `"AdministrativeUnit.Read.All"` （種類 "Application"）を RealmJoin Portal アプリ（Application ID: "b0130885-16be-4c6f-83de-5b1042b5d2e3"）に追加します。
4. 特にすでに RealmJoin Portal を使用している場合は、RealmJoin がやり取りできるようにすべてのグループを AU のスコープに移動してください（例: 既存のアプリ グループや権限グループ）。
5. チケットを作成し、 [RealmJoin Support](https://www.realmjoin.com/help/) 作成した AU の ObjectID を提供してください。
6. RealmJoin Support による確認をお待ちください。
7. これで、次のアプリケーション権限を RealmJoin Portal アプリ（Application ID: "b0130885-16be-4c6f-83de-5b1042b5d2e3"）から安全に削除できます。これらは AU 対応ではないためです:\
   \
   `"Group.ReadWrite.All"` & `"GroupMember.ReadWrite.All"`\
   \
   代わりに Entra のロール「Group Administrator」が使用されます。事前にそのロールを追加していることを確認してください（手順 2）。

{% hint style="info" %}
Microsoft Graph API の権限の追加/削除は Graph 経由でのみ行えることに注意してください！

次の場所にある Grant-Script を使用できます [RealmJoin Portal の機能ページ](https://portal.realmjoin.com/organization/features) 以下に示すものを使って次のものを追加できます `"AdministrativeUnit.Read.All"` 権限。

* スクリプトをコピーし、印の付いた $permissions セクションに権限を追加し、スクリプトを実行して、Portal で実行を確認してください。
* RealmJoin は新しい権限を自動的に確認し、付与済みセクションに表示します。
* 削除については `"Group.ReadWrite.All"` & `"GroupMember.ReadWrite.All"` 権限の横にある「Revoke」オプションを使用して、その特定の権限専用のスクリプトを生成できます。
  {% endhint %}

<figure><img src="https://3438325150-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MkrcM7cKOpXKri1kVrh%2Fuploads%2FchTHXBjBQhCOmcWhxvUi%2FUntitled%20picture.png?alt=media&amp;token=92c288d7-4d82-489d-9e81-13f68df6b67d" 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.realmjoin.com/ja/zhan-kai/infrastructure/limiting-the-scope-of-realmjoin-portal.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
