AppDomain.CurrentDomain.SetPrincipalPolicy

  • Thread starter Luis Esteban Valencia
  • Start date
L

Luis Esteban Valencia

AppDomain.CurrentDomain.SetPrincipalPolicy(PrincipalPolicy.WindowsPrincipal)
Dim authuser As WindowsPrincipal =
CType(System.Threading.Thread.CurrentPrincipal, WindowsPrincipal)
Dim strUserName As String = authuser.Identity.Name.ToString
strUserName = Right(strUserName, Len(strUserName) -
InStr(strUserName, "\"))

Session("UserName") = strUserName.ToUpper

'AUTHENTICATION TO APPLICATIONS
Dim strUserRights As String =
authuser.IsInRole("mydomain.com\MYGROUPNAME").ToString


Question: I am using the above code to see if a user is a member of a group
in my domain. Is there a way to get a list of the users email address that
are within this group -- (MYGROUPNAME)
 

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

Members online

No members online now.

Forum statistics

Threads
473,756
Messages
2,569,535
Members
45,008
Latest member
obedient dusk

Latest Threads

Top