Group members by userId. Ref #125