Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-34413

cli - update group membership for user creates a new external user

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Critical
    • 6.5.0
    • 6.5.0
    • tools
    • None
    • 6.5.0-3198
    • Untriaged
    • Centos 64-bit
    • No

    Description

      Execute the following commands:

      ./couchbase-cli user-manage --set  --cluster 10.112.190.101:8091 --username Administrator --password password --rbac-username jeremy1 --auth-domain local --roles admin  --rbac-password password
       
      SUCCESS: User jeremy1 was created
      

       

      ./couchbase-cli user-manage --set-group --cluster 10.112.190.101:8091 --username Administrator --password password --roles admin --auth-domain local --group-name testing
       
      SUCCESS: Group 'testing' was created
      

       

      ./couchbase-cli user-manage --edit-users-groups  --cluster 10.112.190.101:8091 --username Administrator --password password  --rbac-username jeremy1  --auth-domain local  --user-groups testing
       
      SUCCESS: User 'Administrator' group memberships were updated
      

       

      Check users - there is new user created with is external

       

      {
         “id”:“jeremy1",
         “domain”:“local”,
         “roles”:[
            {
               “role”:“admin”,
               “origins”:[
                  {
                     “type”:“user”
                  }
               ]
            }
         ],
         “groups”:[
       
         ],
         “external_groups”:[
       
         ],
         “password_change_date”:   “2019-05-27T21:01:50.000Z”
      }{
         “id”:“jeremy1",
         “domain”:“external”,
         “roles”:[
            {
               “role”:“admin”,
               “origins”:[
                  {
                     “type”:“group”,
                     “name”:“testing”
                  }
               ]
            }
         ],
         “groups”:[
            “testing”
         ],
         “external_groups”:[
       
         ]
      }
      

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              timofey.barmin Timofey Barmin
              ritam.sharma Ritam Sharma
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty