get in good with (someone)
To become the object of someone's favor; to do something that causes someone to be pleased. The superintendent is a powerful woman in the school district, so I hope you can get in good with her. I only got in good with John after I baked him a cake.