Error: couldn't add user: not authorized on test to execute command { createUser: "globalAdminUser", ... }

can some one help me with this cause i’m unable to complete this lab in chapter 4 of M150 course

It looks like you might be on the “test” db which is the default when you login. You can check with the db command. If you are on the test db, you can switch with “use admin” then try the command to create the user
again.

3 Likes

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.