In classic ASP I can get the NT User object and display all the groups that user belongs to by using the following code:
inUser = request.servervariables("AUTH_USER")
set objUser = getObject("WinNT://" & replace(inUser, "\", "/") & ",user")
for each vntGrp in objUser.Groups
Response.write vntGrp.Name & "
"
next
Can anyone please help me to find the NT group name of current user using ASP.net?
Thanks an lot for your help and time.
Loading
Replies
Know the answer? Post it — somebody with the same question will find it here.