Register | Login
Sunday, July 20, 2008

Sections
  
About Us
  
Hosting Provided by Server Intellect
Partners
Downloads
  
 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 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.
  

 Latest Articles
  

 Latest News
  

 

Spotlight
Syndication

 


 


Digg This
 


DotNetNuke Platinum Benefactor

  
 

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