You can't please all the people all the time is a true statement. Everyone from peons to the president and other leaders will receive much criticism no matter what choices they make. You don't have to be a genius to figure out that men and women are generally much harder to please than God is. But to be on the safe side, it's a good idea to be up to speed on what it takes to please God.
[Jeremiah 5:1b] If you can find a single person, anyone who acts justly, anyone who seeks the truth, then I will forgive the city. If you are fair and honest with other people, plus interested in learning and obeying the truths presented in the Bible, then God is pretty pumped by how you are living.