I'm creating and updating Groups in Active Directory using the GroupPrincipal
class in System.DirectoryServices.AccountManagement
. When creating and updating, I also need to be able to set the ManagedBy
property that you are able to set in the Managed By
tab in the groups properties in the AD management console.
Can it be done programatically?