Active Directory

  • Thread starter Thread starter Tim
  • Start date Start date
T

Tim

How do you check to see what groups a user belongs to
within a domain? Thanks!

Tim
 
Here's the basics you can search for the nuances of the WindowsIdentity and
WindowsPrincipal classes. If this is for an ASP.NET application you can
access the user.Identity

Imports System.Security

Dim wi As New Principal.WindowsIdentity("userName")

Dim wp As New Principal.WindowsPrincipal(a)

If wp.IsInRole("domainName\groupName") Then

End If
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Back
Top