Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-12160

Docs for SERVER-36262: mongo shell: allow users to show dbs (on <4.0 versions of the server) without the listDatabases privilege

      Description

      Description:

      This enables mongo.getDBs() and thereby `show databases` to return an inferred set of databases using the user's permissions if they are speaking to a pre-4.0 mongod.

      Engineering Ticket Description:

      Related to SERVER-32942

      That ticket changed the behavior of show collections to : If the shell obtains an Unauthorized error, which it would if it ran the listCollections command against an older version of the server which didn't respect authorizedCollections, it will attempt to parse out the set of collections it has been granted privileges on from the output of connectionStatus.

      The same pattern should be applied to show dbs (listDatabases)

      Scope of changes

      Impact to Other Docs

      MVP (Work and Date)

      Resources (Scope or Design Docs, Invision, etc.)

            Assignee:
            kay.kim@mongodb.com Kay Kim (Inactive)
            Reporter:
            kay.kim@mongodb.com Kay Kim (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              5 years, 10 weeks, 6 days ago