I have created this type of user but with it I can do everything When doing:
what I do.
use database
db.logout() -----------> para asegurarme que no este logeado con ningun usuario
db.auth("restrictedUser", "password") ---------------------->ingreso con el usuario sin privilegios
db.getUser("restrictedUser", { showPrivileges: true})
{
"_id" : "beatsapp.restrictedUser",
"user" : "restrictedUser",
"db" : "beatsapp",
"roles" : [ ],
"inheritedRoles" : [ ],
"inheritedPrivileges" : [ ],
"inheritedAuthenticationRestrictions" : [ ]
}
but I can create and delete
db.createCollection("test");
db.test.drop();