Hi @Bjorn_K

Looks pretty straight forward. The only thing I can think of is perhaps use admin was not performed before the db.createUser()

By default mongo connects to the test database. So given that this works I think you created the user in the test db.