Can't create a root user from mongo shell

You cannot manipulate users from the shell when connected to Atlas. You have to use the Atlas GUI or API.

See https://docs.atlas.mongodb.com/security-add-mongodb-users/

1 Like