MPI_Comm_group

int MPI_Comm_group(MPI_Comm, MPI_Group *);
Returns the group handle associated with a communicator.