title: Mongo - How can I find out what roles the user I am connected as has? How can I assign a user full read-write access?
body: <p>I have been able to connect to my Mongo instance (which is hosted in the cloud at Compose.io -- it is an "addon" through Heroku) from my MacBook terminal command line.</p>
  
  <p>However, I cannot perform any operations.  Commands like "show collections" and "show users" fail with a "not authorized" error.</p>
  
  <p>How can I find out what roles the user I am connected as has?  Also, how can I add a user with full read-write permissions?  Of course I've tried:</p>
  
  <pre><code>db.createUser({
      user: "accountUser",
      pwd: "password",
      roles: [ "readWrite", "dbAdmin" ]
  })
  </code></pre>
  
  <p>but this command fails with <code>couldn't add user: not authorized on my_db to execute command</code></p>