List the current user groups.
lenses-cli groups get --name Group1
lenses-cli groups get --name Group1 --dataNamespaces
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
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
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"}]'
lenses-cli groups delete --name Group1
lenses-cli groups clone --name Group1 --cloneName Group1Cloned