How can you list users (logonids) who are assigned to a specific OMVS GID or UID numeric value?

Document ID : KB000026274
Last Modified Date : 14/02/2018
Show Technical Document Details

Question:  

How can you list users (logonids) who are assigned to a specific OMVS GID or UID numeric value?

Answer: 

The ACF2 SHOW OMVS can be used to display z/OS UNIX System Services users and/or groups. This displays the numeric UID value assigned to users (logonids) and the numeric GID value assigned to groups (group names). The logonid record of a users shows the (initial) group assigned to the user. Note that users may be able to change to group value when they logon. (Type TGR resource rules validate whether or not a user can specify that group name.) If the logonid record does not have a group specified, and the user does not specify a group at logon time, then the default OMVSGRP will be assigned.

The syntax of the SHOW command is as follows.

SHOW OMVS[ALL|GROUPS(mmmm[nnnn])|SUPERUSERS|USERS(mmmm[nnnn])]Duplicates]]

Examples:

  1. The following SHOW OMVS command list all groups assigned to GID 1:
    ?  show omvs group(1)
                                
    -- OPENEDITION MVS DISPLAY -
                                                            
        -- OMVS GROUPS --
                                
          GID        NAME
     ------------- --------
                                
     1             OMVSGRP
     1             TSTGRP
  2. The following SHOW OMVS command list all users assigned to UID 123:
    ?  show omvs users(123)
                                  
    -- OPENEDITION MVS DISPLAY --
                                                                
        -- OMVS USERS --
                              
          UID        NAME
     ------------- --------
                                  
     123           USER1
     123           USER2
     123           OMVSDGRP
  3. Issue SHOW OMVS with no additional operands to get a list of all values.

 

Additional Information: 

Detailed information of the SHOW OMVS command can be found in the chapter on "z/OS UNIX System Services Support" of the CA ACF2 for z/OS Administrator Guide.