Mongorestore using OplogReplay

It kind of is, if you’re dealing with databases and collections. However, applyOps is an internal MongoDB command, and thus require a special system-level privilege.

From https://www.mongodb.com/docs/database-tools/mongorestore/#required-access

To run with --oplogReplay, create a user-defined role that has anyAction on anyResource.

Grant only to users who must run mongorestore with --oplogReplay.

Hope this helps

Best regards
Kevin

3 Likes