June 2014
Intermediate to advanced
696 pages
38h 52m
English
Once you have created a user administrator, you can use that account to create other user accounts that can administer, read, and write to the databases. You add user accounts by using the addUser() method inside the MongoDB shell. The addUser() method accepts a document object that allows you to specify the user name, roles, and passwords that apply to that user. Table 12.2 lists the fields you can specify in the document object.
Table 12.2 Fields used when creating users with the addUser() method
MongoDB provides a number of roles that you can assign to a user account. These roles enable you to implement intricate privileges ...
Read now
Unlock full access