Can anyone tell me how I query Active Directory using c# or vb.net to find out what groups a user is a member of for authentication purposes.
Thanks
Printable View
Can anyone tell me how I query Active Directory using c# or vb.net to find out what groups a user is a member of for authentication purposes.
Thanks
You should use the DirectorySearcher class, on MSDN you can find several query samples.