4.1 GetUserAvailability Request

The following example shows how to get detailed availability information for two users in the Pacific Time zone. One user has been given free/busy status permissions, and the other user's mailbox is on a computer that does not use this protocol to provide free/busy status information.

Working hours for both users are Monday – Friday, 0800 to 1700.

 <?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:Header>
     <wsa:MessageID xmlns:wsa="http://www.w3.org/2005/08/addressing/">
       [unique message identifier]
     </wsa:MessageID>
   </soap:Header>
   <soap:Body>
     <GetUserAvailabilityRequest xmlns="http://schemas.microsoft.com/exchange/services/2006/messages">
       <TimeZone xmlns="http://schemas.microsoft.com/exchange/services/2006/types">
         <Bias>480</Bias>
         <StandardTime>
           <Bias>0</Bias>
           <Time>02:00:00</Time>
           <DayOrder>5</DayOrder>
           <Month>10</Month>
           <DayOfWeek>Sunday</DayOfWeek>
         </StandardTime>
         <DaylightTime>
           <Bias>-60</Bias>
           <Time>02:00:00</Time>
           <DayOrder>1</DayOrder>
           <Month>4</Month>
           <DayOfWeek>Sunday</DayOfWeek>
         </DaylightTime>
       </TimeZone>
       <MailboxDataArray>
         <MailboxData xmlns="http://schemas.microsoft.com/exchange/services/2006/types">
           <Email>
             <Name></Name>
             <Address>user1@example.com</Address>
             <RoutingType>SMTP</RoutingType>
           </Email>
           <AttendeeType>Required</AttendeeType>
           <ExcludeConflicts>false</ExcludeConflicts>
         </MailboxData>
         <MailboxData xmlns="http://schemas.microsoft.com/exchange/services/2006/types">
           <Email>
             <Name></Name>
             <Address>user2@example.com</Address>
             <RoutingType>SMTP</RoutingType>
           </Email>
           <AttendeeType>Required</AttendeeType>
           <ExcludeConflicts>false</ExcludeConflicts>
         </MailboxData>
       </MailboxDataArray>
       <FreeBusyViewOptions xmlns="http://schemas.microsoft.com/exchange/services/2006/types">
         <TimeWindow>
           <StartTime>2008-01-20T00:00:00</StartTime>
           <EndTime>2008-01-21T00:00:00</EndTime>
         </TimeWindow>
         <MergedFreeBusyIntervalInMinutes>30</MergedFreeBusyIntervalInMinutes>
         <RequestedView>Detailed</RequestedView>
       </FreeBusyViewOptions>
     </GetUserAvailabilityRequest>
   </soap:Body>
 </soap:Envelope>
Show: