I am writing a program that operates on one main mongoDb but may create new mongo databases.
I am trying to figure out what are the minimal rights that the mongoDbUser (used by my program) needs in order to be able to create new databases and have readWrite access to the databases it has created.
Your
mongoDbUser
user needs the role:readWriteAnyDatabase
.From the docs: