Sections
     
     
WWWCoder.com Resource Directory

ADSI: Get Group Membership for Account
10/12/2004 1:28:41 PM

This code snippet will obtain the security groups that a user account belongs to.

 

Dim strDomain = “mydomain“
Dim strUser = “someuser“

Function GetMemberGroups()
 Dim oUser = GetObject(strDomain & "/" & strUser)
 Dim strTemp
 For Each oGroup In oUser.Groups
  strTemp = strTemp & oGroup.Name & "<br>"
 Next
 GetMemberGroups = strTemp
End Function


Page Options:
format for printing  Format for Printer
email article  Email Page
add to your favorites   Add to Favorites
How would you rate the quality of this content?
Poor - - Excellent
Comments?
Overall Rating:
Comments Left:
Left on 1/27/2010 4:08:32 AM by Anonymous
Comments: C'mon wwwcoder - just delete this.  This is the type of crap that is clogging up t'interweb and making searching in google more and more frustrating for tech pros looking for quick answers.  It's your responsibility to make sure that the quality of postings is adequate.  Just delete it!
Left on 3/4/2009 3:26:46 PM by Anonymous
Comments: Note to User: Before publishing code, make sure it works. wwwwcoder does not supply unit testing.
Left on 1/27/2009 10:09:33 AM by Anonymous
Comments: Pure crap
Left on 5/30/2007 9:24:24 AM by Anonymous
Comments:
No ratings available.
Left on 2/20/2006 7:08:45 AM by Anonymous
Comments: In one word: Booooooooooooooooo !
Left on 5/9/2005 8:56:16 AM by Anonymous
Comments: useless
Left on 5/5/2005 3:54:27 PM by Anonymous
Comments: You must either be a student or a manager...
Left on 1/26/2005 2:23:03 PM by Anonymous
Comments: You're missing out a binding to a com object, such as "WinNT://" or whatever.
Left on 1/26/2005 6:30:27 AM by Anonymous
Comments: incomplete code, useless
Left on 12/1/2004 2:45:16 PM by Anonymous
Comments: Obviously you're an idiot and don't know what ADSI is. ADSI is commonly used in classic ASP or via Windows Scripting Host, no such thing as referencing a class.
No ratings available.
Left on 12/1/2004 2:35:11 PM by Anonymous
Comments: This is the saddest code sample I have ever seen.  No reference to a proper ADSI class was made.
     
     

 

 

     
     

 


 


Digg This
 


DotNetNuke Platinum Benefactor

 


 


Digg This
 


DotNetNuke Platinum Benefactor

     
     

Other family network sites: santry.com - katieandkarleigh.com

Powered by 

 

     
Copyright 20010 - Santry Technology Solutions, Box 172, Girard, PA 16417, (814) 774-0970
Privacy Statement | Terms Of Use