How to get Out of Office for another mailbox

后端 未结 2 1975
无人及你
无人及你 2021-01-16 07:23

I\'m trying to get the Out of Office settings for a given mailbox by using EWS/EWS Managed API 2.0.

The setup is the following; a single \"service account/mailbox\"

2条回答
  •  既然无缘
    2021-01-16 08:02

    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

提交回复
热议问题