Microsoft graph api 通过图形创建educationClass时无法创建类分配

Microsoft graph api 通过图形创建educationClass时无法创建类分配,microsoft-graph-api,microsoft-graph-edu,Microsoft Graph Api,Microsoft Graph Edu,我创建了2个educationClass: educationClass,描述为Test100,通过Microsoft Graph创建 使用Teams应用程序创建的描述测试的educationClass。 educationclass Test100是使用带有以下JSON对象的POST to创建的 { "@odata.id": "https://graph.microsoft.com/V1.0/education/users/teacher-ID" } { "@odata.id": "

我创建了2个educationClass:

educationClass,描述为Test100,通过Microsoft Graph创建 使用Teams应用程序创建的描述测试的educationClass。 educationclass Test100是使用带有以下JSON对象的POST to创建的

{
  "@odata.id": "https://graph.microsoft.com/V1.0/education/users/teacher-ID"
}
{
  "@odata.id": "https://graph.microsoft.com/V1.0/education/users/ID-Member"
}
{ 显示名称:Test100, 描述:Test100, 外部ID:3099, 邮件昵称:Test100-3099 } 教师是使用一个帖子添加到 使用以下JSON对象

{
  "@odata.id": "https://graph.microsoft.com/V1.0/education/users/teacher-ID"
}
{
  "@odata.id": "https://graph.microsoft.com/V1.0/education/users/ID-Member"
}
成员是使用POST添加到的 使用以下JSON对象

{
  "@odata.id": "https://graph.microsoft.com/V1.0/education/users/teacher-ID"
}
{
  "@odata.id": "https://graph.microsoft.com/V1.0/education/users/ID-Member"
}
当我想在Teams应用程序中分配作业时,它可以与通过Teams创建的educationClass配合使用,但不能与通过Graph创建的class配合使用

在我看来,Graph创建的educationClass的组属性中似乎缺少一些内容

GET组对API创建的类的响应:

{ @odata.context:https://graph.microsoft.com/V1.0/$metadatagroups/$entity, id:cd5a64f4-8784-4356-8c04-31DEB1A6849, deletedDateTime:null, 分类:空, 创建日期时间:2018-08-06T08:36:28Z, 创建选项:[], 描述:Test100, 显示名称:Test100, groupTypes:[统一], 邮件:Test100-3099@wisad.be, mailEnabled:对, 邮件昵称:Test100-3099, onPremisesLastSyncDateTime:null, onPremisesProvisioningErrors:[], OnPremiseSecurityIdentifier:null, onPremisesSyncEnabled:null, PreferredCatalLocation:null, 代理地址:[smtp:Test100]-3099@mydomein,SMTP:Test100-3099@mydomein], 更新日期:2018-08-06T08:36:28Z, ResourceBehavior选项:[], resourceProvisioningOptions:[团队], securityEnabled:false, 可见性:隐藏成员, 分机号为FE217465583431C953114FF7268B7B3,分机号为教育号为SyncSource,分机号为3099, 扩展名_fe217466583431C953114FF7268B7B3 _Education _CreatedByUserId:myuserid, 扩展名\u FE217465583431C953114FF7268B7B3 \u Education\u CreatedByAppId:MyAppID, 扩展功能\u FE217465583431C953114FF7268B7B3 \u教育\u对象类型:节 } GET组对团队中创建的类的响应:

{ @odata.context:https://graph.microsoft.com/V1.0/$metadatagroups/$entity, id:e971cfd4-dc4c-4321-ae51-4d216557bec8, deletedDateTime:null, 分类:空, 创建日期时间:2018-08-06T11:56:52Z, creationOptions:[classAssignments,ExchangeProvisioningFlags:2509], 描述:测试, 显示名称:Test, groupTypes:[统一], 邮寄:Test92@mydomain, mailEnabled:对, 邮件昵称:Test92, onPremisesLastSyncDateTime:null, onPremisesProvisioningErrors:[], OnPremiseSecurityIdentifier:null, onPremisesSyncEnabled:null, PreferredCatalLocation:null, 代理地址:[smtp:Test92@mydomein.be,SMTP:Test92@mydomain.be], 更新日期:2018-08-06T11:56:52Z, ResourceBehavior选项:[ 隐藏组外观, 欢迎光临, 连接器已禁用, 订阅组成员 ], 资源调配选项:[], securityEnabled:false, 可见性:隐藏成员, 扩展功能\u FE217465583431C953114FF7268B7B3 \u教育\u对象类型:节 } 请注意,这两个组的creationOptions和resourceBehaviorOptions是不同的

当我尝试向GRAPH API创建的教育类添加新作业时,我收到以下消息:正在设置教育类


必须发送术语startdate和enddate

"term":{  
      "displayName":"Term2",
      "externalID":"2",
      "startDate":"2017-09-01",
      "endDate":"2019-08-31"
   }

你的观察非常准确。当前在Graph Beta中的assignments Api没有读取所有可能表示类类型的属性。creationOptions和另一个可标记为组的扩展属性是类类型。确切地说,要标记哪个属性取决于创建组的时间和方式

我们正在进行修复,并在本周将其修补。
谢谢

能否提供一个代码示例,说明如何在Microsoft Graph中创建组?我用代码示例更新了问题a的顶部。