通过Microsoft Graph创建的团队的分配屏幕已禁用

时间:2018-08-24 09:02:00

标签: json microsoft-graph microsoft-graph-edu

当我使用Microsoft Graph Education API创建团队(教师和学生的班级类型)时,该团队出现在Microsoft Teams应用程序中,并且“分配”选项卡可见。

当我尝试在Teams应用中创建新任务时,用于创建任务的屏幕已禁用,因此无法为通过API创建的任何团队创建新任务。

我做错什么了吗?

通过API创建的团队(禁用了控件,没有保存和删除控件):

enter image description here

通过“团队”应用创建的团队(已启用控件):

enter image description here

工作流程:

  1. 我通过POST https://graph.microsoft.com/V1.0/education/classes创建了一个团队 的正文:

    {
      "displayName": "Test2",
      "description": "Test2",
      "classCode": "Test2",
      "externalId": "2",
      "externalName": "Test2",
      "externalSource": "sis",
      "mailNickName": "Test2_2",
      "term": {
        "displayName": "Term2",
        "externalID": "2",
        "startDate": "2017-09-01",
        "endDate": "2019-08-31"
      }
    }
    

    (也尝试过"externalSource":"manual"

  2. 使用POST https://graph.microsoft.com/V1.0/education/classes/{id}/teachers/$ref和正文

    添加教师
    {
      "@odata.id": "https://graph.microsoft.com/V1.0/education/users/{id}"
    }
    
  3. 使用POST https://graph.microsoft.com/V1.0/education/classes/{id}/members/$ref添加以下内容的学生:

    {
      "@odata.id": "https://graph.microsoft.com/V1.0/education/users/{id}"
    }
    

所有这些调用均成功,并且该团队显示在“团队”应用中。 “分配”选项卡也会显示,因此该团队是一个教育团队。

1 个答案:

答案 0 :(得分:1)

这是一个已知的错误-该修补程序已于2018年9月3日部署。

相关问题