Command reference / sec
DSPUSRPRF
Display User Profile
Displays the contents of a user profile, including the user's operational limits for system resources. Shows the commands, devices and objects the user has specific authority to, the objects the user owns, and the objects for which the user is the primary group. Owned objects do not appear in the *CMDAUT, *DEVAUT, *OBJAUT or *OBJPGP displays. The password is not shown, and objects authorized for public use are not listed. May run for a long time depending on the number of objects involved.
Allowed environments: *ALL.
Positional parameters: 2.
Restrictions
- USRPRF(*ALL) or a generic name is valid only when TYPE(*BASIC) and OUTPUT(*OUTFILE) are specified.
- The QSYS2.USER_INFO and QSYS2.GROUP_PROFILE_ENTRIES SQL views return similar information.
Parameters
USRPRF
User profile
Names the user profile(s) to display. This is a required parameter. Generic names and *ALL are allowed only under the restriction above.
Suggested / special values:
*ALL
*ALL- All user profiles are shown.
TYPE
Type of information
Selects which types of information to display: all, or one or more specific types.
Allowed values:
*BASIC, *ALL, *CMDAUT, *DEVAUT, *GRPMBR, *OBJAUT, *OBJOWN, *OBJPGP
*BASIC- All parameters defined in the user profile are displayed.
*ALL- All information in the user profile is displayed.
*CMDAUT- Control language commands the user has specific authority to are displayed.
*DEVAUT- System devices the user has specific authority to are displayed.
*OBJAUT- Objects (except those authorized for public use) the user has specific authority to are displayed, with the authority and object type.
*OBJOWN- Objects the user owns are displayed, with the count, names, types, libraries, and whether each is an authority holder.
*OBJPGP- Objects the user is the primary group for are displayed, with the count, names, types, libraries and primary group authority.
*GRPMBR- Members of the group are displayed, only if the profile is a group profile.
OUTPUT
Output
Specifies where the command output is sent.
Allowed values:
*, *PRINT, *OUTFILE
*- Displayed if an interactive job requests it, or printed with the job's spooled output if a batch job requests it.
*PRINT- Printed with the job's spooled output.
*OUTFILE- Directed to the database file named in the OUTFILE parameter.
OUTFILE
File to receive output
Qualified parts (object, then library; write LIBRARY/OBJECT)
File to receive output
File to receive output
Library
Library
Suggested / special values:
*LIBL, *CURLIB
OUTMBR
Output member options
Names the file member that receives the output, and whether its records are replaced or added to.
*FIRST- The first member in the file receives the output; if absent, it is created with the file's name.
*REPLACE- The existing member is cleared and the new records are added.
*ADD- The new records are added to the end of the existing records.
Elements in order
Member to receive output
Member to receive output
Suggested / special values:
*FIRST
Replace or add records
Replace or add records
Allowed values:
*REPLACE, *ADD
Examples
DSPUSRPRF USRPRF(THSMITH)
Shows the basic portion of user profile THSMITH, since TYPE(*BASIC) is assumed. Commands, devices and objects it is authorized to are not shown.
Generated from os/cl/catalog/DSPUSRPRF.json and os/cl/help/DSPUSRPRF.json.