Given a GUID representing a user in Active Directory, how would I use this to determine the user’s “distinguished name” using C#?
The GUID is retrieved earlier in our application using directoryEntry.Guid;
MSDN Link
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
As you’ve made it clear a GUID is what you’re searching on, try this:
I’ve used this with
IdentityType.Nameso can’t be sure it’ll work forIdentityType.Guid, but it’s worth a try.