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.
Asked
Active
Viewed 641 times
2

Vince Bowdren
- 8,326
- 3
- 31
- 56

Nick
- 4,901
- 40
- 61
1 Answers
4
You want the "clusterMonitor" role.
See https://docs.mongodb.com/manual/reference/built-in-roles/#clusterMonitor.

Jonathan Kamens
- 176
- 4