I need to be able to compare the users active directory groups against a list of acceptable groups. This is not for authentication.
I know i can use System.DirectoryServices but i have seen many posts that say to use AccountManagement but all i see is .Active Directory.
Can anyone please assist me in the right direction?
Try something like this: check out the
System.DirectoryServices.AccountManagement(S.DS.AM) namespace. Read all about it here:Basically, you can define a domain context and easily find users and/or groups in AD:
The new S.DS.AM makes it really easy to play around with users and groups in AD!