Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to get the content of the MEMBEROF property for a group

Status
Not open for further replies.

LordJudas

Technical User
Apr 18, 2002
11
US
I'm trying to get the memberof property of group.

member = mygroup.memberof works but this is not a collection, not an object and not convertible to a string.

Can someone help me, this is urgent
 
It's an array of strings.

Set oGroup = GetObject("LDAP://......")
sGroups = oGroup.Memberof
For Each sGroup In sGroups
MsgBox sGroup
Next Jon Hawkins
 
Are you sure ? When I tried it, I received an error code msg saying me this was not a collection.

May be the group on which I tested contained only one group, that mean I need to differenciate if this is an array or a single string ?

I will test tomorrow, get tuned and thanks for the answer
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top