title: Using boto (AWS Python), how do I get a list of IAM users?
body: <p>Newbie question. I'm expecting to be able to do something like the following:</p>
  
  <pre><code>import boto
  from boto.iam.connection import IAMConnection
  cfn = IAMConnection()
  cfn.get_all_users()
  for user in userList:
      print user.user_id
  </code></pre>
  
  <p>The connection works fine, but the last line returns the error "'unicode' object has no attribute 'user_id'". </p>
  
  <p>I did a <code>type(userList)</code> and it reported the type as &lt;class 'boto.jsonresponse.Element'&gt;, which doesn't appear (?) to be documented. Using normal JSON parsing doesn't appear to work either.</p>
  
  <p>From <a href="http://article.gmane.org/gmane.comp.python.boto/1804/match=jsonresponse" rel="nofollow">another source</a>, it looks as if the intent is the results of an operation like this are supposed to be "pythonized." </p>
  
  <p>Anyway, I'm pretty new to boto, so I assume there's some simple way to do this that I just haven't stumbled across. </p>
  
  <p>Thx!</p>