CL Command Reference - DSPOBJAUT
CL Command List > DSPOBJAUT Reference
Description:
The Display Object Authority (DSPOBJAUT) command displays the list of authorized users of an object and their assigned authority. If the object is secured by an authorization list, the name of the authorization list is also displayed. The public authority and primary group authority are also shown.
If the user entering the command does not have object management (*OBJMGT) authority to the object, only that user¡¯s name and authorities are shown. The names of the other users and their authorities for the object are not shown. If an object does not have an owner name associated with it, no authorities for the object are shown.
The following are shown for the specified object:
. The object name
. The name of the library containing the object
. The name of the object owner
. The object type
. A list of all the users who are authorized to use the object
. The authority that each user has for the object
. The authorization list name (if the object is secured by an authorization list)
Restrictions: You must have use (*USE) authority to the auxiliary storage pool device if one is specified.
Examples:
Example 1: Displaying Users and Authorities
DSPOBJAUT OBJ(ARLIB/PROG1) OBJTYPE(*PGM)
This command shows the authorized users and their authorities for the object named PROG1 to the user who entered the command, if that user has object management authority for the object. If the user does not have object management authority, only personal authorities are shown. PROG1 is a program (*PGM) located in the library named ARLIB. The system assumes * for the device that shows the output list. If the command was entered in the batch subsystem, the output is placed in the default output queue for the job. If the command was entered in the interactive subsystem, the output is shown on the device where the user entered the command.
Example 2: Printing List of Users
DSPOBJAUT OBJ(ARLIB/PROG2) OBJTYPE(*PGM) OUTPUT(*PRINT)
This command causes the list of authorized users of the program named PROG2 in the ARLIB library to be printed. If the user who enters the command does not have object management authority for the program, only that user¡¯s name and authorities are printed.