title: mongodb: What minimum roles are required to list available databases?
body: <p>So, I have a user for mongo db with the following roles:</p>
  
  <pre><code>% mongo --username userw --password password --authenticationDatabase admin --host host
  ...
  &gt; use admin
  switched to db admin
  &gt; show users
  {
      "_id" : ObjectId("525d880dcd6e5e57f9431e16"),
      "user" : "userw",
      "pwd" : "****************",
      "roles" : [
          "readWriteAnyDatabase",
          "listDatabases"
      ]
  }
  </code></pre>
  
  <p>The user can read and write successfully to any database, but if I do:</p>
  
  <pre><code>&gt; show dbs
  Thu Oct 17 08:46:27.523 listDatabases failed:{ "ok" : 0, "errmsg" : "unauthorized" } at src/mongo/shell/mongo.js:46
  </code></pre>
  
  <p>I seem to be missing a role that lets me list databases. Which role do I need? (clusterAdmin fixes this, but seems overkill).</p>