Mongodump is not working , getting "not authorized"

As which user you are running mongodump?
Does that user have proper privileges?
For shell commands connect to your primary
You are connected to secondary

1 Like