在Office 365 API中访问其他用户的日历 [英] Access to other user's calendar in Office 365 API

查看:131
本文介绍了在Office 365 API中访问其他用户的日历的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在构建一个WPF应用程序,该应用程序对组织中多个用户的日历进行了汇总.该公司正在使用Office 365,所以我认为Office 365 API是最好的选择.

I'm building a WPF-app that's doing a summary of several user's calendar in the organization. The Company is using Office 365 so I thought that the Office 365 API would be the best way to go.

我设法访问了自己的日历,但是我不知道如何访问同事的日历. 是否有可能? 我还需要列出GAL,以便选择我希望将哪些用户包括在摘要中.

I've managed to access my own calendar, but I don't know how to access my colleagues' calendars. Is it possible? I also need to list the GAL in order to pick which users I wolud like to include in the summary.

推荐答案

[UPDATE] 现在对REST API提供了服务帐户支持.请参阅

[UPDATE] Service account support is available now for REST APIs. Please see Building Daemon or Service Apps with Office 365 Mail, Calendar, and Contacts APIs (OAuth2 client credential flow) for more info.

感谢您对Office 365 API的疑问和兴趣!当前,您可以使用Office 365 API来访问经过身份验证的用户的日历,但不能访问其他用户的日历.使服务帐户被授权访问组织或整个组织内多个用户的邮件/日历/联系人已经在我们的路线图上,并且其优先级很高,请保持关注.

Thanks for your question and interest in Office 365 APIs! Currently, you can use the Office 365 API to access the authenticated user's calendar but not another user's calendar. Enabling a service account to be authorized to access mail/calendar/contacts of multiple users within an organization or the entire organization is on our roadmap and is prioritized pretty high, so stay tuned.

同时,您可以使用Exchange Web服务(EWS)托管API来实现您的应用程序.但是,通过模拟EWS应用程序,服务帐户可以对用户的整个邮箱(而不仅仅是日历)具有读/写访问权限.一旦我们在Office 365 API中添加了对服务帐户的支持,您将能够使用OAuth并缩小应用程序的访问范围,以仅读取用户的日历.

In the mean time, you can use Exchange Web Services (EWS) Managed API to implement your application. However, with EWS app impersonation, the service account has read/write access to the user's entire mailbox, and not just the calendar. Once we add support for service accounts in Office 365 API, you will be able to use OAuth and scope down the access of the app to only read a user's calendar.

这里有一些链接说明了EWS应用程序模拟的工作方式.

Here are a few links explaining how EWS app impersonation works.

  • EWS Managed API download
  • Impersonation and EWS in Exchange
  • Working with impersonation by using the EWS Managed API

如果您有任何疑问或需要更多信息,请告诉我.

Please let me know if you have any questions or need more info.

谢谢

Venkat

这篇关于在Office 365 API中访问其他用户的日历的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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