I’m trying to create the RBAC user needed for sync-gateway 1.5.1 with Couchbase v5 (https://developer.couchbase.com/documentation/mobile/1.5/guides/sync-gateway/shared-bucket-access.html#how-to-enable-it) using the Couchbase cli:
/opt/couchbase/bin/couchbase-cli user-manage -c localhost:8091 \
-u $USERNAME \
-p $PASSWORD \
--set --rbac-username syncgateway \
--rbac-password SYNCGATEWAY \
--rbac-name "Sync Gateway" \
--roles bucket_admin[*],ro_admin \
--auth-domain local
I’m getting this error:
ERROR: "Cannot assign roles to user because the following roles are unknown, malformed or role parameters are undefined: [bucket_admin[*]]"
But it appears that is a valid role https://developer.couchbase.com/documentation/server/5.0/cli/cbcli/couchbase-cli-user-manage.html