MongoDB – Mongorestore does not work as expected

A very good day,

I have the user in the mongodb as follows who has the superuser privileges (I have confirmed the role setting with). Show users Command)

{
"_id": "admin.mongoadmin",
"user": "mongoadmin",
"db": "admin",
"Roll": [
        {
            "role" : "readWrite",
            "db" : "admin"
        },
        {
            "role" : "root",
            "db" : "admin"
        }
    ],
"Mechanisms": [
        "SCRAM-SHA-1",
        "SCRAM-SHA-256"
    ]
}

When I try to restore the oplog with the Mongorestore, I get the error:

Error: Recovery error: Error applying oplog: applyOps: The administrator does not have permission to run the command {ApplyOps:[{Ts:timestamp(15528283091)h:4632811839329880092v:2OP"c"ns"admin$cmd"o{create:"systemkeys"IDINDEX:{v:2Schl├╝ssel:{_id:1}Name"[{Ts:Timestamp(15528283091)h:4632811839329880092v:2OP"c"ns"admin$cmd"o:{create:"systemkeys"IDINDEX:{v:2key:{_id:1}name:"[{ts:Timestamp(15528283091)h:4632811839329880092v:2op:”c”ns:”admin$cmd”o:{create:”systemkeys”idIndex:{v:2Schl├╝ssel:{_id:1}Name:”[{ts:Timestamp(15528283091)h:4632811839329880092v:2op:”c”ns:”admin$cmd”o:{create:”systemkeys”idIndex:{v:2key:{_id:1}name:”I would", ns:" admin.system.keys "}}, o2: {}}], $ db: "admin"}

mongorestore -u admin -p password --authenticationDatabase = admin --oplogFile 0000000000_0_oplog.bson --oplogReplay --oplogLimit = 1552828432 --dir = & # 39; / oplog / temp & # 39;
2019-03-17T13: 47: 36.945 + 0000 Prepare collections to restore
2019-03-17T13: 47: 36.945 + 0000 to play Oplog
2019-03-17T13: 47: 36.962 + 0000 Failed: Recovery Error: Error applying oplog: applyOps: Admin not allowed to execute the {applyOps: command. [ { ts: Timestamp(1552828309, 1), h: 4632811839329880092, v: 2, op: "c", ns: "admin.$cmd", o: { create: "system.keys", idIndex: { v: 2, key: { _id: 1 }, name: "_id_", ns: "admin.system.keys" } }, o2: {} } ], $ db: "admin"}

NOTE : I specified the oploglimit (–oplogLimit = 1552828432) with the last value I got from bsondump
Is that correct? Or am I missing something?

(I)

{"ts": {"$ timestamp": {"t": 1552828432, "i": 79}}, "t": {"$ numberLong": "1"}, "h": {"$ numberLong" : "- 2072015676601300967"}, "v": 2, "op": "i", "ns": "inventory.hari", "ui": {"$ binary": "avdlGH8AS1eBPXRytlO1Yg ==", "$ type "": "04"}, "wall": {"$ date": "2019-03-17T13: 13: 52.139Z"}, "o": {"_ id": "79", "name": "Hari", "Role": "Developer", "isEmployee": true}}
{"ts": {"$ timestamp": {"t": 1552828432, "i": 80}}, "t": {"$ numberLong": "1"}, "h": {"$ numberLong" : "- 6279494628130059002"}, "v": 2, "op": "u", "ns": "inventory.hari", "ui": {"$ binary": "avdlGH8AS1eBPXRytlO1Yg ==", "$ type "": "04"}, "o2": {"_ id": "79"}, "wall": {"$ date": "2019-03-17T13: 13: 52.139Z"}, "o" : {"_id": "79", "name": "WD_Userjava.util.Random@9a7504c", "Role": "Developer", "isEmployee": true}}

Any help is appreciated. Thank you in advance.