Json Microsoft Graph无法检索组';s计划Id

Json Microsoft Graph无法检索组';s计划Id,json,microsoft-graph-api,Json,Microsoft Graph Api,使用POST/v1.0/groups和正文创建组后: { "description": "hello", "displayName": "group_for_restore", "groupTypes": [ "Unified" ], "mailEnabled": true, "mailNickname": "group_for_restore", "securityEnabled": false, "visibil

使用
POST/v1.0/groups
和正文创建组后:

{
    "description": "hello",
    "displayName": "group_for_restore",
    "groupTypes": [
        "Unified"
    ],
    "mailEnabled": true,
    "mailNickname": "group_for_restore",
    "securityEnabled": false,
    "visibility": "Public"
}
请求
GET/v1.0/groups/{group id}/planner/plannis
不会检索任何计划

据我所知,创建一个组后,也会创建一个计划。在web界面上,您可以看到此计划已正确创建和显示,但它不会出现在JSON响应中:

{
    "@odata.context": "https://graph.microsoft.com/v1.0/$metadata#Collection(microsoft.graph.plannerPlan)",
    "@odata.count": 0,
    "value": []
}
在web界面中单击它之后,您可以使用上面的请求轻松获得计划


执行这些神奇的步骤来获取计划id可以吗?

当您第一次尝试访问该组的计划时,该Web应用程序正在设置该组的计划。但是,通过API创建组时,您需要自己创建一个新计划:

POSThttps://graph.microsoft.com/v1.0/planner/plans
内容类型:application/json
{
“所有者”:“组id”,
“标题”:“标题值”
}
请记住以下要点:

创建新计划时,只需在计划对象上设置
owner
属性,即可使组成为其所有者


不幸的是,当通过具有应用程序权限的流创建组时,这不起作用。允许使用应用程序权限创建组,不支持创建计划。