【发布时间】:2020-10-14 00:16:08
【问题描述】:
环境
- Outlook 桌面版 (Office 365);
- Exchange 服务器;
- Azure 云
初始条件
USER_A 是 USER_B 的助手,负责管理 USER_B 的日历(Outlook 共享日历)。我们希望跟踪 USER_B 日历中的更改。在 Outlook/Exchange 中,USER_A 是 USER_B 的代表。
目标
当某些 Outlook 日历项目被修改时,我们想调用一个函数应用程序来更新数据库。日历可以是共享日历,但不一定是共享日历。
用例
USER_B 未登录,但 USER_A 在 USER_B 的日历中创建了约会。
即使 USER_B 未登录,我们仍希望捕获 USER_A 所做的更改并更新我们的数据库。换句话说,应该为共享日历触发更改通知,即使该日历的所有者没有登录。
问题 Function App 是否需要“应用”级别的权限才能执行此操作?
代码看起来像:
POST https://graph.microsoft.com/v1.0/subscriptions
Content-type: application/json
{
"changeType": "created",
"notificationUrl": "https://webhook.azurewebsites.net/api/send/UpdateDataBase",
"resource": "users/{a-user-id}/events",
"expirationDateTime":"2020-10-20T19:23:45.9376913Z",
"clientState": "bigSecret",
"latestSupportedTlsVersion": "v3"
}
【问题讨论】:
标签: outlook microsoft-graph-api azure-ad-graph-api microsoft-graph-calendar