Impersonation Issue Using EWS Managed API In Exchange 2010 RRS feed

  • Question

  • We are trying access Exchange account contacts using admin username and password in EWS Managed API. That is we will be using "admin user name" and "admin password" to access contacts of all exchange accounts configured on exchange server.

    Here is the url which we have followed ""

    But we got following error while "The account does not have permission to impersonate the requested user."

    Here is my code snippet :-

    ExchangeService service = new ExchangeService(ExchangeVersion.Exchange2010);
    service.Credentials = new NetworkCredential(adminUserName, adminPassword, emailDomain);

    service.ImpersonatedUserId = new ImpersonatedUserId(ConnectingIdType.SmtpAddress, accountEmail);

    service.url = new Uri("Exchange Web Service Url")

    Can any one please let me know if we are missing some thing?

    Monday, November 5, 2012 5:34 AM

All replies