Welcome to MSDN Blogs Sign in | Join | Help

March 2009 - Posts

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