-
Type: Task
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
-
None
Use Case
As a mongodb user with restricred privileges
I want to be able to pass authorizedCollections option to the db.listCollections method
So that I can get a list of collections on a databases that I have access to even if I don't have listCollections privilege
User Impact
Probably not much, but helpful for MongoDB tools like Compass or mongosh
Dependencies
No impact, this is not a breaking change
Unknowns
Doesn't look like there are any unknowns, it's a documented server option that can be passed to the listCollections command since 4.0
Acceptance Criteria
Implementation Requirements
This seems like a trivial change that doesn't require any specific implementation reqs
Testing Requirements
Not sure
Documentation Requirements
Only driver api documentation changes (those are autogenerated from source IIUC)
Follow Up Requirements
None
- is depended on by
-
MONGOSH-1099 List only databases/collections that the user has access to
- Open
- is duplicated by
-
NODE-3687 Support authorizedCollections option for listCollections helpers
- Closed