List Users/Privilages script?

I’m looking for a script to run that will give a print out a list of all users and their privileges on XServe boxes. Text file, PDF etc. doesn’t matter so long as it saves to desktop.