Rad1
Rad1

Reputation: 49

EWS 2010 Get Calendar items without using Impersonation C#

I have a crawler that used to use an impersonation account to crawl users calendars. Now, I can not use this impersonation account and need to find a way for the crawler to work.

Is there a way to access user's calendars without using the impersonation account? If there is a way, would you please explain how to do it and what do I need to do to make it work?

Also, would you point me to a sample code if there is one as a reference?

Thank you, Rad1

Upvotes: 1

Views: 701

Answers (2)

Victor Sergienko
Victor Sergienko

Reputation: 13475

Actually, those users could grant you a Delegate access to their mailboxes.

After that, access their folders from Microsoft.Exchange.WebServices.Data code like this:

rootfolderId = new FolderId(WellKnownFolderName.Contacts, 
  new Mailbox(delegateEmail));

Upvotes: 2

Ahmad ElMadi
Ahmad ElMadi

Reputation: 2617

well the only way other than impersonation is to know the passwords of each user, which is not practical solution.

Upvotes: 0

Related Questions