How to get Out of Office for another mailbox

大憨熊 提交于 2019-12-01 13:09:15

You can use GetUserOofSettings operation, but in order to retrieve other account's oof setting you need add a SOAP header ExchangeImpersonation. And note that

The calling account must have the ms-exch-impersonation right on the Client Access server and the ms-exch-MayImpersonate right on either the mailbox database that contains the mailbox to impersonate or the Active Directory User/Contact object.

refer to http://msdn.microsoft.com/en-us/library/aa565690(v=exchg.140).aspx

It IS possible to get the duration by using the EWS service directly. One just needs to set the start/end time of the OOF. Oops..

However, I would prefer if this was supported using the EWS Managed API so please let me know if this is possible somehow.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!