如何走出办公室的另一个邮箱 [英] How to get Out of Office for another mailbox

查看:158
本文介绍了如何走出办公室的另一个邮箱的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图用EWS / EWS托管API 2.0来获得一个给定的邮箱的外出设置

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

的设置如下;一个单一的服务帐户/邮箱读取Office设置其他邮箱日历和Out。日历部分很容易使用EWS托管API,但我似乎无法弄清楚如何使用API​​来获取外出设置。
中的API有一个方法叫GetUserOofSettings(字符串Smtp地址),但它返回呼叫方在给定的Smtp地址不属于发出请求的邮箱访问被拒绝。

The setup is the following; a single "service account/mailbox" reads other mailbox calendars and Out of Office settings. The calendar part is easy using the EWS Managed API, but I can't seem to figure out how to get the Out of Office settings by using the API. The API has a method called GetUserOofSettings(string smtpAddress) but this returns access denied if the caller the given smtpAddress do not belong to the mailbox making the request.

正因为如此我曾尝试通过使用外汇直接发布的WSDL /服务来获得外出设置。通过这样做,我能得到出于对使用操作GetMailTips其他邮箱办公室的消息,但是这需要我只有一半,因为我没能得到持续的方式。

Because of this I have tried to get the Out of Office settings by using the WSDL/service published by Exchange directly. By doing so, I'm able to get the Out of Office message for other mailboxes using the operation GetMailTips, but this takes me only half the way because I'm not able to get the duration.

我的问题(S)是:是否有可能得到其他邮箱出于使用EWS托管API办公室设置,如果不是有可能通过直接调用EWS服务来获得外出持续时间

My question(s) are: Is it possible to get other mailboxes Out of Office settings using the EWS Managed API if not is it possible to get the Out of Office duration by calling the EWS service directly?

推荐答案

您可以使用的 GetUserOofSettings 操作,但为了找回其他帐户的设置OOF你需要添加一个SOAP头ExchangeImpersonation。并注意

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

主叫帐户必须具有MS-EXCH-模拟权
客户端访问服务器和MS-上EXCH-MayImpersonate权在任
包含邮箱冒充或
的Active Directory用户/联系人对象的邮箱数据库。

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.

的http:// MSDN .microsoft.com / EN-US /库/ aa565690(v = exchg.140)的.aspx

这篇关于如何走出办公室的另一个邮箱的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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