> 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/to/app-categories.md).

# アプリカテゴリ

RealmJoin Portal でテナントのアプリ カテゴリを管理し、RealmJoin Tray と Intune Company Portal でパッケージをグループ化するために使用します。

アプリのカテゴリによって、エンドユーザーがどの見出しの下でパッケージを見るかが決まります。RealmJoin Portal は Tenant ごとに 1 つのカテゴリ一覧を保持し、両方のデプロイ方法でそれを使用します:

* **RealmJoin のデプロイ:** カテゴリはパッケージの **グループ名です**。 [RealmJoin Tray](https://docs.realmjoin.com/ja/realmjoin-agent/client-menu/realmjoin-tray.md) メニューでは、そのグループの下にパッケージが一覧表示され、 **カテゴリ** フィルターは [App Catalog](https://docs.realmjoin.com/ja/realmjoin-agent/client-menu/self-service-portal.md#app-catalog-tab) でそれに基づいて絞り込みます。各パッケージにはグループ名がちょうど 1 つあります。トレイ メニューでは、グループ名のないパッケージは **その他**.
* **Intune のデプロイ:** カテゴリは Intune のアプリカテゴリ（`mobileAppCategory` in Microsoft Graph）としてアプリに割り当てられたものです。Company Portal はそれらを使ってアプリを絞り込みます。Intune アプリには複数のカテゴリを持たせることができます。

一覧は **Settings** > **App Categories**.

<figure><img src="https://3438325150-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MkrcM7cKOpXKri1kVrh%2Fuploads%2Fgit-blob-e58b4e4a5a59b096b7a3015b5ff742c91ce3332a%2Fsettings-app-categories.png?alt=media" alt="App Categories tab in the RealmJoin Portal settings with New Category, Rename and Delete buttons"><figcaption><p>App Categories タブ</p></figcaption></figure>

## 一覧の取得元

この一覧は、RealmJoin に Tenant 用に保存されているカテゴリと、Tenant の Intune にあるすべてのアプリカテゴリを、大文字小文字を区別せずに比較したものの和集合です。したがって、Intune で直接作成したカテゴリもここに表示されます。

Tenant にまだカテゴリが保存されていない場合、RealmJoin Portal は最初に読み込まれたときに次から一覧を補完します:

* Tenant の RealmJoin パッケージのグループ名、
* Package Store のカテゴリ（Tenant にすでに RealmJoin パッケージがある場合のみ）、
* Intune のアプリカテゴリ。

{% hint style="info" %}
Intune のアプリカテゴリは Graph 権限 `DeviceManagementApps.ReadWrite.All`で読み書きされます。これがない場合、一覧には RealmJoin に保存されているカテゴリのみが含まれ、カテゴリの削除は失敗します。Tenant で Intune デプロイが有効な場合、名前の変更にはこの権限が必要です。
{% endhint %}

## カテゴリを追加

{% stepper %}
{% step %}

### 一覧を開く

次へ移動して **Settings** > **App Categories**.
{% endstep %}

{% step %}

### カテゴリを作成します

次を選択 **新しいカテゴリ**で、名前（最大 127 文字）を入力して **送信**.
{% endstep %}
{% endstepper %}

名前は大文字小文字を区別せずに比較されます。既存のカテゴリと大文字小文字だけが異なるカテゴリは追加できません。

新しいカテゴリは RealmJoin のみに保存されます。対応する Intune のアプリカテゴリは、そのカテゴリが Intune アプリに最初に割り当てられたときに作成されます。

## カテゴリ名を変更

次を選択 **名前を変更** をカテゴリの横で行い、新しい名前を入力して **送信**を選択します。RealmJoin Portal は次の順序で名前を変更します:

1. 対応する Intune のアプリカテゴリ。Tenant で Intune デプロイが有効な場合に限ります。Intune アプリはカテゴリを ID で参照するため、カテゴリの割り当てはそのまま保持されます。
2. そのカテゴリを使用しているすべての RealmJoin パッケージのグループ名。
3. RealmJoin に保存されているカテゴリ一覧。

<figure><img src="https://3438325150-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MkrcM7cKOpXKri1kVrh%2Fuploads%2Fgit-blob-1d7190cd18b3673653566fb6f0b17ee23a84df42%2Fapp-categories-rename.png?alt=media" alt="Rename Category dialog"><figcaption><p>カテゴリ名変更ダイアログ</p></figcaption></figure>

3 つのストアは 1 つのトランザクションでは更新されません。手順のいずれかが失敗した場合、古い名前は一覧に残ります。もう一度名前を変更すると、残りの手順が完了します。

新しい名前のカテゴリがすでに存在する場合、またはそのカテゴリが組み込みの Intune カテゴリ（Intune が作成する既定値の 1 つで、変更できないもの）の場合、名前の変更は拒否されます。各名前変更は [Audit Log](https://docs.realmjoin.com/ja/torogu/audit-log.md) と、変更された RealmJoin パッケージの数とともに記録されます。

## カテゴリを削除

次を選択 **削除** をカテゴリの横で実行し、 **削除を確認**で確定します。カテゴリは RealmJoin に保存されている一覧から削除され、存在する場合は Intune からも削除されます。

カテゴリを使用しているパッケージがない場合にのみ、カテゴリを削除できます。削除は次の場合に拒否されます:

* RealmJoin パッケージがそのカテゴリをグループ名として使用している場合、または
* Intune アプリにそのカテゴリが割り当てられている場合、または
* そのカテゴリが組み込みの Intune カテゴリである場合。

まだそのカテゴリを使用しているパッケージがある場合、メッセージには最初に見つかったパッケージ名が表示されます。削除する前に、そのカテゴリを使用しているすべてのパッケージに別のカテゴリを割り当てるか、 [名前を変更するか](#rename-a-category) 、代わりにそのカテゴリを変更してください。

## パッケージにカテゴリを割り当てる

### パッケージにサブスクライブするとき

Package Store からパッケージをサブスクライブすると、 [Package Store](https://docs.realmjoin.com/ja/apurikshon/packages/package-store/package-store-details.md#app-categories)のサブスクリプション ダイアログで、カテゴリ一覧から選択できます:

* **RealmJoin のデプロイ:** 1 つ選択 **グループ名です**.
* **Intune のデプロイ:** 1 つ以上選択 **カテゴリ**.

### 既存のパッケージの場合

次を開きます [パッケージの詳細](https://docs.realmjoin.com/ja/apurikshon/packages/package-details.md) 、 **詳細設定**:

* **RealmJoin パッケージ:** を選択してください **グループ名です**。こちらも参照してください [詳細設定](https://docs.realmjoin.com/ja/apurikshon/packages/package-settings.md#expert-settings) このダイアログの他の設定については。
* **Intune アプリ:** 追加または削除 **カテゴリ**します。Intune にまだ存在しない選択済みカテゴリは、保存時に作成されます。

<figure><img src="https://3438325150-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MkrcM7cKOpXKri1kVrh%2Fuploads%2Fgit-blob-784d96e77fd5f8be8ae0e2928147eb5fadbd2389%2Fapp-categories-group-name.png?alt=media" alt="Group name field in the expert settings of a RealmJoin package"><figcaption><p>RealmJoin パッケージのグループ名</p></figcaption></figure>

<figure><img src="https://3438325150-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MkrcM7cKOpXKri1kVrh%2Fuploads%2Fgit-blob-61a60d58944df5bda46022e077cd3a1b9f0bbfff%2Fapp-categories-intune-expert-settings.png?alt=media" alt="Categories field in the expert settings of an Intune app"><figcaption><p>Intune アプリのカテゴリ</p></figcaption></figure>

## アクセス許可

| アクション           | 権限                                                                                                                         | 事前定義されたロール            |
| --------------- | -------------------------------------------------------------------------------------------------------------------------- | --------------------- |
| カテゴリ一覧を表示       | [`CanReadAppCategories`](https://docs.realmjoin.com/ja/to/permission/custom-roles/available-permissions.md#app-categories) | Admin, Auditor        |
| カテゴリを追加、名前変更、削除 | [`CanEditAppCategories`](https://docs.realmjoin.com/ja/to/permission/custom-roles/available-permissions.md#app-categories) | Admin                 |
| 単一パッケージのカテゴリを変更 | [`CanEditAppExpertSettings`](https://docs.realmjoin.com/ja/to/permission/custom-roles/available-permissions.md)            | Admin, Software Agent |


---

# 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/to/app-categories.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.
