Repository navigation
Not understanding recursive group members #301
clevelasosu
started this conversation in
General
Replies: 1 comment 5 replies
|
Hi @clevelasosu, Are you binding to your directory with an administrator account (I.e. an account with full domain admin)? |
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I want to query an AD group and get the resulting users. My test group contains one other group. I'm able to get the group:
$group = Group::findBy('cn','my_group');
$members = $group->members()->recursive()->get();
If I do a foreach loop, I just get the subgroup.
foreach ($members as $member) {
print_r($member);
}
That returns a LdapRecord\Models\ActiveDirectory\Group Object
Leaving out the ->recursive() call returns the same thing.
I just want the users. Is that possible without a recursive loop?
All reactions