-1

Whenever I try to create a db in mongo I get this error:

not authorized on guilds to execute command { listCollections: 1, filter: { name: "guilds" }, cursor: {}, nameOnly: true, lsid: { id: UUID("06da035b-e20b-4cff-b533-e141349b63f3") }, $db: "guilds" }

I have an admin user and logged into compass with it. I gave the user userAdminAnyDatabase and I am very confused.

Leastrio
  • 210
  • 1
  • 2
  • 9

1 Answers1

0

userAdminAnyDatabase does not permit listing collections.

https://docs.mongodb.com/manual/reference/built-in-roles/

D. SM
  • 13,584
  • 3
  • 12
  • 21