Assigning authority and ownership to new objects

You can assign authority and ownership to new objects on the system.

The system uses several values to assign authority and ownership when a new object is created on the system:
  • Parameters on the CRTxxx command
  • The QCRTAUT system value
  • The CRTAUT value of the library
  • Values in the user profile of the creator
Figure 1 through Figure 4 show several examples of how these values are used:
Figure 1. New object example: Public authority from library, group given private authority
QCRTAUT system value:
*CHANGE
CRTAUT library parameter:
*USE
Values in USERA (Creator) Profile:
GRPPRF:
DPT806
OWNER:
*USRPRF
GRPAUT:
*CHANGE
GRPAUTTYP:
*PRIVATE
Command Used to Create Object:
CRTDTAARA DTAARA(CUSTLIB/DTA1)
        TYPE(*CHAR) AUT(*LIBCRTAUT)
or
CRTDTAARA DTAARA(CUSTLIB/DTA1)
        TYPE(*CHAR)
Values for New Object:
Public authority:
*USE
Owner authority:
USERA *ALL
Primary group authority:
None
Private authority:
DPT806 *CHANGE
Note:
*LIBCRTAUT is the default value for the AUT
parameter on most CRTxxx commands.
Figure 2. New object example: Public authority from system value, group given private authority
QCRTAUT system value:
*CHANGE
CRTAUT library parameter:
*SYSVAL
Values in USERA (Creator) Profile:
GRPPRF:
DPT806
OWNER:
*USRPRF
GRPAUT:
*CHANGE
GRPAUTTYP:
*PRIVATE
Command Used to Create Object:
CRTDTAARA DTAARA(CUSTLIB/DTA1)
        TYPE(*CHAR) AUT(*LIBCRTAUT)
Values for New Object:
Public authority:
*CHANGE
Owner authority:
USERA *ALL
Primary group authority:
None
Private authority:
DPT806 *CHANGE
Figure 3. New object example: Public authority from library, group given primary group authority
QCRTAUT system value:
*CHANGE
CRTAUT library parameter:
*USE
Values in USERA (Creator) Profile:
GRPPRF:
DPT806
OWNER:
*USRPRF
GRPAUT:
*CHANGE
GRPAUTTYP:
*PGP
Command Used to Create Object:
CRTDTAARA DTAARA(CUSTLIB/DTA1)
        TYPE(*CHAR) AUT(*LIBCRTAUT)
Values for New Object:
Public authority:
*USE
Owner authority:
USERA *ALL
Primary group authority:
DPT806 *CHANGE
Private authority:
None
Figure 4. New object example: Public authority specified, group owns object
QCRTAUT system value:
*CHANGE
CRTAUT library parameter:
*USE
Values in USERA (Creator) Profile:
GRPPRF:
DPT806
OWNER:
*GRPPRF
GRPAUT:
GRPAUTTYP:
Command Used to Create Object:
CRTDTAARA DTAARA(CUSTLIB/DTA1)
        TYPE(*CHAR) AUT(*CHANGE)
Values for New Object:
Public authority:
*CHANGE
Owner authority:
DPT806 *ALL
Primary group authority:
None
Private authority:
None