5.0
Groups
The CLI can create, update, delete, clone Lenses user groups.
View groups
List currently user groups.
lenses-cli groups
View group
Get the details of a user group:
lenses-cli groups get --name Group1
Get the assigned data namespaces of a user group:
lenses-cli groups get --name Group1 --dataNamespaces
Create
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"}]'
# from a file:
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
Update
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"}]'
Delete
Delete a user group.
lenses-cli groups delete --name Group1
Clone
Clone a user group.
lenses-cli groups clone --name Group1 --cloneName Group1Cloned