add function to return a list of users that belong to groups