> 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/zi-dong-hua/runbooks/runbook-references/org/general/office365-license-report.md).

# Office 365 ライセンス レポート

### 説明

この runbook は、Microsoft 365 サブスクリプション SKU に基づくライセンス レポートを作成し、必要に応じて Exchange Online 関連レポートも含めます。結果を Azure Storage にエクスポートし、ダウンロード用の SAS リンクを生成できます。

### 場所

Organization → General → Office365 ライセンス レポート

**Runbook の完全名**

rjgit-org\_general\_office365-license-report

### 詳細

| プロパティ    | 値                                                                                                          |
| -------- | ---------------------------------------------------------------------------------------------------------- |
| バージョン    | 1.1.3                                                                                                      |
| 必要なモジュール | <p>RealmJoin.RunbookHelper (>= 0.8.9)<br>Az.Accounts (>= 5.5.2)<br>ExchangeOnlineManagement (>= 3.9.2)</p> |
| スケジュール可能 | いいえ                                                                                                        |

### アクセス許可

#### アプリケーションのアクセス許可

* **種類**：Microsoft Graph
  * Reports.Read.All
    * *Office 365 の使用状況およびアクティビティ レポートの CSV を /reports から取得します*
  * Directory.Read.All
    * */subscribedSkus とグループのライセンス割り当てを読み取り、SKU の概要を表示します*
  * User.Read.All
    * *ユーザーを一覧表示し、ユーザーごとのレポート用にライセンスの詳細を読み取ります*
  * ReportSettings.ReadWrite.All
    * *includeUserData が有効な場合、一時的に非表示のレポート名を無効にし、その後設定を復元します*
  * AuditLog.Read.All *(オプション — 機能: サインイン エクスポート)*
    * *exportToFile が有効な場合（既定で有効）、アプリケーションごとのサインイン エクスポートのために /auditLogs/signIns を読み取ります*
* **種類**：Office 365 Exchange Online
  * Exchange.ManageAsApp *(オプション — 機能: Exchange ライセンス レポート)*
    * *includeExchange が有効な場合、共有メールボックスのライセンス レポートのために Get-EXOMailbox を実行します*

#### RBAC ロール

* Exchange 管理者
  * *includeExchange が有効な場合に、アプリのみの Exchange Online セッションに必要です*

### パラメーター

#### printOverview

true に設定すると、短いライセンス使用状況の概要を出力します。

| プロパティ | 値    |
| ----- | ---- |
| 必須    | いいえ  |
| 既定値   | はい   |
| 種類    | ブール値 |

#### includeExchange

true に設定すると、Exchange Online 関連のレポート（共有メールボックスのライセンス）を含めます。

| プロパティ | 値     |
| ----- | ----- |
| 必須    | いいえ   |
| 既定値   | False |
| 種類    | ブール値  |

#### includeUserData

true に設定すると、Microsoft 365 のレポート プライバシー設定が一時的に無効化され（現在有効な場合）、Graph のアクティビティ レポートに UPN などの実際のユーザーデータを含められるようになります。設定は実行後、常に元の状態に復元されます。注: このオプションを有効にすると、エクスポートされたレポート内に個人を特定できる情報（UPN）が公開されます。使用前に、組織のデータ保護ポリシーへの準拠を確認してください。

| プロパティ | 値     |
| ----- | ----- |
| 必須    | いいえ   |
| 既定値   | False |
| 種類    | ブール値  |

#### exportToFile

true に設定すると、構成されている場合にレポートを Azure Storage にエクスポートします。

| プロパティ | 値    |
| ----- | ---- |
| 必須    | いいえ  |
| 既定値   | はい   |
| 種類    | ブール値 |

#### exportAsZip

true に設定すると、レポートを 1 つの ZIP ファイルとしてエクスポートします。

| プロパティ | 値     |
| ----- | ----- |
| 必須    | いいえ   |
| 既定値   | False |
| 種類    | ブール値  |

#### produceLinks

true に設定すると、エクスポートされた成果物の SAS トークン/リンクを作成します。

| プロパティ | 値    |
| ----- | ---- |
| 必須    | いいえ  |
| 既定値   | はい   |
| 種類    | ブール値 |

#### ContainerName

アップロードに使用するストレージ コンテナー名。

| プロパティ | 値                        |
| ----- | ------------------------ |
| 必須    | いいえ                      |
| 既定値   | rjrb-licensing-report-v2 |
| 種類    | 文字列                      |

#### ResourceGroupName

ストレージ アカウントを含むリソース グループ。

| プロパティ | 値   |
| ----- | --- |
| 必須    | いいえ |
| 既定値   |     |
| 種類    | 文字列 |

#### StorageAccountName

アップロードに使用する Storage Account 名です。このレポートを実行する前に、アカウントが存在している必要があります。

| プロパティ | 値   |
| ----- | --- |
| 必須    | いいえ |
| 既定値   |     |
| 種類    | 文字列 |

#### サブスクリプション ID

ストレージ操作に使用する Azure サブスクリプション ID。

| プロパティ | 値   |
| ----- | --- |
| 必須    | いいえ |
| 既定値   |     |
| 種類    | 文字列 |

[Runbook Reference の概要に戻る](/ja/zi-dong-hua/runbooks/runbook-references.md)


---

# 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.realmjoin.com/ja/zi-dong-hua/runbooks/runbook-references/org/general/office365-license-report.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.
