See / setup a user with MongoDB Compass?

Evanss picture Evanss · Oct 27, 2017 · Viewed 15.9k times · Source

With MongoDB Compass is it possible to see users for a database or create new ones?

Answer

Evanss picture Evanss · Oct 27, 2017

Ive managed it on the command line with:

mongo
use (my database name)
db.createUser( { user: "myuser", pwd: "password", roles: ["readWrite"] })

However I would still much prefer a GUI to do this.