Diferences between Authentication source and db on each role

In the lab of chapter 1 Creating First Application User the differences between *Role: readWrite on applicationData database and Authentication source: admin is both of the section roles?

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

Captura

The authentication source is the database that holds the user information about its privileges. In the majority of the cases this database is named admin.

The applicationData is the data that holds the data for which we want to apply the privileges. The database the user will work with.

1 Like

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