ingratiate (oneself) with (someone)
To make an effort to receive someone's favor. I have no desire to ingratiate myself with these rich buffoons, no matter how many swanky doors they can open for me.
ingratiate oneself with someone
to work oneself into someone's favor. Why do you have to ingratiate yourself with everyone? Don't you know how to be just plain friends? She was very obvious in her effort to ingratiate herself with the boss.