Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to get NT Groups
Message
General information
Forum:
Visual Basic
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00604278
Message ID:
00604344
Views:
30
>How do I get a list of NT Groups a user belongs to?

I found one solution. Here is a code snipit from the following document:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/netdir/adsi/iadsuser_groups.asp

Dim usr As IADsUser
Set usr = GetObject("WinNT://Microsoft/JSmith,user")
For Each grp In usr.Groups
Debug.Print grp.Name & " (" & grp.Class & ")"
Next

If anyone has another solution, feel free to share.
Tim Westmoreland
Software Engineer
Skyline Technologies, Inc.

"Upper classes are a nation's past; the middle class is its future." - Ayn Rand, Russian-born author (1905-1982).
Previous
Reply
Map
View

Click here to load this message in the networking platform