Get All users Email from Office 365 Mail Server using Impersonation RRS feed

  • Question

  • Hello,

    I am trying to retrieve all users emails from Exchange Server using EWS. I successfully retrieved single users emails from admin account but unable to get all or multiple users emails. Is it possible to through Impersonation, if yes then please share some resource. Thanks 

    Friday, April 13, 2018 7:43 AM

All replies

  • Hi Sido95,

    Thank you for posting here.

    For your question is more related to EWS, for further help with EWS, please post a new thread in Exchange Server Development forum.

    You also could try to use LDAP and System.DirectoryServices.

    Here is the example for your reference.

    Best Regards,


    Note: This response contains a reference to a third-party World Wide Web site. Microsoft is providing this information as a convenience to you.
    Microsoft does not control these sites and has not tested any software or information found on these sites; Therefore, Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there.
    There are inherent dangers in the use of any software found on the Internet, and Microsoft cautions you to make sure that you completely understand the risk before retrieving any software from the Internet.

    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact

    Monday, April 16, 2018 6:40 AM