how do I export membership users?

I want to export the registered users to .csv (or comparable), including their membership levels. The export option only seemed to cover content, not users so I dont know where to begin.