summaryrefslogtreecommitdiff
path: root/src/mongo/db/pipeline/aggregate_command.idl
diff options
context:
space:
mode:
authorGregory Noma <gregory.noma@gmail.com>2022-03-29 14:37:30 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-03-29 17:01:11 +0000
commit5157deaa6adcce380f01f4736efbdf3c473e11bf (patch)
tree1b6b197ff223fc66c8cbe70a78328996e30f0b81 /src/mongo/db/pipeline/aggregate_command.idl
parent27aee8b15f2c95422e69954e938fdd4f4c312e24 (diff)
downloadmongo-5157deaa6adcce380f01f4736efbdf3c473e11bf.tar.gz
SERVER-64404 Add collection-level `$listCatalog`
Diffstat (limited to 'src/mongo/db/pipeline/aggregate_command.idl')
-rw-r--r--src/mongo/db/pipeline/aggregate_command.idl4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mongo/db/pipeline/aggregate_command.idl b/src/mongo/db/pipeline/aggregate_command.idl
index 98ab3572924..0e69d47c6ba 100644
--- a/src/mongo/db/pipeline/aggregate_command.idl
+++ b/src/mongo/db/pipeline/aggregate_command.idl
@@ -126,6 +126,10 @@ commands:
action_type: listCachedAndActiveUsers
- privilege: # $listCatalog
agg_stage: listCatalog
+ resource_pattern: exact_namespace
+ action_type: [listCollections, listIndexes]
+ - privilege: # $listCatalog
+ agg_stage: listCatalog
resource_pattern: cluster
action_type: listDatabases
- privilege: # $listCatalog