由于 Microsoft Graph Api,我正在尝试创建一个通讯组(不是 Office 365 组(所以不是统一组),也不是安全组),但没有成功。我总是遇到错误。
var client = new GraphServiceClient(new AzureAuthenticationProvider());
Group group = new Group();
group.DisplayName = "Test Liste";
group.MailEnabled = true;
group.SecurityEnabled = false;
group.GroupTypes = new string[] {"DynamicMembership"};
group.MailNickname = "testliste";
var newG = client.Groups.Request().AddAsync(group).Result;
Console.WriteLine(newG.Id);
引发了一个异常,告诉我它不受支持:Request_BadRequest 消息:该服务当前不支持写入启用邮件的组。请确保未设置邮件启用属性并且设置了安全启用属性。
如果在没有 powershell 的情况下无法在 C# 中执行此操作,那么应该使用哪个 API 来执行此操作?
问候