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

Comment on: "manual/reference/command/grantRolesToUser.txt"

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Cannot Reproduce
    • Icon: Minor - P4 Minor - P4
    • v1.3.14
    • None
    • manual

    Description

      -------------------------------quota start ----------------------------------
      The user accountUser01 in the products database now has the following roles:

      "roles" : [

      { "role" : "assetsReader", "db" : "assets" }

      ,

      { "role" : "read", "db" : "stock" }

      ,

      { "role" : "readWrite", "db" : "products" }

      ]
      -------------------------------quota end ----------------------------------
      I did according to the operation in the example , but 'accountUser01' does not have operating permission to other database , only has permission on database 'products'.
      In other words , 'grantRolesToUser' can only grant permission to the users in the current database , and users can not get permission to other databases.

      Attachments

        Activity

          People

            michael.paik Michael Paik
            dingzhengkai@victop.com ding zhengkai
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              9 years, 13 weeks, 6 days ago