I have this request
The requirements for this new user are:
- Role: readWrite on applicationData database
- Authentication source: admin
- Username: m103-application-user
- Password: m103-application-pass
I did create user
MongoDB Enterprise > db.createUser({
… user: “m103-application-user”,
… pwd: “m103-application-pass”,
… roles: [ {role: “readWrite”, db: “applicationData”} ]
… })
Successfully added user: {
“user” : “m103-application-user”,
“roles” : [
{
“role” : “readWrite”,
“db” : “applicationData”
}
]
}
but validation is failed
vagrant@m103:~$ validate_lab_first_application_user
User ‘m103-application-user’ not configured correctly - your application’s user
should only have access to the applicationData database.
not sure how my user has access to other databases?
Thanks,