2

I would like to create a user that just has access to retrieve the status of our replica-set. Is there a built-in or other role that allows this? The docs do not seem to indicate what role is even needed to call any of rs. methods.

Vince Bowdren
  • 8,326
  • 3
  • 31
  • 56
Nick
  • 4,901
  • 40
  • 61

1 Answers1

4

You want the "clusterMonitor" role.

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