By default, mongoexport uses authSource=admin. You can resolve the issue by adding –authenticationDatabase=admin to the export command. Source MongoDB – mongoexport Updated command
Hybrid Cloud Solutions Architect
By default, mongoexport uses authSource=admin. You can resolve the issue by adding –authenticationDatabase=admin to the export command. Source MongoDB – mongoexport Updated command