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

# Set Out Of Office

Set or remove automatic replies for this user

### Description

Turns on automatic replies for the mailbox of this user, with separate messages for people inside and outside the organization and for a period you choose. A matching out-of-office entry can be added to the calendar. Existing automatic replies can also be switched off again; a calendar entry created earlier is not removed.

### Location

User → Mail → Set Out Of Office

**Full Runbook name**

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

### Details

| Property         | Value                                                                             |
| ---------------- | --------------------------------------------------------------------------------- |
| Version          | 1.1.0                                                                             |
| Required modules | <p>RealmJoin.RunbookHelper (>= 0.8.10)<br>ExchangeOnlineManagement (>= 3.9.2)</p> |
| Schedulable      | no                                                                                |

### Permissions

#### Application permissions

* **Type**: Office 365 Exchange Online
  * Exchange.ManageAsApp
    * *Runs Get-/Set-MailboxAutoReplyConfiguration in the app-only Exchange Online session*

#### RBAC roles

* Exchange Administrator
  * *Required for the app-only Exchange Online session changing the auto-reply settings*

### Parameters

#### UserName

User principal name of the mailbox the runbook acts on. Set by the portal from the selected user.

| Property         | Value                                  |
| ---------------- | -------------------------------------- |
| Required         | true                                   |
| Default Value    |                                        |
| Type             | String                                 |
| Hidden in portal | yes (preset via runbook customization) |

#### Disable

Enable automatic replies turns them on for the period and messages below. Disable switches existing automatic replies off.

| Property            | Value             |
| ------------------- | ----------------- |
| Required            | false             |
| Default Value       | False             |
| Type                | Boolean           |
| Portal display name | Automatic replies |

**Portal options**

| Portal option             | Value |
| ------------------------- | ----- |
| Enable automatic replies  | false |
| Disable automatic replies | true  |

#### Start

When the automatic replies begin.

| Property            | Value      |
| ------------------- | ---------- |
| Required            | false      |
| Default Value       | (Get-Date) |
| Type                | DateTime   |
| Portal display name | Start date |

#### End

When the automatic replies stop.

| Property            | Value                                    |
| ------------------- | ---------------------------------------- |
| Required            | false                                    |
| Default Value       | ((Get-Date) + (New-TimeSpan -Days 3650)) |
| Type                | DateTime                                 |
| Portal display name | End date                                 |

#### MessageInternal

Reply sent to people inside the organization.

| Property            | Value                                                             |
| ------------------- | ----------------------------------------------------------------- |
| Required            | false                                                             |
| Default Value       | Sorry, this person is currently not able to receive your message. |
| Type                | String                                                            |
| Portal display name | Message for colleagues                                            |

#### MessageExternal

Reply sent to people outside the organization.

| Property            | Value                                                             |
| ------------------- | ----------------------------------------------------------------- |
| Required            | false                                                             |
| Default Value       | Sorry, this person is currently not able to receive your message. |
| Type                | String                                                            |
| Portal display name | Message for external senders                                      |

#### ExternalAudience

None sends no external replies, Known only to saved contacts, All to every external sender.

| Property            | Value             |
| ------------------- | ----------------- |
| Required            | false             |
| Default Value       | All               |
| Type                | String            |
| Portal display name | External audience |

#### CreateEvent

Puts a matching out-of-office entry into the user's calendar for the same period.

| Property            | Value                                |
| ------------------- | ------------------------------------ |
| Required            | false                                |
| Default Value       | False                                |
| Type                | Boolean                              |
| Portal display name | Add an out-of-office calendar entry? |

#### EventSubject

Subject of the out-of-office entry as colleagues see it in the calendar.

| Property            | Value                |
| ------------------- | -------------------- |
| Required            | false                |
| Default Value       | Out of Office        |
| Type                | String               |
| Portal display name | Calendar entry title |

[Back to Runbook Reference overview](/automation/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 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/automation/runbooks/runbook-references/user/mail/set-out-of-office.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.
