MongoDB users and roles restore failed

Hi @Chinmaya_Das ,

I did some testing and it wasn’t working for me either.
I put both db’s at the same version because I thought it was a versioning problem and instead nothing…

I finally managed to find this discussion:

The part that deserves more attention, in my opinion is the following:

You need all of admin to restore that collection successfully.

https://docs.mongodb.com/manual/reference/system-collections/index.html#collections

Why? Users contain roles. So you need roles. The users and roles restore requires the schema version.

All three of those make up the admin database.

hope it helps you.

Regards