I have an external application that connects to my MongoDB, all was working great with the M0 tier, but I decided to upgrade to leverage the Power BI Connection capabilities.
I’m really struggling here because now my application won’t connect to the database at all.
Just to clarify, are you not able to connect at all after upgrading? Based off the error, it seems connection is possible but the database user is not authorized to perform a db.collection.find() command on the "system.views" collection within the EmergDB database.
And now I see system.views as a collection in my database (never existed before).
I am having this issue when executing aggregate quries using the Node mongo library 6.11.0 and Mongo version 7.0.16. I get the following error attempting to execute my aggregate:
not authorized on <database name> to execute command { aggregate: "system.views", pipeline: [ { $match: ...
I used Atlas to change the role of the user to atlasAdmin@admin but I had the same issue. In addition, I get the same issue when using Studio3T to access system.views for the DB using any DB user.