How to create a user and grant him read-only access for all databases available in mongodb(2.2/2.4/2.6) instance. I am new to mongodb, please provide detail step by step process.
user name: sec.ai
password: test
databases: school, local, admin, employee, deptt
More about the currently supported MongoDB versions here.
At the time I’m writing this, MongoDB 3.6, 4.0, 4.2 and 4.4 are supported. Note that MongoDB 3.6 will reach its end of life in April 2021. So it’s time to update .