M103 Chapter 1 Lab: Creating First Application User

After spending an hour trying to pass the ‘create first application user lab’, I wanted to share some hints to others having difficulty.
The mongod daemon is already running in the back ground on port 27000. You must login with the correct port:
mongo --host 127.0.01:27000 -u “m103-admin” -p “m103-pass” --authenticationDatabase “admin”

The instructions do not mention it, but you should create the user on the ‘admin’ database.
show dbs
use admin

Then createUser(). After the ‘Successfully added’ message, click ‘run test’ button.

Hope it helps


Hi @Bryon_Smith,

Thanks for sharing your experience.

I guess this information has been mentioned in the lab instructions.

  1. Use the db.createUser() command to create a user for a CRUD application.The requirements for this new user are:
  • Role: readWrite on applicationData database
  • Authentication source: admin
  • Username: m103-application-user
  • Password: m103-application-pass

~ Shubham

Thank you for letting me know. I must have read that 50 times and still missed it. :crazy_face:


Thank you for your post!!

thank you so much for sharing