add view,index,user,role to mongodb Change Stream
I tested the changeStream of mongodb. The changes of adding view, index, user and role to mongodb are not reflected in changeStream, but the corresponding log can be found in oplog. I have an issue on https://jira.mongodb.org/browse/SERVER-66460 and got it confirmed, but Chris Kelly thinks this should be a feature. Hopes to add this feature in future versions
1
vote
![](https://secure.gravatar.com/avatar/42240a0dd7e6243e91e4abfdc4360810?size=40&default=https%3A%2F%2Fassets.uvcdn.com%2Fpkg%2Fadmin%2Ficons%2Fuser_70-6bcf9e08938533adb9bac95c3e487cb2a6d4a32f890ca6fdc82e3072e0ea0368.png)
-
In MongoDB 6.0 there will be an ability to watch for views and indexes with showExpandedEvents option.
https://jira.mongodb.org/browse/SERVER-46414
There's nothing planned as of today regarding the users and roles.Could you tell a little bit more about your need for users and roles, what is the use case?