Where are users stored?

Technical Support
  • Hi. Noob question, why can't I find users created with:

    use nodebb
    db.createUser( { user: "nodebb", pwd: "password", roles: [ { role: "readWrite", db: "nodebb" }, { role: "clusterMonitor", db: "admin" } ] } )

    Command shows: Successfully added user

    I query {user:"nodebb"} in all collections of nodebb but got nothing. In nodebb database, there are three collections: objects, sessions, socket.io.

  • You created a mongodb database user, not a NodeBB user. Creating NodeBB users is more complicated.


Suggested Topics