Federal Developer Evangelist, Robert Shelton, takes you through a 8 minute walkthrough/demonstration of how to create a group in active directory with .NET and to add users to that group. This demonstration is using the DirectoryServices namespace of the .NET framework.
You can find the code at my blog: http://sheltonblog.com
My other Programming AD Screen Casts:- Searching AD with .NET:http://channel9.msdn.com/Showpost.aspx?postid=132740- Adding users to Active Directory with .NEThttp://channel9.msdn.com/showpost.aspx?PostID=130700List of Group attributes for Active Directory:http://msdn.microsoft.com/library/default.asp?url=/library/en-us/adschema/adschema/c_group.aspList of values for the groupType Attribuet:http://msdn.microsoft.com/library/default.asp?url=/library/en-us/adschema/adschema/a_grouptype.asp~Robert
The following Visual Basic .NET example demonstrates how to add a single member to a group.
' Bind to the group. Dim group As New DirectoryEntry(groupDN) ' Add the user to the group. group.Properties("member").Add(userDN) ' Commit the changes to the group. group.CommitChanges()
This has solved a problem for me too, I'm glad I found this page. I'm also pleased that I stumbled across discount voucher information.
I think it's a good idea to explore how an agent-isolated model can be used to simplify expressing "ownership" of the UI. It certainly seems worth exploring in some depth. Thesis.