We illustrate the relations among the symmetry invariant group and constraint for a differential equation. Applied to the Kadomtsev-Petviashvili equation, some constraints and solutions are given. In particular, the equation associated with the symmetry sigma of the KP equation is introduced and discussed.