通过Web服务SDK从Exchange 2010获取用户组的地址
我们想显示地址列表。我们正在尝试设计一种系统,其中地址仅存储在一个位置,即 Exchange 2010。Exchange
2010 SDK 中是否有 Web 服务,允许我们获取组中所有用户的姓名和地址?
有没有更好的方法来做到这一点,例如从 AD 获取数据?
We would like to display a list of address. We are trying to design a system where the addresses are only stored in one place, that place being Exchange 2010.
Is there a web service in the Exchange 2010 SDK, that allows us to get the names and address of all users in a group?
Is there a better way to do this, for example getting the data from AD?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我将使用 System.DirectoryService.AccountManagement 命名空间并且不通过 Exchange Web 服务。 EWS 的目标更多是获取 Exchange 数据库中的信息(电子邮件、任务、日历等),而 S.DS.AM 的目标是从 Active Directory 获取数据。
如果您的域控制器运行 Windows Server 2008 R2,您将具有对 针对 AD 的 Web 服务,但这是新技术,您的公司很可能尚未使用该技术,因此您必须创建自己的 Web 服务来包装 S.DS.AM 代码。
Exchange 使用 Active Directory 获取和更新标准(非动态)Exchange 通讯组列表的组成员身份,因此 AD 组的成员与接收发送到该列表的电子邮件的人员相同。也就是说,您可以使用 EWS 来扩展通讯组列表,并且您可能如果您在 Exchange 中使用动态通讯组,最好这样做。如果您在 Exchange 中使用动态通讯组,则需要检查 Active Directory 中动态通讯组条目上的
msExchDynamicDLFilter
值。I would do this by using the System.DirectoryService.AccountManagement namespace and not through the Exchange Web Services. EWS is more targeted at getting to the information in the Exchange database (email messages, tasks, calendars etc) whereas S.DS.AM is targeted at getting data from Active Directory.
If your domain controllers are running Windows Server 2008 R2 you will have built-in access to web services targetting AD but that's new technology and your company is most likely not using that yet so you'll have to create your own web services wrapping the S.DS.AM-code.
Exchange uses Active Directory to get and update group membership for standard (non-dynamic) Exchange distribution lists so the members of a AD group is the same as the people getting the emails sent to the list. That said, you can use EWS for Expanding Distribution Lists and you might be better off doing this if you're using dynamic distribution groups in Exchange. If you're using dynamic distribution groups in Exchange you need to examine the
msExchDynamicDLFilter
-value on the dynamic distribution group entry in Active Directory.