root role in mongodb1 min read
Hi All, this document deals with to add a user in MongoDB with root role. This user will have the super admin access over the admin database to perform all admin related activities.
Step 1: Login to mongo shell.
Step 2: create a user with root role.