Closed dbiljak closed 4 years ago
Hi @dbiljak,
Yup absolutely, this is actually shown in the documentation site as well:
https://ldaprecord.com/docs/common-queries/
// Retrieve all OU's:
$ous = \LdapRecord\Models\ActiveDirectory\OrganizationalUnit::paginate();
// Retrieve all groups:
$groups = \LdapRecord\Models\ActiveDirectory\Group:: paginate();
Note: I call the
paginate()
method above instead ofget()
to avoid hitting the maximum1000
return limit.
Great, thnx for quick reply.
Happy to help @dbiljak! 😄
Is there an easier way o retrieve all groups from AD (including OU-s and CN-s).
I know there is a Adldap::search()->ous()->get() and Adldap::search()->groups()->get()
that above was from adldap2
looking for something easier