Where allowed to run: All environments (*ALL) Threadsafe: No |
Parameters Examples Error messages |
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.
Top |
Keyword | Description | Choices | Notes |
---|---|---|---|
USRPRF | User profile | Generic name, name, *ALL | Required, Positional 1 |
TYPE | Type of information | *BASIC, *ALL, *CMDAUT, *DEVAUT, *GRPMBR, *OBJAUT, *OBJOWN, *OBJPGP | Optional, Positional 2 |
OUTPUT | Output | *, *PRINT, *OUTFILE | Optional |
OUTFILE | File to receive output | Qualified object name | Optional |
Qualifier 1: File to receive output | Name | ||
Qualifier 2: Library | Name, *LIBL, *CURLIB | ||
OUTMBR | Output member options | Element list | Optional |
Element 1: Member to receive output | Name, *FIRST | ||
Element 2: Replace or add records | *REPLACE, *ADD |
Top |
Specifies the user profiles to be displayed.
This is a required parameter.
Note: *ALL or a generic name can only be specified when TYPE(*BASIC) and OUTPUT(*OUTFILE) are specified.
Top |
Specifies the types of information that can be displayed. All, or one, of the following can be displayed:
Top |
Specifies where the output from the command is sent.
Top |
Specifies the database file to which the output of the command is directed. If the file does not exist, this command creates a database file in the specified library. If the file is created, the public authority for the file is the same as the create authority specified for the library in which the file is created. Use the Display Library Description (DSPLIBD) command to show the library's create authority.
Qualifier 1: File to receive output
Qualifier 2: Library
Note: If a new file is created and *BASIC is specified on the Type of information (TYPE) TYPE parameter, the system uses QADSPUPB in QSYS with a format name QSYDSUPB as a model.
If a new file is created and *OBJAUT is specified on the TYPE parameter, the system uses QADSPUPA in QSYS with a format name QSYDSUPA as a model.
If a new file is created and *OBJOWN is specified on the TYPE parameter, the system uses QADSPUPO in QSYS with a format name QSYDSUPO as a model.
If a new file is created and *OBJPGP is specified on the TYPE parameter, the system uses QADSPUPG in QSYS with a format name QSYDSUPG as a model.
Top |
Specifies the name of the database file member that receives the output of the command.
Element 1: Member to receive output
Element 2: Replace or add records
Top |
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.
Top |
*ESCAPE Messages
Top |