Uploaded image for project: 'Couchbase Documentation'
  1. Couchbase Documentation
  2. DOC-7660

Update cli examples to include scope/collections

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • Cheshire-Cat
    • Cheshire-Cat
    • admin

    Description

      https://docs-staging.couchbase.com/server/7.0/manage/manage-security/manage-users-and-roles.html#get-user-information-with-the-cli

      Examples are old here, best it could include scopes and collections:

      [root@node1-cb601-centos7 bin]# /opt/couchbase/bin/couchbase-cli user-manage --cluster http://10.112.191.101 --username Administrator --password password --list
      [
        {
          "id": "datareaderuser",
          "domain": "local",
          "roles": [
            {
              "role": "data_reader",
              "bucket_name": "beer-sample",
              "scope_name": "scope1",
              "collection_name": "collection1",
              "origins": [
                {
                  "type": "user"
                }
              ]
            },
            {
              "role": "cluster_admin",
              "origins": [
                {
                  "type": "group",
                  "name": "testgrp"
                }
              ]
            }
          ],
          "groups": [
            "testgrp"
          ],
          "external_groups": [],
          "name": "",
          "password_change_date": "2020-11-10T04:50:38.000Z"
        }
      ]
      
      

      Attachments

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

        Activity

          People

            tony.hillman Tony Hillman (Inactive)
            ritam.sharma Ritam Sharma
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty