I want to be able to read which AD Groups the connected user is in. Here's what I have so far, but it seems as though, only the users local groups are being read; not those in AD..
The Administrators = True, but the ITDevelopers role which is in AD, shows as False.
Any suggestions or tips for doing this would be appreciated
dlc
Code:
Dim userName As String
Dim wp As System.Security.Principal.WindowsPrincipal = New System.Security.Principal.WindowsPrincipal(System.Security.Principal.WindowsIdentity.GetCurrent())
Me.lbluser.Text = wp.Identity.Name
Me.TextBox1.Text = "IT Developers: " & wp.IsInRole("VirchowKrause\ITDevelopers") & vbCrLf & "Administrators: " & wp.IsInRole("BUILTIN\Administrators")
The Administrators = True, but the ITDevelopers role which is in AD, shows as False.
Any suggestions or tips for doing this would be appreciated
dlc