Unable to create MongoDB user from command line

Hi, I have created a MongoDB managed database when I am trying to create any user from the mongo shell it gets created and after a few seconds, it gets disappeared.

Is this a bug?

Show comments

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

This comment has been deleted


We have some limitations on our managed MongoDB cluster. For your reference, You can follow the below document on MongoDB limitations :

​​​​​​You cannot add users or edit permissions using the mongo shell for MongoDB managed database. Users must be added to the cluster using the DigitalOcean Control Panel.

And new users will receive the permissions of the doadmin user by default. You can’t change these permissions at this time; Our team is aware of this limitation and working on a workaround.

Adding to this only time we send the password over the wire is during our create a response and during our reset password response; we don’t store or manage the users’ password.

As we continue to work on improving our products and services, we encourage you to share your thoughts, ideas, or feedback you have at

I hope this helps!

Regards, Rajkishore