How to get the groups of a user in Active Directory? (c#, asp.net)
If you’re on .NET 3.5 or up, you can use the new System.DirectoryServices.AccountManagement (S.DS.AM) namespace which makes this a lot easier than it used to be. Read all about it here: Managing Directory Security Principals in the .NET Framework 3.5 Update: older MSDN magazine articles aren’t online anymore, unfortunately – you’ll need to download the … Read more