stand in with

[stand in with] {v. phr.}, {informal} To be liked by or friendlywith. - Usually used with "well".

John stands in well with theteacher.