Determine UserID as member of WinNT usergroup
Someone must have done this before easily.
I need to identify whether a UserID (of Windows 2000) is a member of certain NT usergroup (like SalesManager).
I tried DirectoryEntry and DirectorySearcher in the System.DirectoryServices name spaces, but I cannot get it to work. I also tried WindowsIdentity and WindowsPrincipal.IsInRole but with no correct result. I could not find any sample codes anywhere. Any suggestion????
Helppp ... pleaseeee!.
Appreciate it.