Connecting Tech Pros Worldwide Help | Site Map

Check User Group in Active Directory

pbala's Avatar
Member
 
Join Date: Dec 2008
Location: Tamil Nadu
Posts: 34
#1: Oct 6 '09
Check the User is the Member of One Group using Active Directory in C#.net

System.DirectoryServices.AccountManagement.Princip al.IsMemberOf(System.DirectoryServices.AccountMana gement.GroupPrincipal)




How to find the "System.DirectoryServices.AccountManagement.GroupP rincipal"?
Plater's Avatar
Moderator
 
Join Date: Apr 2007
Location: New England
Posts: 7,148
#2: Oct 7 '09

re: Check User Group in Active Directory


Quote:
The type or namespace name 'DirectoryServices' does not exist in the namespace 'System' (are you missing an assembly reference?)
As stated, did you add the assembly reference?

And:
http://msdn.microsoft.com/en-us/libr...principal.aspx
Reply