Creating first User

I don´t get pass the test but mongo say I got it ¿?

 db.createUser({user:"m103-application-user", pwd:"m103-application-pass", roles:[{db:"admin", role:"readWrite"}]})

Successfully added user:

 {
        "user" : "m103-application-user",
        "roles" : [
                {
                        "db" : "admin",
                        "role" : "readWrite"
                }
        ]
}

firstly I authenticated with my password and username

Please verify the requirement.

The roles entry has not been assign to the appropriate database.

1 Like

thanks, I also had to take into account the order, first the role and then the db. It was the only way.

1 Like

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.