title: The account does not have permission to impersonate the requested user
body: <p>I am getting this error while try to accessin the resource mailbox. pls any one help me on this . I am new to EWS. </p>
  
  <p>I am able to access the resource mailbox through OWA(Outlook web app). But i am not owner of this mailbox as it is shared mailbox.</p>
  
  <p>my code:</p>
  
  <pre><code>ServicePointManager.ServerCertificateValidationCallback = CertificateValidationCallBack;
  ExchangeService newExchangeService = new ExchangeService  (ExchangeVersion.Exchange2007_SP1);
  newExchangeService.Credentials = new NetworkCredential(username, password, domain);
  newExchangeService.AutodiscoverUrl(email-id, RedirectionUrlValidationCallback);
  
  newExchangeService.ImpersonatedUserId = new ImpersonatedUserId(ConnectingIdType.SmtpAddress, email_which_i_want_to_access);
  
  Folder visitorsFolder = Folder.Bind(newExchangeService, WellKnownFolderName.Inbox);
  foreach (Folder childfolder in visitorsFolder.FindFolders(new FolderView(10)))
          {
              Console.WriteLine(childfolder.DisplayName);
          }
  </code></pre>