0
我試圖創建一個通訊組(不是Office 365組(不是一個統一的組),而不是一個安全組),這要歸功於Microsoft Graph Api而沒有任何成功。我總是遇到錯誤。如何使用Microsoft Graph創建通訊組?
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 消息:該服務目前不支持啓用郵件的組的寫入。請確保未設置郵件啓用屬性並設置安全性啓用屬性。
如果無法在C#中如何在沒有PowerShell的情況下執行此操作,應該使用哪個API來實現這一點?
問候