Boundary value problems compatible with symmetries