Get on the good side of someone

To be liked by another person.  (The good side = friendly with someone)

Ask Martha to contact Beth.  She’s got on Beth’s good side and he will be likely to say ‘yes’ if she asks.