use <database> db.createUser( { user: "<username>", pwd: passwordPrompt(), // Or "<cleartext password>" roles: [ { role: "readWrite", db: "<database>" } ] } )