A newer version of this documentation is available.

View Latest

alter-role

Alter the administrative role: add or remove users.

Syntax

The basic syntax is:

couchbase-cli alter-role -c [host]:8091 -u [admin] -p [password] [options]

Description

Use this command to add users to an administrative role, or to remove users from the role.

Options

The following are the command options:

Table 1. external-authentication options
Options Description

[add | remove]

To add or remove UID from a role

--rolename=

admin:full,``admin:readonly, admin:cluster, admin:replication, admin:bucket, admin:view

--bucketname=[* | bucketname]

A valid option for bucketadmin and viewadmin. Default is *.

--adminusers=

A list of admin users configured in LDAP to be mapped or unmapped. Each admin user is comma-separated; for example : joe, don, bob.

Examples

couchbase-cli alter-role -c 192.168.0.1:8091 -u Administrator -p password