With
getent group xyz
I get a list of users who are members of xyz with xyz either as a primary group or as secondary group.
How do I get a list of just those users who have xyz as their primary group?
My users are in LDAP, so I am not looking for solutions which involve parsing /etc/group.