Your Browser is not longer supported

Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...

{{viewport.spaceProperty.prod}}

SHOW-PRIVILEGE Output global privileges

Domain:

SECURITY-ADMINISTRATION, USER-ADMINISTRATION

Privileges:

STD-PROCESSING, SAT-FILE-EVALUATION,
SAT-FILE-MANAGEMENT, SECURITY-ADMINISTRATION

This command requests information about the privileges assigned to a specific user ID or about the user IDs which possess a specific privilege.

If the command is issued under any user ID other than that of the security administrator, only the privileges or tasks relating to that user ID are output.

Command syntax available to the security administrator

SHOW-PRIVILEGE

INFORMATION = *PRIVILEGE(...) / *USER-IDENTIFICATION(...) / *RUN-PRIVILEGE(...) / *TASK(...)


*PRIVILEGE(...)



|

USER-IDENTIFICATION = *ALL / list-poss(20): *OWN / <name 1..8>


*USER-IDENTIFICATION(...)



|

PRIVILEGE = *ALL / *PRIVILEGE-SET(...) / list-poss(64): <text>



|


*PRIVILEGE-SET(...)



|



|

PRIVILEGE-SET-NAME = *ALL / list-poss(20): <name 1..8>


*RUN-PRIVILEGE(...)



|

JOB-ID = *ALL / *TID(...) / list-poss(20): *OWN / <c-string 1..4> / <alphanum-name 1..4>



|


*TID(...)



|



|

TID = *ALL / list-poss(20): *OWN / <x-string 1..8> / <x-text 1..8>


*TASK(...)



|

PRIVILEGE = *ALL / list-poss(64): <text>

,PUBSET = *ALL / list-poss(20): *HOME / <cat-id 1..4>

,OUTPUT = list-poss(2): *SYSOUT / *SYSLST

INFORMATION =
The type of information to be output.

INFORMATION = *PRIVILEGE(...)
The output is to show the privileges assigned to the specified user IDs.

USER-IDENTIFICATION =
User ID whose privileges are to be output.

USER-IDENTIFICATION = *ALL
The privileges of all user IDs are to be output.

USER-IDENTIFICATION = *OWN
The privileges of the user ID issuing the command are to be output.

INFORMATION = *USER-IDENTIFICATION(...)
The output is to show those user IDs possessing the specified privileges or privilege sets.

PRIVILEGE =
The output is to show the user IDs possessing the specified privilege(s). In the case of individual privileges, a list may be specified.

PRIVILEGE = *ALL
All system privileges are to be shown together with the user IDs which possess each of these privileges. The individual privileges are described in the section "Management of privileges".

PRIVILEGE = *PRIVILEGE-SET(...)
Information about a privilege set is to be output.

PRIVILEGE-SET-NAME = *ALL / list-poss(20): <name 1..8>
Information is output for all privilege sets or for the explicitly specified privilege set(s).

PRIVILEGE = list-poss (64): <text>
The specified privilege is to be shown together with the user IDs which possess this privilege. See "Functional overview" for possible privileges. Exceptions: TSOS and SECURITY-ADMINISTRATION

INFORMATION = *RUN-PRIVILEGE(...)
The current privileges of the specified tasks are to be displayed. The following values can be specified (a list can also be output for the individual values):

JOB-ID = *OWN
The user ID’s own privileges are displayed.

JOB-ID = *ALL
The privileges for all tasks are displayed

JOB-ID = <c-string 1..4> / <alphanum-name 1..4>
The privileges for the task with the specified TSN are displayed.

JOB-ID = *TID(...)
The privileges for the task with the specified TID are displayed. The following values can be specified (a list can also be output for the individual values):

TID = *OWN
The privileges of the user ID’s own task are displayed.

TID = *ALL
The privileges for all tasks are displayed.

TID = <x-string 1..8> / <x-text 1..4>
The privileges for the task with the specified TID are displayed.

INFORMATION = *TASK(PRIVILEGE = *ALL / list-poss(64): <text>)
All the tasks that possess one of the specified privileges are displayed.

PUBSET = *ALL / list-poss(20): *HOME / <cat-id 1..4>
Pubset for which the distribution of privileges is to be output.

PUBSET = *ALL
The privileges and privilege sets which the user ID possesses on all locally imported pubsets are to be output.

PUBSET = *HOME
The privileges and privilege sets which the user ID possesses on the home pubset are to be output.

PUBSET = <cat-id 1..4>
The distribution of privileges of the specified pubset is to be output.

OUTPUT =
This determines the output medium for the requested information.

OUTPUT = *SYSOUT
The information is output to the system file SYSOUT.

OUTPUT = *SYSLST
The information is output to the system file SYSLST.

Command syntax available to all other users

SHOW-PRIVILEGE

INFORMATION = *PRIVILEGE / *RUN-PRIVILEGE(...) / *TASK(...)


*RUN-PRIVILEGE(...)



|

JOB-ID = *ALL / *TID(...) / list-poss(20): *OWN / <c-string 1..4> / <alphanum-name 1..4>



|


*TID(...)



|



|

TID = *ALL / list-poss(20): *OWN / <x-string 1..8> / <x-text 1..8>


*TASK(...)



|

PRIVILEGE = *ALL / list-poss(64): <text>

PUBSET = *ALL / list-poss(20): *HOME / <cat-id 1..4>

,OUTPUT = list-poss(2): *SYSOUT / *SYSLST

INFORMATION = *PRIVILEGE(...)
Displays the user ID’s own privileges.

INFORMATION = *RUN-PRIVILEGE(...)
The current privileges of the specified tasks are to be displayed. The following values can be specified (a list can also be output for the individual values):

JOB-ID = *OWN
The user ID’s own privileges are displayed.

JOB-ID = *ALL
The privileges for all tasks are displayed

JOB-ID = <c-string 1..4> / <alphanum-name 1..4>
The privileges for the task with the specified TSN are displayed.

JOB-ID = *TID(...)
The privileges for the task with the specified TID are displayed. The following values can be specified (a list can also be output for the individual values):

TID = *OWN
The privileges of the user ID’s own task are displayed.

TID = *ALL
The privileges for all tasks are displayed.

TID = <x-string 1..8> / <x-text 1..8>
The privileges for the task with the specified TID are displayed.

INFORMATION = *TASK(PRIVILEGE = *ALL / list-poss(64): <text>)
All the tasks that possess one of the specified privileges are displayed.

PUBSET = *ALL / list-poss: *HOME / <cat-id 1..4>
Pubset to which the command is to refer.

PUBSET = *ALL
The privileges which the user ID possesses on all accessible pubsets are to be output.

PUBSET = *HOME
The privileges which the user ID possesses on the home pubset are to be output.

OUTPUT =
This determines the output medium for the requested information (specification of a list is possible).

OUTPUT = *SYSOUT
The information is output to the system file SYSOUT.

OUTPUT = *SYSLST
The information is output to the system file SYSLST.

Note concerning spin-off behavior

A spin-off is not triggered as long as a list of user IDs or pubsets contains valid specifications. A non-existent user ID or inaccessible pubset will trigger the spin-off mechanism only if the list does not contain any valid specifications which enable information to be output.

The spin-off mechanism is always triggered if there is no information that matches the specified criteria.

Command return codes

(SC2)

SC1

Maincode

Meaning


0

CMD0001

Command executed without errors

2

0

SRM6001

Command executed with a warning


32

SRM6020

System error during command processing


64

SRM6040

Semantic error during command processing


130

SRM6030

Command cannot be processed at the present time

Examples

The security administrator wants to check the privileges of the user ID USER1:

/show-privilege information=*privilege(user-identification=user1)

PRIVILEGES AVAILABLE TO USER-IDENTIFICATION USER1 ON PUBSET ABC1

PRIVILEGES:

STD-PROCESSING

PRIVILEGE SETS:

ARCHIV

Output of privileges that are assigned as individual privileges does not show any individual privileges that are assigned via privilege sets. In order to determine which privileges are defined in PRIVILEGE-SET-NAME=ARCHIV and are therefore assigned to USER1 it is necessary to issue the /SHOW-PRIVILEGE-SET command in addition.

You want to find out which user IDs possess the privilege set ARCHIV:

/show-privilege information=*user-identification(privilege= -
/               *privilege-set(privilege-set-name=archiv))

USER-IDENTIFICATIONS HAVING PRIVILEGE SET ARCHIV    ON PUBSET ABC1

USER1

You want to see which user IDs possess the privilege HSMS-ADMINISTRATION:

/show-privilege information=*user-identification( -
/               privilege=*hsms-administration)

USER-IDENTIFICATIONS WITH PRIVILEGE HSMS-ADMINISTRATION

ON PUBSET ABC1

SYSHSMS TSOS

Output in S variables

The INFORMATION operand of this command determines which S variables are assigned values. The possible entries for INFORMATION are as follows:

Notation in command

Condition in table

INFORMATION = *PRIVILEGE(...)

1

INFORMATION = *USER-ID(PRIVILEGE=...)

2

INFORMATION = *USER-ID(PRIVILEGE=PRIVILEGE-SET(...))

3

INFORMATION = *RUN-PRIVILEGE(...)

4

INFORMATION = *TASK(...)

5

Output information

Name of the S variable

T

Contents

Condition

Name of the privilege

var(*LIST).PRIVIL

S

*ACS-ADM
*CUST-PRIV-1
*CUST-PRIV-2
*CUST-PRIV-3
*CUST-PRIV-4
*CUST-PRIV-5
*CUST-PRIV-6
*CUST-PRIV-7
*CUST-PRIV-8
*FT-ADM
*FTAC-ADM
*GUA-ADM
*HARDWARE-MAINT
*HSMS-ADM
*NET-ADM
*NOTIF-ADM
*OPER
*POSIX-ADM
*PRINT-SERVICE-
ADM
*PROP-ADM
*SAT-FILE-
EVALUATION
*SAT-FILE-MANAGE
*SEC-ADM
*STD-PROCESS
*SUBSYS-MANAGE
*SW-MONITOR-ADM
*TAPE-ADM
*USER-ADM
*VIRT-MACHINE-
ADM
*VM2000-ADM

2, 5

var(*LIST).PRIVIL(*LIST)

S

1, 4

Name of the privilege set

var(*LIST).PRIVIL-SET

S

<name 1..8>

3

var(*LIST).PRIVIL-SET(*LIST)

S

<name 1..8>

1

Catalog ID of the pubset for which
the distribution of privileges is to
be output

var(*LIST).PUBSET

S

<cat-id 1..4>

1, 2, 3

User ID whose distribution of
privileges is to be output

var(*LIST).USER-ID

S

<name 1..8>

1, 4

var(*LIST).USER-ID(*LIST)

S

<name 1..8>

2, 3

TID whose distribution of
privileges is to be output

var(*LIST).TID

S

’’
<x-text 8>

4

TSN whose distribution of
privileges is to be output

var(*LIST).TSN

S

’’
<alphanum-name 4>

4

TSN whose distribution of
privileges is to be output

var(*LIST).TASK(*LIST).TSN

S

<alphanum-name 4>

5

User ID of the task possessing the
specified privilege

var(*LIST).TASK(*LIST).USER-ID

S

<name 1..8>

5

Examples

/exec-cmd (show-privilege *run-privilege (job-id=0015)),s-out=ops
/show-var ops,inf=*par(value=*c-literal)

OPS(*LIST).TID = ''

OPS(*LIST).TSN = '0015'

OPS(*LIST).USER-ID = 'TSOS'

OPS(*LIST).PUBSET = ''

OPS(*LIST).PRIVIL(*LIST) = '*ACS-ADM'

OPS(*LIST).PRIVIL(*LIST) = '*FT-ADM'

OPS(*LIST).PRIVIL(*LIST) = '*FTAC-ADM'

OPS(*LIST).PRIVIL(*LIST) = '*GUA-ADM'

OPS(*LIST).PRIVIL(*LIST) = '*HSMS-ADM'

OPS(*LIST).PRIVIL(*LIST) = '*NET-ADM'

OPS(*LIST).PRIVIL(*LIST) = '*OPER'

OPS(*LIST).PRIVIL(*LIST) = '*PRINT-SERVICE-ADM'

OPS(*LIST).PRIVIL(*LIST) = '*PROP-ADM'

OPS(*LIST).PRIVIL(*LIST) = '*STD-PROCESS'

OPS(*LIST).PRIVIL(*LIST) = '*SUBSYS-MANAGE'

OPS(*LIST).PRIVIL(*LIST) = '*SW-MONITOR-ADM'

OPS(*LIST).PRIVIL(*LIST) = '*TAPE-ADM'

OPS(*LIST).PRIVIL(*LIST) = '*TSOS'

OPS(*LIST).PRIVIL(*LIST) = '*USER-ADM'

OPS(*LIST).PRIVIL(*LIST) = '*USSYSFOP'

OPS(*LIST).PRIVIL(*LIST) = '*VIRT-MACHINE-ADM'

OPS(*LIST).PRIVIL(*LIST) = '*VM2000-ADM'

*END-OF-VAR

/exec-cmd (show-privilege *run-privilege(job-id=*tid(x'00010034')),s-out=ops

/show-var ops,inf=*par(value=*c-literal)

OPS(*LIST).TID = '00010034'

OPS(*LIST).TSN = ''

OPS(*LIST).USER-ID = 'HUGO'

OPS(*LIST).PUBSET = ''

OPS(*LIST).PRIVIL(*LIST) = '*STD-PROCESS'

*END-OF-VAR

/exec-cmd (show-privilege *task(privilege=*std-proc)),s-out=ops
/show-var ops,inf=*par(value=*c-literal)

OPS(*LIST).PRIVIL = '*STD-PROCESS'

OPS(*LIST).TASK(*LIST).TSN = '0015'

OPS(*LIST).TASK(*LIST).USER-ID = 'TSOS'

*END-OF-VAR

OPS(*LIST).TASK(*LIST).TSN = '0AAB'

OPS(*LIST).TASK(*LIST).USER-ID = 'HUGO'

*END-OF-VAR

*END-OF-VAR