> 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/user/mail/set-out-of-office.md).

# 不在通知を設定

### 説明

メールボックスの自動返信を構成し、必要に応じて不在時のカレンダー イベントを作成できます。この runbook では、内部メッセージと外部メッセージを含むスケジュール済み返信を有効化するか、既存の Out of Office 設定を無効化できます。

### 場所

ユーザー → メール → Out Of Office を設定

**Runbook の完全名**

rjgit-user\_mail\_set-out-of-office

### 詳細

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

### アクセス許可

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

* **種類**：Office 365 Exchange Online
  * Exchange.ManageAsApp
    * *アプリ専用の Exchange Online セッションで Get-/Set-MailboxAutoReplyConfiguration を実行します*

#### RBAC ロール

* Exchange 管理者
  * *自動返信設定を変更するアプリ専用の Exchange Online セッションに必要です*

### パラメーター

#### ユーザー名

メールボックスのユーザー プリンシパル名。この値はポータルによって自動入力されます。

| プロパティ    | 値                        |
| -------- | ------------------------ |
| 必須       | はい                       |
| 既定値      |                          |
| 種類       | 文字列                      |
| ポータルで非表示 | はい（Runbook のカスタマイズで事前設定） |

#### 無効化

Out of Office 通知を有効化するか、既存の Out of Office 設定を無効化するかを選択します。

| プロパティ   | 値                        |
| ------- | ------------------------ |
| 必須      | いいえ                      |
| 既定値     | False                    |
| 種類      | ブール値                     |
| ポータル表示名 | Out of Office を有効化または無効化 |

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

| ポータルオプション          | 値 |
| ------------------ | - |
| Out of Office を有効化 |   |
| Out of Office を無効化 |   |

#### 開始

スケジュールされた Out of Office 返信の開始時刻。

| プロパティ   | 値          |
| ------- | ---------- |
| 必須      | いいえ        |
| 既定値     | (Get-Date) |
| 種類      | DateTime   |
| ポータル表示名 | 開始日        |

#### 終了

スケジュールされた Out of Office 返信の終了時刻。指定しない場合、現在の日付から 10 年後が既定値になります。

| プロパティ   | 値                                        |
| ------- | ---------------------------------------- |
| 必須      | いいえ                                      |
| 既定値     | ((Get-Date) + (New-TimeSpan -Days 3650)) |
| 種類      | DateTime                                 |
| ポータル表示名 | 終了日                                      |

#### MessageInternal

内部向けの自動返信メッセージ。

| プロパティ | 値                                  |
| ----- | ---------------------------------- |
| 必須    | いいえ                                |
| 既定値   | 申し訳ありませんが、このユーザーは現在、メッセージを受信できません。 |
| 種類    | 文字列                                |

#### MessageExternal

外部向けの自動返信メッセージ。

| プロパティ | 値                                  |
| ----- | ---------------------------------- |
| 必須    | いいえ                                |
| 既定値   | 申し訳ありませんが、このユーザーは現在、メッセージを受信できません。 |
| 種類    | 文字列                                |

#### ExternalAudience

外部の自動返信を受信する対象を制御します。None を使用すると外部返信は送信されず、Known を使用すると既知の外部連絡先のみに返信が送信され、All を使用するとすべての外部送信者に返信が送信されます。

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

#### イベントを作成

true に設定すると、Out of Office のカレンダー イベントを作成します。

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

#### EventSubject

オプションの Out of Office カレンダー イベントの件名。

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

[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/user/mail/set-out-of-office.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.
