A good rule of thumb while shooting aperture priority is to have the f-stop twice as much as the members present in the group. So if you have 4 or 5 people you can set your aperture to f/8 or f/10 respectively. This can ensure that every member of the group is in focus.