Re: Add ActiveDirectory user to Global Security Group
- From: Marc Scheuner <no.spam@xxxxxx>
- Date: Tue, 21 Nov 2006 06:48:13 +0100
I am struggling with a problem, i want to add ActiveDirectory user to
Global Security Group using C# and DirectoryServices. Any suggestiion
1) Bind to the group in question.
DirectoryEntry group = new
DirectoryEntry("LDAP://cn=MyGroup,ou=SomeOU,dc=company,dc=com");
2) Call the .Add method on the "member" property of the group,
specifying the user to add with its distinguishedName
group.Properties["member"].Add("cn=Joe
User,ou=Research,ou=HQ,dc=company,dc=com");
3) Call .CommitChanges on the group to commit the changes to the store
group.CommitChanges();
Done!
Marc
.
- References:
- Add ActiveDirectory user to Global Security Group
- From: killbill
- Add ActiveDirectory user to Global Security Group
- Prev by Date: Re: a .dll works on 32-bit machine but not 64-bit machine
- Next by Date: Re: Display 2 lines in ListView column
- Previous by thread: Add ActiveDirectory user to Global Security Group
- Next by thread: A question about visual studio team suite
- Index(es):