none
Exchange EWS PushSubscriptionRequest 2010: How to to get notified using a service account that has permission over some users RRS feed

  • Question

  • Exchange EWS PushSubscriptionRequest 2010:
    How to  get notified using a service account that has permission over some users.
    I have an account for myself (my@business.com).

    I am able to subscribe to my account's contacts using "my" credentials and get notified

    on changes to contacts by EWS.

    For an application with thousands of users, creating subscription requests using each user’s

    credentials is not workable.

    So  I have created a service account (sa@business.com)  that has full permission

    over my mailbox (my@business.com).

    I am able to subscribe to my service account's contact  using "service account's credentials

    and get notified on changes by EWS.

    Now I just have one subscription to the service account.

    However I am not getting notified for the changes made to  contacts of "my" account.
    What needs to be done to fix the issue?
    I can not use Impersonation(not configured in exchange 2010 by admin yet).



    Thursday, November 1, 2012 7:44 PM

Answers

  • Hi ,

    Exchange Development Forum is the best place for you. I have moved your case there so that you can get better help.


    Wendy Liu

    TechNet Community Support

    • Marked as answer by ewsuser2010 Wednesday, January 2, 2013 10:24 PM
    Sunday, November 4, 2012 11:58 AM
    Moderator

All replies

  • Hi ,

    Exchange Development Forum is the best place for you. I have moved your case there so that you can get better help.


    Wendy Liu

    TechNet Community Support

    • Marked as answer by ewsuser2010 Wednesday, January 2, 2013 10:24 PM
    Sunday, November 4, 2012 11:58 AM
    Moderator
  • Update:

    This is how it is accomplished:

    1) Log in to EWS server using the credentials of sa@business.com
    2) Send a SOAP message:

    <?xml version="1.0" encoding="utf-8"?>
    <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                   xmlns:xsd="http://schemas.xmlsoap.org/soap/envelope/"
                   xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
                   xmlns="http://schemas.microsoft.com/exchange/services/2006/messages"
                   xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types">
        <soap:Header>
        <t:RequestServerVersion Version="Exchange2010_SP2"></t:RequestServerVersion>
        </soap:Header>
    <soap:Body>
    <Subscribe
                   xmlns="http://schemas.microsoft.com/exchange/services/2006/messages"
                   xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types">
        <PushSubscriptionRequest >
            <t:FolderIds>
                <t:DistinguishedFolderId Id="contacts">
                <t:Mailbox><t:EmailAddress>my@business.com</t:EmailAddress></t:Mailbox>
                </t:DistinguishedFolderId>
                <t:DistinguishedFolderId  Id="calendar">
                <t:Mailbox><t:EmailAddress>my@business.com</t:EmailAddress></t:Mailbox>
                </t:DistinguishedFolderId>
            </t:FolderIds>
            <t:EventTypes>
                <t:EventType>CreatedEvent</t:EventType>
                <t:EventType>ModifiedEvent</t:EventType>
                <t:EventType>DeletedEvent</t:EventType>
                <t:EventType>MovedEvent</t:EventType>
                <t:EventType>CopiedEvent</t:EventType>
            </t:EventTypes>
            <t:StatusFrequency>3</t:StatusFrequency>
            <t:URL>http://hostname:8080/EWSAPI/EWSListener</t:URL>
        </PushSubscriptionRequest>
    </Subscribe>
    </soap:Body>
    </soap:Envelope>


    Now the server http://hostname:8080/EWSAPI/EWSListener is getting notified the status and other notifications from exchange server.


    Wednesday, January 2, 2013 10:24 PM