Welcome to MSDN Blogs Sign in | Join | Help

Browse by Tags

All Tags » NTAccount   (RSS)

How to check if a user belongs to a Security or Distribution group in ASP.Net

If you need to check at Runtime if your User belongs to a Security group. Here's how to do it - Assuming the IIS Application has Authentication set to "Windows Authentication". The Request object of HttpContext has the Logged in users Identity which contains
 
Page view tracker