getent

Get a list of users belonging to a group:

getent group beandog