Command reference / sec
DSPOBJAUT
Display Object Authority
Displays the list of authorized users of an object and their assigned authority. If the object is secured by an authorization list, that list's name is also displayed, and the public authority and primary group authority are shown. A user with object management (*OBJMGT) authority, or authorized to the QIBM_DB_SECADM function, sees all users authorized to the object and their authorities. Any other user sees only their own name and authorities. If an object has no owner name associated with it, no authorities for it are shown. The QSYS2.OBJECT_PRIVILEGES view returns similar information.
Allowed environments: *ALL.
Positional parameters: 3.
Restrictions
- You must have use (*USE) authority to the auxiliary storage pool device if one is specified, or be authorized to the QIBM_DB_SECADM function.
Parameters
OBJ
Object
Specifies the object for which the authorized users and their authority are to be displayed. This is a required parameter.
*LIBL- Qualifier 2: all libraries in the library list for the current thread are searched until the first match is found.
*CURLIB- Qualifier 2: the current library for the thread is searched; if none is set, QGPL is used.
Qualified parts (object, then library; write LIBRARY/OBJECT)
Object
Object
Library
Library
Suggested / special values:
*LIBL, *CURLIB
OBJTYPE
Object type
Specifies the object type of the object whose authority is to be displayed, such as program (*PGM), file (*FILE), or library (*LIB). This is a required parameter.
Allowed values:
*ALRTBL, *AUTL, *BNDDIR, *CFGL, *CHTFMT, *CLD, *CLS, *CMD, *CNNL, *COSD, *CRG, *CRQD, *CSI, *CSPMAP, *CSPTBL, *CTLD, *DEVD, *DOC, *DTAARA, *DTADCT, *DTAQ, *EDTD, *EXITRG, *FCT, *FILE, *FLR, *FNTRSC, *FNTTBL, *FORMDF, *FTR, *GSS, *IGCDCT, *IGCSRT, *IGCTBL, *IMGCLG, *IPXD, *JOBD, *JOBQ, *JOBSCD, *JRN, *JRNRCV, *LIB, *LIND, *LOCALE, *M36, *M36CFG, *MEDDFN, *MENU, *MGTCOL, *MODD, *MODULE, *MSGF, *MSGQ, *NODGRP, *NODL, *NTBD, *NWID, *NWSCFG, *NWSD, *OUTQ, *OVL, *PAGDFN, *PAGSEG, *PDFMAP, *PDG, *PGM, *PNLGRP, *PRDAVL, *PRDDFN, *PRDLOD, *PSFCFG, *QMFORM, *QMQRY, *QRYDFN, *RCT, *S36, *SBSD, *SCHIDX, *SPADCT, *SQLPKG, *SQLUDT, *SQLXSR, *SRVPGM, *SSND, *SVRSTG, *TBL, *TIMZON, *USRIDX, *USRPRF, *USRQ, *USRSPC, *VLDL, *WSCST
OUTPUT
Output
Specifies where the output from the command is sent.
Allowed values:
*, *PRINT, *OUTFILE
*- The output is displayed (if requested by an interactive job) or printed with the job's spooled output (if requested by a batch job).
*PRINT- The output is printed with the job's spooled output.
*OUTFILE- The output is directed to the database file specified for the File to receive output (OUTFILE) parameter.
ASPDEV
ASP device
Specifies the auxiliary storage pool (ASP) device name where the library that contains the object is located. If that library is in an ASP not part of the job's library name space, this parameter must be specified.
Suggested / special values:
*, *SYSBAS
*- The ASPs currently part of the job's library name space are searched to locate the object.
*SYSBAS- The system ASP and all basic user ASPs are searched to locate the object. No independent ASPs are searched, even if the job has an ASP group.
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
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
AUTTYPE
Authority type
Specifies whether object level authority, field level authority, or both are displayed. Field level authority information applies only to *FILE objects.
Allowed values:
*OBJECT, *FIELD, *ALL
*OBJECT- The object level authority information is displayed, placed in a spooled file, or placed in an outfile.
*FIELD- The field level authority information is displayed, placed in a spooled file, or placed in an outfile. Valid only when OBJTYPE(*FILE) is specified.
*ALL- Object level authority is displayed; with OUTPUT(*PRINT), object and field level data are included in the spooled file. Not valid with OUTPUT(*OUTFILE). Valid only when OBJTYPE(*FILE) is specified.
Examples
DSPOBJAUT OBJ(ARLIB/PROG1) OBJTYPE(*PGM)
Shows the authorized users and their authorities for program PROG1 in library ARLIB to the user who entered the command, if that user has object management authority. Otherwise only personal authorities are shown.
Generated from os/cl/catalog/DSPOBJAUT.json and os/cl/help/DSPOBJAUT.json.