【发布时间】:2016-11-23 19:38:11
【问题描述】:
我设置了impersonation 以允许我在我的ExchangeService 客户端对象上模拟和访问另一个帐户:
var client = new ExchangeService();
client.Credentials = new WebCredentials("account.one@somewhere.com", "password");
client.Url = new Uri("https://outlook.office365.com/EWS/Exchange.asmx");
client.ImpersonatedUserId = new ImpersonatedUserId(ConnectingIdType.SmtpAddress, "account.two@somewhere.com");
这很好用,但是...在我的情况下,account.one@somewhere.com 不知道他们能够冒充谁。我如何枚举他们能够模拟的所有其他帐户?我尝试搜索示例,但找不到任何内容。
【问题讨论】:
标签: c# .net exchangewebservices impersonation