This page describes the commands to manage Groups in Lenses via the CLI.
View groups
List the current user groups.
lenses-cligroups
View group
Get the details of a user group:
lenses-cligroupsget--nameGroup1
Get the assigned data namespaces of a user group:
lenses-cligroupsget--nameGroup1--dataNamespaces
Create
Create a user group via the command line flags or file:
lenses-cligroupscreate \--nameMyGroup \--description"My test group" \--applicationPermissionsViewKafkaConsumers \--applicationPermissionsManageKafkaConsumers \--applicationPermissionsViewConnectors \--connectClustersPermissionsdev \--dataNamespaces'[{"wildcards":["*"],"permissions":["CreateTopic","DropTopic","ConfigureTopic","QueryTopic","ShowTopic","ViewSchema","InsertData","DeleteData","UpdateSchema"],"system":"Kafka","instance":"Dev"}]'# from a file:lenses-cligroupscreate./group.yaml