【问题标题】:How to read Public calendar with MS Graph API如何使用 MS Graph API 读取公共日历
【发布时间】:2019-01-10 04:51:47
【问题描述】:

我已使用 MS-Graph API 和 Azure AD with Oath 登录我的网站,但我现在正尝试从与我们组织共享的公共日历中读取事件。我已经阅读了这些链接: Graph API - get events returning 500 internal server error

How to access shared calendars from Office REST API?

但他们谈论的是 API 中不可用的旧共享方法。 “公共文件夹”中的这些日历是否使用这种旧方法?

这是在 outlook.office.com 上的样子:

Outlook 中的属性如下所示:

我已尝试使用 MS-Graph 资源管理器尝试查找日历,但找不到

GET 请求:https://graph.microsoft.com/v1.0/me/calendars

希望看到与我共享的日历,但只能看到我的主日历。

【问题讨论】:

  • 这个问题有更新吗?
  • 感谢您的跟进。如何找出最初共享日历的人?是的,我在 MS Graph 资源管理器中有 Calendars.Read.Shared 和 Calendars.ReadWrite.Shared 权限
  • 当我阅读被告知共享它的用户的日历时,我只能看到他的默认日历,但它没有我在公用文件夹日历中看到的事件.
  • 对outlook不太熟悉,也许你可以在新帖子中问关于outlook的问题。

标签: calendar azure-active-directory microsoft-graph-api


【解决方案1】:

如果您登录您的应用程序调用 MS graph api,您的应用程序需要 委托权限 Calendars.Read.SharedCalendars.ReadWrite.Shared,请求 url 应该是 GET https://graph.microsoft.com/v1.0/users/{userId of the one shared the calendar}/calendar 而不是那个你用过。

另外,如果您使用 MS 图形浏览器,您应该确保您的帐户在modify permissions 中具有Calendars.Read.SharedCalendars.ReadWrite.Shared 权限。

请参阅:Get Outlook events in a shared or delegated calendar

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2021-06-22
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-06-19
    • 1970-01-01
    • 1970-01-01
    • 2021-07-31
    相关资源
    最近更新 更多