MPI_Win_get_group

int MPI_Win_get_group(MPI_Win, MPI_Group *);
Returns a duplicate of the group of the communicator used to create a window.