O'Reilly logo
  • Anilkumar Kalshetti thinks this is interesting:

db.createUser({ user:'admin', pwd:'admin', customData:{desc:'The admin user for admin db'}, roles:['readWrite', 'dbAdmin', clusterAdmin']

From

Cover of MongoDB Cookbook

Note

db.createUser({
user:'admin', pwd:'admin',
customData:{desc:'The admin user for admin db'},
roles:['readWrite', 'dbAdmin', 'clusterAdmin']