> 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/mail/add-shared-mailbox.md).

# 共有メールボックスの追加

### 説明

このスクリプトは、Exchange Online に共有メールボックスを作成し、代理アクセス、自動マッピング、メッセージのコピー オプションなどのさまざまな設定を構成します。また、指定された場合は、関連付けられた Entra ID ユーザー アカウントを無効にします。

### 場所

組織 → メール → 共有メールボックスの追加

**Runbook の完全名**

rjgit-org\_mail\_add-shared-mailbox

### 詳細

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

### アクセス許可

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

* **種類**：Office 365 Exchange Online
  * Exchange.ManageAsApp
    * *共有メールボックスを作成し、アプリ専用の Exchange Online セッションで代理アクセスと地域設定を設定します*
* **種類**：Microsoft Graph
  * User.ReadWrite.All *(オプション — 機能: ユーザー アカウントの無効化)*
    * *DisableUser が有効な場合（既定で有効）、PATCH /users/{id} を使用してメールボックスのユーザー アカウントを無効化します*

#### RBAC ロール

* Exchange 管理者
  * *共有メールボックスを作成するアプリ専用の Exchange Online セッションに必要です*

### パラメーター

#### MailboxName

共有メールボックスのエイリアス（メールボックス名）。

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

#### DisplayName

共有メールボックスの表示名。

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

#### ドメイン名

プライマリ SMTP アドレスに使用する任意のドメイン。指定しない場合は、既定のドメインが使用されます。

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

#### 言語

共有メールボックスの言語/ロケール。これは「受信トレイ」などのフォルダー名に影響します。既定は「en-US」です。

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

**ポータルのオプション**

| ポータルオプション | 値     |
| --------- | ----- |
| en-US     | en-US |
| de-DE     | de-DE |
| fr-FR     | fr-FR |

#### タイムゾーン

共有メールボックスのタイムゾーン。既定は「W. Europe Standard Time」です。

| プロパティ | 値                       |
| ----- | ----------------------- |
| 必須    | いいえ                     |
| 既定値   | W. Europe Standard Time |
| 種類    | 文字列                     |

**ポータルのオプション**

| ポータルオプション                      | 値                              |
| ------------------------------ | ------------------------------ |
| W. Europe Standard Time        | W. Europe Standard Time        |
| Central Europe Standard Time   | Central Europe Standard Time   |
| E. Europe Standard Time        | E. Europe Standard Time        |
| GMT Standard Time              | GMT Standard Time              |
| UTC                            | UTC                            |
| Eastern Standard Time          | Eastern Standard Time          |
| Central Standard Time          | Central Standard Time          |
| Mountain Standard Time         | Mountain Standard Time         |
| Pacific Standard Time          | Pacific Standard Time          |
| Alaska Standard Time           | Alaska Standard Time           |
| Hawaiian Standard Time         | Hawaiian Standard Time         |
| China Standard Time            | China Standard Time            |
| Tokyo Standard Time            | Tokyo Standard Time            |
| Korea Standard Time            | Korea Standard Time            |
| India Standard Time            | India Standard Time            |
| Arabian Standard Time          | Arabian Standard Time          |
| AUS Eastern Standard Time      | AUS Eastern Standard Time      |
| New Zealand Standard Time      | New Zealand Standard Time      |
| Romance Standard Time          | Romance Standard Time          |
| Russian Standard Time          | Russian Standard Time          |
| SA Pacific Standard Time       | SA Pacific Standard Time       |
| SE Asia Standard Time          | SE Asia Standard Time          |
| Singapore Standard Time        | Singapore Standard Time        |
| South Africa Standard Time     | South Africa Standard Time     |
| Turkey Standard Time           | Turkey Standard Time           |
| Argentina Standard Time        | Argentina Standard Time        |
| Atlantic Standard Time         | Atlantic Standard Time         |
| Canada Central Standard Time   | Canada Central Standard Time   |
| E. South America Standard Time | E. South America Standard Time |
| FLE Standard Time              | FLE Standard Time              |
| Israel Standard Time           | Israel Standard Time           |
| Middle East Standard Time      | Middle East Standard Time      |
| Nepal Standard Time            | Nepal Standard Time            |
| West Pacific Standard Time     | West Pacific Standard Time     |

#### DelegateTo

メールボックスへの委任アクセスを受け取る任意のユーザー。

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

#### AutoMapping

true に設定すると、委任先の Outlook にメールボックスが自動的にマップされます。

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

#### MessageCopyForSentAsEnabled

これを true に設定すると、メールボックスとして送信されたメッセージのコピーが、そのメールボックスの送信済みアイテムに保存されます。

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

#### MessageCopyForSendOnBehalfEnabled

これを true に設定すると、メールボックスの代理で送信されたメッセージのコピーが、そのメールボックスの送信済みアイテムに保存されます。

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

#### DisableUser

true に設定すると、関連付けられた Entra 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/mail/add-shared-mailbox.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.
