Mongorestore using OplogReplay

Please refer to the link shared by Kevin.Restore has access to all non system related objects but when you are accessing system related objects/running internal commands additional privileges need to be given
That’s why you need to create a custom role with access any object and grant it to the user who is performing the restore

2 Likes