You can view, modify, delete, and create a user group. The commands for these actions are shown in the table below.
clone
create
delete
get
update
List currently user groups.
lenses-cli groups
Get the details of a user group:
lenses-cli groups get --name [GROUPNAME]
Get the assigned data namespaces of a user group:
lenses-cli groups get --name [GROUPNAME] --dataNamespaces
Create a user group via the command line flags or file:
lenses-cli groups create \ --name MyGroup \ --description "My test group" \ --applicationPermissions ViewKafkaConsumers \ --applicationPermissions ManageKafkaConsumers \ --applicationPermissions ViewConnectors \ --connectClustersPermissions dev \ --dataNamespaces '[{"wildcards":["*"],"permissions":["CreateTopic","DropTopic","ConfigureTopic","QueryTopic","ShowTopic","ViewSchema","InsertData","DeleteData","UpdateSchema"],"system":"Kafka","instance":"Dev", "connection":"kafka"}]'
You can create a user group using a file with the group specifications
lenses-cli groups create ./group.yaml
Example file
name: MyGroup description: "My test group" applicationPermissions: - ViewKafkaConsumers - ManageKafkaConsumers - ViewConnectors connectClustersPermissions: - dev dataNamespaces: - wildcards: - "*" permissions: - CreateTopic - DropTopic - ConfigureTopic - QueryTopic - ShowTopic - ViewSchema - InsertData - DeleteData - UpdateSchema system: Kafka instance: Dev connection: kafka
Update a user group:
lenses-cli groups update \ --name MyGroup \ --description "My test group" \ --applicationPermissions ViewKafkaConsumers \ --applicationPermissions ManageKafkaConsumers \ --applicationPermissions ViewConnectors \ --connectClustersPermissions dev \ --dataNamespaces '[{"wildcards":["*"],"permissions":["CreateTopic","RequestTopicCreation", "DropTopic","ConfigureTopic","QueryTopic","ShowTopic","InsertData","DeleteData","UpdateSchema","ViewSchema"],"system":"Kafka","instance":"Dev", "connection":"kafka"}]'
Delete a user group:
lenses-cli groups delete --name [GROUPNAME]
Clone a user group:
lenses-cli groups clone --name [GROUPNAME] --cloneName [CLONED_GROUPNAME]
On this page