Creation of Read Only User is not working

Hello! Welcome to the MongoDB community!

Are you trying to insert into the admin database?

Does your database have authentication and authorization enabled?

You can evaluate in the mongod.conf file in the security.authorization parameter.

1 Like