Check variant group constraint against the groupIds field