lsusergrp

Use the lsusergrp command to display a list of the user groups that is created on the system.

Syntax

Read syntax diagramSkip visual syntax diagram lsusergrp -nohdr-delimdelimiter-filtervalueattribute=value-filtervalue?usergrp_nameusergrp_id

Parameters

-nohdr
By default, headings are displayed for each column of data in a concise style view, and for each item of data in a detailed style view. The -nohdr parameter suppresses the display of these headings.
Note: If no data is displayed, headings are not displayed.
-delim delimiter
By default in a concise view, all columns of data are space-separated. The width of each column is set to the maximum width of each item of data. In a detailed view, each item of data has its own row, and if the headers are displayed, the data is separated from the header by a space. If you enter -delim : on the command line, the colon character (:) separates all items of data in a concise view; for example, the spacing of columns does not occur. In a detailed view, the data is separated from its header by the specified delimiter.
-filtervalue attribute=value
Specifies a list of one or more filters. Only objects with a value that matches the filter attribute value are displayed.
Note: Some filters allow the use of a wildcard when you enter the command. The following rules apply to the use of wildcards with the CLI:
  • The wildcard character is the asterisk (*), which must be used as the first or last character in the string.
  • The command can contain a maximum of one wildcard.
  • When you use a wildcard, enclose the filter entry within double quotation marks ("").
    lsusergrp -filtervalue "role=md*"
-filtervalue?
Displays the valid filter attributes for the -filtervalue attribute=value parameter:
  • role_id
  • role_name
  • remote
usergrp_name | usergrp_id
Specifies the ID or name of the user group to view. If you do not specify an ID or name, all groups are displayed.

Description

This command displays a list of user groups that is created on the system.

An invocation example

lsusergrp

The resulting output

id name            role            remote owner_id owner_name 
0  SecurityAdmin   SecurityAdmin   no                         
1  Administrator   Administrator   no                         
2  CopyOperator    CopyOperator    no                      
3  Service         Service         no                         
4  FlashCopyAdmin  FlashCopyAdmin  no 
5  Monitor         Monitor         no                         
6  RestrictedAdmin RestrictedAdmin no                         
7  usergrp1        Administrator   no     1        tenant1    
8  usergrp2        Administrator   no     2        tenant2    
9  usergrp3        Administrator   no     3        tenant3    
10  usergrp4       Administrator   no     

An invocation example

lsusergrp 8

The resulting output

id 8
name usergrp3
role Administrator
remote no
owner_id 3
owner_name tenant3