在电子邮件客户端上工作。获取用户配置文件图片没有凭据,可能吗?
有谁知道是否有可能从电子邮件和服务器URL的用户的个人资料图片没有他们的密码?
我正在使用Exchange 2013.我尝试了HTTP POST选项。它的作品像一个魅力,但需要登录。
在电子邮件客户端上工作。获取用户配置文件图片没有凭据,可能吗?
有谁知道是否有可能从电子邮件和服务器URL的用户的个人资料图片没有他们的密码?
我正在使用Exchange 2013.我尝试了HTTP POST选项。它的作品像一个魅力,但需要登录。
您可以让一个特定的用户帐户冒充另一个用户帐户并访问他们的详细信息,而不需要他们的用户名和密码。
string impName = @"impy";
string impPassword = @"password";
string impDomain = @"domain";
string impEmail = @"[email protected]";
ExchangeService service = new ExchangeService(ExchangeVersion.Exchange2010);
service.Credentials = new NetworkCredential(impName, impPassword, impDomain);
service.AutodiscoverUrl(impEmail);
service.ImpersonatedUserId = new ImpersonatedUserId(ConnectingIdType.SmtpAddress, @"[email protected]");
更多的参考资料: http://msdn.microsoft.com/en-us/library/dd633680(v=exchg.80).aspx
你可以使用这样的..
VAR userpicUrl = “/_layouts/15/userphoto.aspx?accountname=” + user.UserName + “& size = M & url =”+ user.ProfilePictureURl;
太棒了!谢谢。我会处理它并发布更新。东西正在进步一些慢节奏的原因。 – user1034489