title: Can't create user
body: <p>I was using MongoDB version 2.6.6 on Google Compute Engine and used the click to deploy method.</p>
  
  <pre><code>rs0:SECONDARY&gt; db.createUser({user:"admin", pwd:"secret_password", roles:[{role:"root", db:"admin"}]})
  2015-07-13T15:02:28.434+0000 Error: couldn't add user: not master at src/mongo/shell/db.js:1004
  
  rs0:SECONDARY&gt; use admin
  switched to db admin
  rs0:SECONDARY&gt; db.createUser({user:"admin", pwd:"secret_password", roles:["root"]})
  2015-07-13T15:13:28.591+0000 Error: couldn't add user: not master at src/mongo/shell/db.js:1004
  </code></pre>