|    
|
From: wbembrid (Will) Subject: IsInRole .NET Date: 7 Jun 2002 07:14:40 -0700
| |
I was able to get this to work - Since I could not find a post that did here is mine: Dim testuser As New System.Security.Principal.WindowsPrincipal(User.Identity) If (testuser.IsInRole("MyDomain\MyGlobalGroup")) Then Response.Write("User is in Group" + "<BR>") Else Response.Write("User is not in group" + "<BR>") End If If (testuser.IsInRole(System.Security.Principal.WindowsBuiltInRole.Administrator)) Then Response.Write("User is in Administrators") Else Response.Write("User is not in Administrators") End If
| | Post a follow up to this message... |
|  |
|