c# - How to create Distribution Group with Microsoft Graph? -
i'm trying create distribution group (not office 365 group (so not unified group), , not security group) microsoft graph api without success. i'm getting error.
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); an exception raised telling me not supported : request_badrequest message: service not support writes of mail-enabled groups. please ensure mail-enablement property unset , security-enablement property set.
if not possible how in c# without powershell, api should used ?
regards
well, found lot of things related ad should not done directory through azure ad, directly on on-premise active directory.
these modifications can synchronized microsoft tools (ex: azure ad connect).
doing so easier using microsoft graph not ready prime time several things.
Comments
Post a Comment