Checking for Domain Group membership of client

  • Thread starter Thread starter Fred
  • Start date Start date
F

Fred

I need to check if a web client is a member of a domain security group so I
can direct them to different aspx web forms for different groups.

Thanx in advance.
 
Dear Fred
You will need to use a directoryentry object or any ADSI method to access
active directory
search for the user
get his memberships
do ur trick
reply to the group if you need help.
 
OK for all you out there who might have had the same question,
this is what I have found

I am using
Page.User.Identity.Name to return the data "DOMAIN\UserName"

Page.User..IsInRole("DOMAIN\GroupName") to return a "true" or "false" for
the status of membership in that group.

And it works perfectly.



Fred
 
Back
Top