UserOofSettings
Last modified: October 13, 2012
Applies to: Exchange Online | Exchange Server 2007 | Exchange Server 2010 | Exchange Server 2013 | Office 365
The UserOofSettings element specifies the Out of Office (OOF) settings.
UserOofSettings
<UserOofSettings> <OofState>...</OofState> <ExternalAudience>...</ExternalAudience> <Duration>...</Duration> <InternalReply>...</InternalReply> <ExternalReply>...</ExternalReply> </UserOofSettings>
UserOofSettings
The following sections describe attributes, child elements, and parent elements.
Attributes
None.
Child elements
Element | Description |
|---|---|
Sets the user's OOF state. | |
Sets or contains a value that determines to whom external OOF messages are sent. | |
Specifies the duration for which the OOF status is enabled if the OofState element is set to Scheduled. If the OofState element is set to Enabled or Disabled, the value of this element is ignored. | |
Contains the OOF response sent to other users in the user's domain or trusted domains. | |
Contains the OOF response sent to addresses outside the recipient's domain or trusted domains. |
Parent elements
Element | Description |
|---|---|
Contains the arguments used to set a mailbox user's OOF settings and messages. The following is the XPath expression to this element: /SetUserOofSettingsRequest |
The following example of a SetUserOofSettings request sets the OoFState to Enabled, sets the duration of OOF for 10 days, and sets the internal and external OOF messages.
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<SetUserOofSettingsRequest xmlns="http://schemas.microsoft.com/exchange/services/2006/messages">
<Mailbox xmlns="http://schemas.microsoft.com/exchange/services/2006/types">
<Name>David Alexander</Name>
<Address>someone@example.com</Address>
<RoutingType>SMTP</RoutingType>
</Mailbox>
<UserOofSettings xmlns="http://schemas.microsoft.com/exchange/services/2006/types">
<OofState>Enabled</OofState>
<ExternalAudience>All</ExternalAudience>
<Duration>
<StartTime>2005-10-05T00:00:00</StartTime>
<EndTime>2005-10-25T00:00:00</EndTime>
</Duration>
<InternalReply>
<Message>I am out of office. This is my internal reply.</Message>
</InternalReply>
<ExternalReply>
<Message>I am out of office. This is my external reply.</Message>
</ExternalReply>
</UserOofSettings>
</SetUserOofSettingsRequest>
</soap:Body>
</soap:Envelope>