HW-1.6. Problem creating a user

I am having troubles creating a user. Here is what I do and the result:

MongoDB Enterprise > db.getSiblingDB("$external").runCommand({createUser: “adam”, roles: [{role: ‘root’, db:‘admin’}]})
{ “ok” : 0, “errmsg” : “not master”, “code” : 10107 }
MongoDB Enterprise >

Looks like you have not run rs.initiate()
Your prompt does not show PRIMARY
That’s why it is complaining not master