Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Adsi
Message
From
18/11/2002 15:52:12
 
 
To
18/11/2002 10:25:49
Alvin Lourdes
Children and Youth Services Cluster
Toronto, Ontario, Canada
General information
Forum:
Visual Basic
Category:
Coding, syntax & commands
Title:
Re: Adsi
Miscellaneous
Thread ID:
00723861
Message ID:
00724034
Views:
21
Alvin,

Check the code below:
Dim usr As IADsUser
Set usr = GetObject("WinNT://Domain/ALourdes,user")
For Each grp In usr.Groups
    Debug.Print  grp.Name & " (" & grp.Class & ")"
Next
HTH
>hi,
>
>I need to find the Group a user belongs to.
>My logic now validates a user within a known group.
>
>I would like to determine the group a user belongs to just using their login.
>
>
>Any ideas?
>
>Thanks,
>Alvin
Previous
Reply
Map
View

Click here to load this message in the networking platform