Export (0) Print
Expand All

4.4 UpdateDelegate Operation

The following example of an UpdateDelegate request shows how to update delegatepermissions on user1's account. User2 is granted the None permission level for the Tasks folder and is granted permission to view private items. User3 is granted Reviewer permissions for the Journal folder. Meeting requests are sent to the delegates, and information about the request is sent to user1.

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
               xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
               xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <soap:Header>
    <t:ServerVersionInfo MajorVersion="8"
             MinorVersion="1"
             MajorBuildNumber="206"
             MinorBuildNumber="0"
             Version="Exchange2013"
             xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types"/>
  </soap:Header>
  <soap:Body>
    <tns:UpdateDelegateResponse 
           xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types"
           ResponseClass="Success"
           xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages">
      <tns:ResponseCode>NoError</tns:ResponseCode>
      <tns:ResponseMessages>
        <tns:DelegateUserResponseMessageType ResponseClass="Success">
          <tns:ResponseCode>NoError</tns:ResponseCode>
          <tns:DelegateUser>
            <t:UserId>
              <t:SID>S-1-5-21-1333220396-2200287332-232816053-1117</t:SID>
              <t:PrimarySmtpAddress>User2@example.com</t:PrimarySmtpAddress>
              <t:DisplayName>User2</t:DisplayName>
            </t:UserId>
            <t:ReceiveCopiesOfMeetingMessages>true</t:ReceiveCopiesOfMeetingMessages>
            <t:ViewPrivateItems>true</t:ViewPrivateItems>
          </tns:DelegateUser>
        </tns:DelegateUserResponseMessageType>
        <tns:DelegateUserResponseMessageType ResponseClass="Success">
          <tns:ResponseCode>NoError</tns:ResponseCode>
          <tns:DelegateUser>
            <t:UserId>
              <t:SID>S-1-5-21-1333220396-2200287332-232816053-1118</t:SID>
              <t:PrimarySmtpAddress>User3@example.com</t:PrimarySmtpAddress>
              <t:DisplayName>User3</t:DisplayName>
            </t:UserId>
            <t:ReceiveCopiesOfMeetingMessages>true</t:ReceiveCopiesOfMeetingMessages>
            <t:ViewPrivateItems>false</t:ViewPrivateItems>
          </tns:DelegateUser>
        </tns:DelegateUserResponseMessageType>
      </tns:ResponseMessages>
    </tns:UpdateDelegateResponse>
  </soap:Body>
</soap:Envelope>

The following example shows a successful response to an UpdateDelegate operation.

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
               xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
               xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <soap:Header>
    <t:ServerVersionInfo MajorVersion="8"
             MinorVersion="1"
             MajorBuildNumber="206"
             MinorBuildNumber="0"
             Version="Exchange2013"
             xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types"/>
  </soap:Header>
  <soap:Body>
    <tns:UpdateDelegateResponse 
           xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types"
           ResponseClass="Success"
           xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages">
      <tns:ResponseCode>NoError</tns:ResponseCode>
      <tns:ResponseMessages>
        <tns:DelegateUserResponseMessageType ResponseClass="Success">
          <tns:ResponseCode>NoError</tns:ResponseCode>
          <tns:DelegateUser>
            <t:UserId>
              <t:SID>S-1-5-21-1333220396-2200287332-232816053-1117</t:SID>
              <t:PrimarySmtpAddress>User2@example.com</t:PrimarySmtpAddress>
              <t:DisplayName>User2</t:DisplayName>
            </t:UserId>
            <t:ReceiveCopiesOfMeetingMessages>true</t:ReceiveCopiesOfMeetingMessages>
            <t:ViewPrivateItems>true</t:ViewPrivateItems>
          </tns:DelegateUser>
        </tns:DelegateUserResponseMessageType>
        <tns:DelegateUserResponseMessageType ResponseClass="Success">
          <tns:ResponseCode>NoError</tns:ResponseCode>
          <tns:DelegateUser>
            <t:UserId>
              <t:SID>S-1-5-21-1333220396-2200287332-232816053-1118</t:SID>
              <t:PrimarySmtpAddress>User3@example.com</t:PrimarySmtpAddress>
              <t:DisplayName>User3</t:DisplayName>
            </t:UserId>
            <t:ReceiveCopiesOfMeetingMessages>true</t:ReceiveCopiesOfMeetingMessages>
            <t:ViewPrivateItems>false</t:ViewPrivateItems>
          </tns:DelegateUser>
        </tns:DelegateUserResponseMessageType>
      </tns:ResponseMessages>
    </tns:UpdateDelegateResponse>
  </soap:Body>
</soap:Envelope>
Show:
© 2014 Microsoft