A
Alex Bibiano
I use this code to get the current user in my Windows application:
AppDomain.CurrentDomain.SetPrincipalPolicy(PrincipalPolicy.WindowsPrincipal);
WindowsIdentity wi = WindowsIdentity.GetCurrent();
Console.WriteLine(wi.Name);
now, I want get the windows groups this users belong. How can I do it?
If I have to search in the ActiveDirectory, how can I know if the user is in
an ActiveDirectory Domain and his path?
A lot of thanks
AppDomain.CurrentDomain.SetPrincipalPolicy(PrincipalPolicy.WindowsPrincipal);
WindowsIdentity wi = WindowsIdentity.GetCurrent();
Console.WriteLine(wi.Name);
now, I want get the windows groups this users belong. How can I do it?
If I have to search in the ActiveDirectory, how can I know if the user is in
an ActiveDirectory Domain and his path?
A lot of thanks