Executed without any options, this command lists all user logins sorted by login. The output shows the login ID and the account field value from the system's password database as specified by /etc/nsswitch.conf.
The following options are supported:
See attributes(5) for descriptions of the following attributes:
nsswitch.conf(4), attributes(5)
A user login is one that has a UID of 100 or greater.
The -l and -g options can be combined. User logins will only be listed once, even if they belong to more than one of the selected groups.