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

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.

Type
*GENERIC
Required
Yes
Length
10
Case
Uppercase

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.

Type
*CHAR
Required
No
Default
*BASIC
Length
7
Case
Uppercase

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.

Type
*CHAR
Required
No
Default
*
Length
8
Case
Uppercase

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

Type
*QUAL
Required
No
Case
Uppercase
Qualified parts (object, then library; write LIBRARY/OBJECT)

File to receive output File to receive output

Type
*NAME
Required
No
Length
10
Case
Uppercase

Library Library

Type
*NAME
Required
No
Default
*LIBL
Length
10
Case
Uppercase

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.

Type
*ELEM
Required
No
Case
Uppercase
*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

Type
*NAME
Required
No
Default
*FIRST
Length
10
Case
Uppercase

Suggested / special values: *FIRST

Replace or add records Replace or add records

Type
*CHAR
Required
No
Default
*REPLACE
Length
8
Case
Uppercase

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.

IBM command documentation

Generated from os/cl/catalog/DSPUSRPRF.json and os/cl/help/DSPUSRPRF.json.