Node.js cant create user in MongoDB Atlas

Standard Mongo API createUser cannot be used to create database user on Atlas. You may consult

for more information.

However, you may use the Atlas API, https://docs.atlas.mongodb.com/reference/api/database-users-create-a-user to create database user. But as Jack_Woehr mentioned, this might also not work on free tier. For example, you do not have access to server logs on the free tier.

3 Likes