Option 1: dsquery utility
Search Users by name
dsquery user -name "telson*"
"CN=Telson Thomas,OU=Administrators,OU=Users,OU=Techcuriosity,DC=TECHCURIOSITY,DC=LOCAL"
"CN=Telson Thomas (Admin),OU=Administrators,OU=Users,OU=Techcuriosity,DC=TECHCURIOSITY,DC=LOCAL"
Search Group by name
dsquery group -name "admin*"
"CN=Administrators,CN=Builtin,DC=Techcuriosity,DC=LOCAL"
Option 2: Active Directory Users and Computers
By default, most of users are created in the default container “Users”. However, users and groups may be organized into specific Organization Unit (OU). Administrator can use “Active Directory Users and Computers” (ADUC) to review the distinguishedName of the OU or container.

Click on “View” to see the distinguishedName.