Find by guid? #498
Answered
by
grantholle
grantholle
asked this question in
Q&A
Find by guid?
#498
-
Is there a way that I can get the AD object from a guid? Here's what I've attempted on my use LdapRecord\Models\ActiveDirectory\User as LdapUser;
use LdapRecord\Utilities;
LdapUser::findBy('objectguid', $this->guid); // I assumed this wouldn't work but tried anyway
LdapUser::findBy('objectguid', Utilities::stringGuidToHex($this->guid)); Both return |
Beta Was this translation helpful? Give feedback.
Answered by
grantholle
Sep 12, 2022
Replies: 1 comment 1 reply
-
As is typical with me and posting to a discussion and then immediately finding it in the docs... There is a |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
grantholle
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
As is typical with me and posting to a discussion and then immediately finding it in the docs... There is a
findByGuid
function (as I would have guessed because @stevebauman is awesome).