无法在 'Team' 类型的对象上找到成员 'group@odata.bind'

Could not find member 'group@odata.bind' on object of type 'Team'

我正在尝试使用特定模板从群组创建团队。下面是我的 API 电话。

                var team = new Team
                {
                    DisplayName = "My Class Team",
                    Description = "My Class Team’s Description",
                    AdditionalData = new Dictionary<string, object>()
                    {
                        {"template@odata.bind", "https://graph.microsoft.com/beta/teamsTemplates('educationClass')"},
                        {"group@odata.bind", "https://graph.microsoft.com/beta/groups('89c3399b-3722-438c-b106-55a2c7eccf2a')"}
                    }
                };

                var teamCreated = await graphClient.Teams
                  .Request()
                  .AddAsync(team);

但是我收到一个错误,

Could not find member 'group@odata.bind' on object of type 'Team'. Path '['group@odata.bind']', line 1, position 202.,Could not find member 'template@odata.bind' on object of type 'Team'. Path '['template@odata.bind']', line 1, position 306.,Could not find member '@odata.type' on object of type 'Team'. Path '['@odata.type']', line 1, position 380.,Could not find member 'template@odata.bind' on object of type 'Team'. Path '['template@odata.bind']', line 1, position 435.,Could not find member 'group@odata.bind' on object of type 'Team'. Path '['group@odata.bind']'

我已经检查并应用了 post 中提到的修复,但仍然无法解决问题。

确保您已在应用程序级别添加下图中显示的所有必需权限: