CL Command Reference - DSPUSRPRF

CL Command List > DSPUSRPRF Reference

Description:

The Display User Profile (DSPUSRPRF) command displays the contents of a user profile. The user profile contains the user¡¯s operational limits for system resources. This includes the names of the objects, commands, and devices that the user has specific authority to use and the names of the objects that the user owns, and that the user is the primary group for.

Objects owned by the user profile are not shown on the *CMDAUT, *DEVAUT, *OBJAUT, or *OBJPGP displays.

This command does not show the password, nor does it show information about objects authorized for public use. The document password is not shown on the *BASIC display or on any CL command output. Any user on the system can be authorized to use the DSPUSRPRF command, but the requesting user must have read (*READ) authority for the user profile being displayed.

The DSPUSRPRF function may be a long-running function, depending upon the number of objects the user profile owns and is authorized to use.

Restrictions: The user name can be specified as USRPRF(*ALL) or USRPRF(generic-name) only when TYPE(*BASIC) and OUTPUT(*OUTFILE) are specified.


Examples:

Example 1: Displaying Basic Information

DSPUSRPRF USRPRF(THSMITH)

This command shows the basic portion of the user profile named THSMITH because TYPE(*BASIC) is assumed. The commands, devices, and objects that the user is authorized to use are not displayed. Because OUTPUT(*) is also assumed, the operational information is either displayed or printed, depending on where the command is submitted.



Example 2: Printing a List of Objects

DSPUSRPRF USRPRF(RTJOHNSON) TYPE(*OBJOWN) OUTPUT(*PRINT)

This command causes the list of objects that are owned by the user named RTJOHNSON to be printed. The list contains the object names, object types, and the names of the libraries where the objects are located.