Terminal equivalent command for Directory Utility View specific user OD data
The command that ships with macOS to do LDAP lookups works with many Active Directory servers.
dscl /LDAPv3/ldap.company.com -list /Users UniqueID
The above command will list out directory users. If you bind your Mac to AD you can get lots more integrations, but it’s not needed to just read the directory. I tries power shell in the past, but ran into errors installing the Active Directory modules but that might also be a promising tool if that fits your definition of “native”
- https://docs.microsoft.com/en-us/powershell/scripting/install/installing-powershell-on-macos