Hi All,
I created a user with the below command by switching to admin db. But when I switch back to the user db and try to list the users, it shows an empty array. Any idea on why the get.Users() shows an empty array.
users > db.createUser({user:'arun', pwd:'hidden', roles:['readWriteAnyDatabase']})