macOS / binaries /

id

/usr/bin/id
Return user identity

The id utility displays the user and group names and numeric IDs, of the calling process, to the standard output. If the real and effective IDs are different, both are displayed, otherwise only the real ID is displayed.

source: man