views:

110

answers:

1

Is it possibly to access the folders and items of other Exchange accounts other than the one of the logged in user?

Can I do this via Exchange Web Services Managed API?

+2  A: 

Yes it is possible, but you should know the password of the other user or grab in some ways this credentials (NetworkCredential object). The typical first lines of you code could be

ExchangeService myService = new ExchangeService (ExchangeVersion.Exchange2007_SP1);
myService.Credentials = new NetworkCredential ("[email protected]", "P@ssword00");

so you can access Exchange Server Web Services with the account which is other as the current user. See ExchangeService object description for more information.

If you are an admin you can make user impersonation by SMTP address.

Oleg
Oleg
Thanks for your answer, but i was looking for a way without having to know every password. Like using a superuser who can access all accounts.
Luke
@Luke: The last sentences from my answer describe how to do this. As a "superadmin" you can impersonate any user by SMTP address only without having any information about his password. Look at http://msdn.microsoft.com/en-us/library/dd633680(EXCHG.80).aspx one more time.
Oleg