Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-11961

Make names of direct/indirect roles/privilege consistent in rolesInfo and usersInfo

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.5.5
    • Affects Version/s: 2.5.4
    • Component/s: Security, Usability
    • Labels:
      None
    • Minor Change

      Currently usersInfo and rolesInfo have "roles", "indirectRoles", and "privileges" fields, though "privileges" represents the full set of privileges from the user's full set of indirect roles.

      I propose renaming "indirectRoles" to "inheritedRoles" and the current "privileges" field to "inheritedPrivileges", and adding a new field to rolesInfo called "privileges" that is just that role's direct privileges.

      This also includes the benefit of providing a way to see just the direct privileges of a role via rolesInfo, which is important to have when managing (especially removing) the privileges that a role has.

            Assignee:
            spencer@mongodb.com Spencer Brody (Inactive)
            Reporter:
            spencer@mongodb.com Spencer Brody (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: