Azure Active Directory 工作负载未启用丰富通知

Meh*_*maa 1 azure azure-active-directory microsoft-graph-api

我正在尝试在 Azure AD 中创建订阅,以便在删除用户时接收通知。但我收到 400 响应代码和一条消息“Azure Active Directory 工作负载未启用丰富通知”。我不知道原因。我需要做什么 ?!

这是我的要求:

{
  "changeType": "deleted",
  "notificationUrl": "https://95bb3cee58yb.ngrok.io/azure/notifications",
  "resource": "users",
  "includeResourceData": true,
  "expirationDateTime": "2020-09-30T10:27:03.4541718Z",
  "clientState": "secretClientValue",
  "latestSupportedTlsVersion": "v1_2"
}
Run Code Online (Sandbox Code Playgroud)

这是回应:

{
  "error": {
    "code": "InvalidRequest",
    "message": "Azure Active Directory workload is not enabled for rich notifications.",
    "innerError": {
      "date": "2020-09-28T13:05:26",
      "request-id": "ba715410-16a2-480f-840b-e72e863c4a05",
      "client-request-id": "577c315b-8715-753c-4efd-68a4729b92c2"
    }
  }
}
Run Code Online (Sandbox Code Playgroud)

小智 5

根据文档

目前,Microsoft Teams chatMessage 以及 Microsoft Teams 状态(预览)资源支持包含资源数据的更改通知。

您必须删除“includeResourceData”