lsuser

Use the lsuser command to display a list of the users that is created on the system.

Syntax

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

Parameters

-nohdr
(Optional) 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 there is no data to be displayed, headings are not displayed.
-delim delimiter
(Optional) 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
(Optional) 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 Storwize® V7000 CLI:
  • The wildcard character is the asterisk (*).
  • The command can contain a maximum of one wildcard.
  • When you use a wildcard, enclose the filter entry within double quotation marks (""), as follows:
    lsuser -filtervalue "usergrp_name=md*"
-filtervalue?
(Optional) Displays the valid filter attributes for the -filtervalueattribute=value parameter:
  • password
  • ssh_key
  • remote
  • usergrp_id
  • usergrp_name
usergrp_name | usergrp_id
(Optional) Specifies the ID or name of the user for which the association is being deleted. If this parameter is specified, the detailed view for the specified user is displayed in the output. If you do not specify an ID or name, the concise view is displayed.

Description

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

A concise invocation example

lsuser

The resulting output:

id name      password ssh_key remote usergrp_id usergrp_name  owner_id owner_name 
0  superuser yes      no      no     0          SecurityAdmin                     
1  user1     yes      no      no     6          usergrp1      1        tenant1    
2  user2     yes      no      no     7          usergrp2      2        tenant2    
3  user3     yes      no      no     8          usergrp3      3        tenant3    
4  user4     yes      no      no     9          usergrp4                            

A detailed invocation example

lsuser 1

The resulting output:

id 1
name user1
password yes
ssh_key no
remote no
usergrp_id 6
usergrp_name usergrp1
owner_id 1
owner_name tenant1