Adding a user to an ActiveDirectory security group via ASP.NET(VB) page
I'm trying to add a user to a security group using the code below. I am continuing to get the error:
"The server is unwilling to process the request. (Exception from HRESULT: 0x80072035)"
on the CommitChanges line. Any ideas??
Dim group As New DirectoryEntry("LDAP://xx.xxx.xxx.xxx/CN=ussrm-users,OU=Security Groups,OU=Groups,OU=xyz,OU=abc,OU=AMR,OU=myou,DC=mycorp,DC=org")group.Properties("member").Add("LDAP://xx.xxx.xxx.xxx/sAMAccountName=myuser1,OU=Pending Users,OU=Users,OU=xyz,OU=abc,OU=AMR,OU=myou,DC=mycorp,DC=org")group.CommitChanges()
HTH