c# - Change groupType of ActiveDirectory Group -


does know, how change grouptype attribute of ad group via c#?

after correctly retrieving group, tried following, throws directoryservicescomexception:

group.properties["grouptype"].value = activeds.ads_group_type_enum.ads_group_type_global_group | activeds.ads_group_type_enum.ads_group_type_security_enabled; group.commitchanges(); 

do know way change grouptype property existing group?

without knowing exception get, make following suggestion:

ensure attempting valid conversion universal -> domain local or global domain local -> universal global -> universal

if can't aduc, won't able in programm, double check there.


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -