Installing and setting up MongoDB on Windows - Documentation for BMC Digital Workplace Advanced 18.02

Connect to the mongo shell and create the administrator user and the social database administrator:

Note

Open a new command window to execute mongo.exe shell to create administrator users.

use admin
db.createUser( {
user: "siteUserAdmin",
pwd: "password",
roles: [ { role: "userAdminAnyDatabase", db: "admin" } ]
});
db.createUser( {
user: "siteRootAdmin",
pwd: "<siteRootAdminPassword>",
roles: [ { role: "root", db: "admin" } ]
});
use social
db.createUser( {
user: "social_admin",
pwd: "<social_adminPassword>",
roles:
[ { role: "dbOwner", db: "social" } ]
});

You Might Also Like