to have a good, friendly, etc. relationship with sb :
I had no idea that you and he were on such intimate terms (= were such close friends) .
He is still on excellent terms with his ex-wife.
I'm on first-name terms with my boss now (= we call each other by our first names) .