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

sync gateway 3.1 update role/user access changes for collections

    XMLWordPrintable

Details

    • Task
    • Resolution: Unresolved
    • Major
    • None
    • 3.1.x
    • sync-gateway
    • None

    Description

      When creating a user or role, there's a difference in 3.1 vs 3.0. A big concept is that channels are collection scoped rather than database scoped and defining admin_channels or all_channels needs to be with collection_access parameter if collections are defined.

      The reason the non collection_access parameters exist is for backward compatibility on upgrade and that not all users of 3.1 are going to be using collections.

      If collections are enabled:

      {
        "collection_access": {
          "myscope": {
            "mycollection": {
              "admin_channels": [
                "string"
              ],
            },
        } 

      If collections are not used (i.e. scopes is not defined on a database config.

      {
              "admin_channels": [
                "string"
              ]
            },
      }
      } 

      Attachments

        Issue Links

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

          Activity

            People

              elliot.hunter Elliot Hunter
              tor.colvin Tor Colvin
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty