Office 365 Outlook 日历:如何在单个 ASP.NET MVC 应用程序中访问多个用户的日历?

Office 365 Outlook Calendar : How to access multiple user's calendar in a single ASP.NET MVC application?

我们正在尝试实现一个日历门户 (C# ASP.NET MVC),一个管理员可以在其中查看多个 outlook(或 office 365)用户的日历并查看谁有空。因此,应该从一个 ASP.NET MVC 应用程序访问多个帐户。

第一个问题:这可能吗? (可能是因为我已经在 Whosebug 上看到 post : EWS - Access All Shared Calendars ) 第二个问题:什么是正确的方法? 第三个问题:微软有没有项目或者文章? (我能找到任何好的)

我经历过 and https://www.youtube.com/watch?v=0kvDyl5HShA.

我也曾通过 OAuth2 连接到单个用户的帐户。它是成功的。

目前,我们有此订阅。如果需要更多信息,请发表评论。然后我会根据需要添加更多描述。

谢谢。

您可以尝试使用此 blog, the service app that requires admin consent, but is authorized to access any user's mailbox/calendar information in your Office 365 tenant. You could click here 中所述的客户端凭据授权流来构建守护程序或服务应用程序,用于使用客户端凭据流访问 Office 365 中的用户、邮件、日历、联系人的示例 Web 应用程序休息 API。

这个link you provided needs to associate your Office 365 account with Azure AD to create and manage apps .If you can have an existing Microsoft Azure subscription, you can associate your Office 365 for business subscription with it. .Otherwise, you'll need to create a new Azure subscription and associate it with your Office 365 account in order to register and manage apps. For more details ,please read how to set up your Office 365 development environment.