Getting a "user is not allowed to do action [find]"

Hello have any of you guys have any advice in solving a “user is not allowed to do action [find] on [test.postmessages]”}" error

1 Like

Hi @Kang_Lin, welcome to the MongoDB Community forums. :wave:

Are you authenticated with a user that has permissions to read from the database/collection that is giving you the error?

Hello, @Doug_Duncan thanks for responding I was able to solve the problem thank you.

1 Like

Is it possible to explain on how to solve this problem please. I am getting the same error in my project.

Thank you

The standard readWriteAnyDatabase@admin worked