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)? |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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?
Beta Was this translation helpful? Give feedback.
All reactions