通过EWS的不可变邮箱ID [英] immutable mailbox id thru EWS

查看:156
本文介绍了通过EWS的不可变邮箱ID的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,

有没有办法通过EWS获取给定邮箱的不可变ID?

Is there any way to get an immutable id for a given mailbox via EWS?

我知道用户电子邮件地址可以更改,因此不能用于识别邮箱。

As I know user email address can be changed so it cannot be used for identification of the mailbox.

UserDN和MailboxDN是什么?它们中的任何一个是不可变的吗?

What is about UserDN and MailboxDN? is any of them immutable?

推荐答案

 使用EWS,邮箱的PrimarySMTPAddress是您需要使用的密钥,我想是问题是为什么你需要一个不可变的(有一个用于Office365和OnPrem之间的目录同步)。在Exchange中,邮箱的不可变ID是邮箱
GUID
https://technet.microsoft.com/en-us/library/aa996437%28v=exchg.65%29.aspx
 但您无法通过EWS获得此值。 MailboxDN(或LegacyExchangeDN)是邮箱的X500地址,虽然它是可更改的,但不应更改(因此不是
不可变),但它在EWS中可用。

 With EWS the PrimarySMTPAddress of a Mailbox is the Key you need to use, I guess the question is why do you need an immutable (there is one for Directory sync between Office365 and OnPrem) . In Exchange the immutable Id for a Mailbox is the Mailbox GUID https://technet.microsoft.com/en-us/library/aa996437%28v=exchg.65%29.aspx but you can't get this value via EWS . The MailboxDN (or LegacyExchangeDN) is the X500 address of the Mailbox which shouldn't change although it is changeable (so not immutable) but its useable in EWS.

干杯

Glen

Cheers
Glen





这篇关于通过EWS的不可变邮箱ID的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆