in the good graces of (someone)
In one's favor; having earned one's approval or regard. John's been in the good graces of me ever since he helped get me out of debt. I was definitely not in the good graces of Mary for a while after I lost her cat.
in the good graces of
In favor with.