groups

1 user in member of 4 groups find file permissions and default group

/etc/passwd only contains the default group of the user , so you can grep the gid of group from file and match it with /etc/group to the default group of particular user