Being in good graces with someone or something is akin to having favorable relations, or being on good terms.