createUser with MongoDB C# driver

Hello @Salvatore_Lorello, welcome to the MongoDB Community forum!

It is generally recommended that you perform MongoDB Administration tasks (like, security, in your case) using the command-line interface like mongo shell. You will have interactive response to the command response at each step of what you are trying.

You can try the steps from this documentation to create MongoDB users: