How to get the list of users/groups and their policy associations?

Here is a previous post relating to this question: