Find users in a linux group

Problem

You would like to find the users in a group in linux.

Solution

You can have a list with the users by using getent (getentries):

getent group <groupname>