Replies: 1 comment
-
Okay, I have to run the ->groups() not on the Collection Object but on the ActiveDirectory\User-Object instead: $groups = $user[0]->groups->get(); Next point: The ->groups->get() is not only returning the names, its also downloads the members (DN) of that groups, don't know how fast that is, but I'm in several groups with ten thousend of members ["member"]=> array(0) { } ["member;range=0-9999"]=> array(10000) { |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The Error Message: Method LdapRecord\Models\Collection::groups does not exist. [vendor/illuminate/macroable/Traits/Macroable.php:112]
if(filter_var($uid, FILTER_VALIDATE_EMAIL)) { $user = User::where('userPrincipalName', $uid)->get(); } else { $user = User::where('samaccountname', $uid)->get(); } $groups = $user->groups()->get();
Any Ideas?
Beta Was this translation helpful? Give feedback.
All reactions