macOS / binaries /

od_user_homes

/usr/libexec/od_user_homes
Executable map program for auto_home records synthesized from user records

od_user_homes is a program that takes a user name specified by username and, if there's a user record for that user in Open Directory, and that user record contains a HomeDirectory attribute, and the portion of the HomeDirectory attribute is empty or just /, prints the URL from that attribute, and exits with an exit status of 0.

source: man