I've been attempting and failing miserably at gathering all the groups that the user belongs to. I am able to get the superficial groups that the user directly belongs to by the use of:
if not blnErr then
for each objGroup in objADSI.Groups
strGroups = strGroups & "; " & objGroup.Name
next
end if
But the programming doesn't seem to post the information of recursive groups. If Hank belongs to CFO-CIO and that group is within CFO, and Hank isn't explicitly listed as a user in CFO, the program will say that Hank is only in CFO-CIO, instead of both. Is there a way to do this?
if not blnErr then
for each objGroup in objADSI.Groups
strGroups = strGroups & "; " & objGroup.Name
next
end if
But the programming doesn't seem to post the information of recursive groups. If Hank belongs to CFO-CIO and that group is within CFO, and Hank isn't explicitly listed as a user in CFO, the program will say that Hank is only in CFO-CIO, instead of both. Is there a way to do this?