Display User Permission (DSPUSRPMN)

The Display User Permission (DSPUSRPMN) command allows you to show which users are permitted to handle documents or folders or to perform other tasks on behalf of another user, or to show which users have permitted other users to work on their behalf.

Parameters

Keyword Description Choices Notes
USER User profile Single values: *CURRENT, *ALL
Other values (up to 300 repetitions): Name
Optional, Positional 1
GRANTED Granted to/from Character value, *TO, *FROM Optional
OUTPUT Output *, *PRINT Optional

User profile (USER)

Specifies the name of the user profile for which the information is shown. The name on this parameter must be enrolled in the system distribution directory before you run this command.

*CURRENT
Your user permission information is shown.
*ALL
Information is shown for all users in the information directory.
name
Specify the name of the user profile for which information is shown.

Granted to/from (GRANTED)

Specifies whether the output produced should display the granted-to relationships or granted-from relationships of a user or users.

*TO
Users who are permitted to work on behalf of the specified user are shown.
*FROM
Users that have permitted the specified user to work on their behalf are shown.

Output (OUTPUT)

Specifies whether the output from the command is displayed at the requesting work station or printed with the job's spooled output.

*
The output is displayed at the requesting work station if requested by an interactive job. If this is not an interactive job, the output is printed with the job's spooled output.
*PRINT
The output is printed with the job's spooled output.

Examples

Example 1: Displaying Names of Users

DSPUSRPMN   USER(*CURRENT)  GRANTED(*TO)  OUTPUT(*PRINT)

This command prints the names of the users who are permitted to work on behalf of the current user.

Example 2: Printing Names of Users

DSPUSRPMN   USER(*ALL)  GRANTED(*TO)  OUTPUT(*PRINT)

This command prints the names of all users who have permitted other users to work on their behalf as well as the names of the other users.

Error messages

*ESCAPE Messages

CPF9043
User permission is not displayed because error occurred.
CPF9845
Error occurred while opening file &1.
CPF9846
Error while processing file &1 in library &2.
CPF9847
Error occurred while closing file &1 in library &2.
CPF9850
Override of printer file &1 not allowed.
CPF9851
Overflow value for file &1 in &2 too small.