Gettting error while using insertMany()

When I am trying to check the use of insertMany() command it shows an error called “not authorized on test to execute the command” .Please help me to solve this error.
Thanks in advance,

Hey @Pavithra_60493

First are you trying to insertMany() on your cluster or the class cluster. If the class this is not allowed. If your cluster then have you made sure to include the authentication information (username, password, authenticationDatabase) in the connection command?