role enableSharding can be fetched from db.getRoles(...) but missing in documentation

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Works as Designed
    • Priority: Major - P3
    • None
    • Affects Version/s: 3.4.22, 3.6.12, 4.0.9, 4.1.13
    • Component/s: Security
    • None
    • ALL
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      mongos> use app
              switched to db app
              mongos> db.getRole("enableSharding")
              {
              "role" : "enableSharding",
              "db" : "app",
              "isBuiltin" : true,
              "roles" : [ ],
              "inheritedRoles" : [ ]
              }
      

      https://docs.mongodb.com/manual/reference/built-in-roles/

      https://docs.mongodb.com/manual/reference/privilege-actions/#enableSharding

      seems in documentation there is no role named "enableSharding" but a privilege action

            Assignee:
            Danny Hatcher (Inactive)
            Reporter:
            jacky chen
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: