Command reference / sec
CRTUSRPRF
Create User Profile
Identifies a user to the system and lets you customize how the system appears to that user. When the profile is created, it gets *CHANGE and *OBJMGT authority to itself, and that authority should not be removed.
The source help entry is marked incomplete.
Allowed environments: *ALL.
Positional parameters: 3.
Restrictions
- Requires SECADM special authority.
- Requires USE authority to the initial program, initial menu, job description, message queue, output queue, and attention-key-handling program, if specified.
- Requires CHANGE and OBJMGT authority to the group profile and any supplemental group profiles, if specified.
Parameters
USRPRF
User profile
Names the user profile to create. A numeric name must be prefixed with Q. This parameter is required.
PASSWORD
User password
Sets the password used to sign on. Its format depends on the password level (QPWDLVL). A numeric password must be prefixed with Q at levels 0 and 1.
Suggested / special values:
*NONE, *USRPRF
*NONE- No password is set, so the user cannot sign on.
*USRPRF- The password is the same as the user profile name.
PWDEXP
Set password to expired
Specifies whether the password is set to expired, which requires the user to change it at sign-on.
Allowed values:
*NO, *YES
*NO- The password is not set to expired.
*YES- The password is set to expired. If PASSWORD(*NONE) is specified, this is changed to *NO.
STATUS
Status
Specifies whether the profile is valid for sign-on. The system can disable a profile after too many failed sign-on attempts or when its expiration date is reached.
Allowed values:
*ENABLED, *DISABLED
*ENABLED- The profile is valid for sign-on.
*DISABLED- The profile is not valid for sign-on until an authorized user enables it. Batch jobs can still be submitted under it.
USRCLS
User class
Specifies the type of user, which controls the menu options shown and the special authorities granted when SPCAUT(*USRCLS) is used.
Allowed values:
*USER, *SYSOPR, *PGMR, *SECADM, *SECOFR
*USER- At QSECURITY level 10 or 20 the user has ALLOBJ and SAVSYS authority. At level 30 or above, no special authorities.
*SECOFR- Security officer, granted ALLOBJ, SAVSYS, JOBCTL, SERVICE, SPLCTL, SECADM, AUDIT, and IOSYSCFG special authorities at all security levels.
*SECADM- Security administrator. At levels 10 or 20 gets ALLOBJ, SAVSYS, SECADM, and JOBCTL. At level 30 or above gets SECADM.
*PGMR- Programmer. At levels 10 or 20 gets ALLOBJ, SAVSYS, and JOBCTL. At level 30 or above, no special authorities.
*SYSOPR- System operator. At levels 10 or 20 gets ALLOBJ, SAVSYS, and JOBCTL. At level 30 or above gets SAVSYS and JOBCTL.
ASTLVL
Assistance level
Specifies which user interface is used.
Allowed values:
*SYSVAL, *BASIC, *INTERMED, *ADVANCED
*SYSVAL- Uses the assistance level in the QASTLVL system value.
*BASIC- Uses the Operational Assistant user interface.
*INTERMED- Uses the system interface.
*ADVANCED- Uses the expert interface, without option and function key display. Commands without an advanced level use the intermediate level.
CURLIB
Current library
Specifies the current library for the user's job. If LMTCPB(*PARTIAL) or *YES is specified, the user cannot change it at sign-on or with CHGPRF.
Suggested / special values:
*CRTDFT
*CRTDFT- The user has no current library, and QGPL is used as the default.
INLPGM
Initial program to call
Specifies the program called when a new routing step starts that uses QCMD as the request processing program, for an interactive job. No parameters can be passed to it.
Suggested / special values:
*NONE
*NONE- No program is called at sign-on. If INLMNU is specified, that menu is displayed.
*LIBL- Searches all libraries in the library list until the first match.
*CURLIB- Searches the current library of the job, or QGPL if none is set.
Qualified parts (object, then library; write LIBRARY/OBJECT)
Initial program to call
Initial program to call
Library
Library
Suggested / special values:
*LIBL, *CURLIB
INLMNU
Initial menu
Specifies the menu displayed at sign-on when the routing program is QCMD. If LMTCPB(*YES) is specified, the menu cannot be changed at sign-on or with CHGPRF.
Suggested / special values:
*SIGNOFF
*SIGNOFF- The system signs the user off when the program completes. Intended for users authorized only to run that program.
*LIBL- Searches all libraries in the library list until the first match.
*CURLIB- Searches the current library of the job, or QGPL if none is set.
Qualified parts (object, then library; write LIBRARY/OBJECT)
Initial menu
Initial menu
Library
Library
Suggested / special values:
*LIBL, *CURLIB
LMTCPB
Limit capabilities
Limits how far the user can change the program, menu, current library, and ATTN key program values, and whether commands can be run from a command line. Ignored at security level 10.
Allowed values:
*NO, *PARTIAL, *YES
*NO- Program, menu, and current library can be changed at sign-on, and commands can be run from a command line.
*PARTIAL- Program and current library cannot be changed at sign-on. Menu can be changed, and commands can be run from a command line.
*YES- Program, menu, and current library cannot be changed at sign-on. Commands cannot be run from a command line, but can still be run from a command entry screen.
TEXT
Text 'description'
Briefly describes the object, using up to 50 characters enclosed in apostrophes.
Suggested / special values:
*BLANK
*BLANK- No text is specified.
SPCAUT
Special authority
Specifies the special authorities given to the user. Special authorities cannot be removed from many system-supplied profiles, including QSECOFR and QSYS.
Allowed values:
*USRCLS, *NONE, *ALLOBJ, *AUDIT, *IOSYSCFG, *JOBCTL, *SAVSYS, *SECADM, *SERVICE, *SPLCTL
*USRCLS- Special authorities are granted based on the USRCLS parameter.
*NONE- No special authorities are granted.
*ALLOBJ- All object authority, so the user can access any system resource.
*AUDIT- Auditing authority, for turning auditing on or off and setting the level of auditing.
*IOSYSCFG- Authority to change system I/O configurations.
*JOBCTL- Authority to change, display, hold, release, cancel, and clear jobs, and to start writers and stop active subsystems.
*SAVSYS- Authority to save, restore, and free storage for all objects, with or without object management authority.
*SECADM- Authority to create, change, or delete user profiles, but not to grant special authorities the user does not have.
*SERVICE- Authority to perform service functions.
*SPLCTL- Authority to perform all spool functions.
SPCENV
Special environment
Specifies the special environment the user operates in after sign-on.
Allowed values:
*SYSVAL, *NONE, *S36
*SYSVAL- Uses the QSPCENV system value to set the environment.
*NONE- The user operates in the IBM i environment.
*S36- The user operates in the System/36 environment.
DSPSGNINF
Display sign-on information
Specifies whether the sign-on information display is shown.
Allowed values:
*SYSVAL, *NO, *YES
*SYSVAL- Uses the QDSPSGNINF system value.
*NO- The sign-on information display is not shown.
*YES- The sign-on information display is shown.
PWDEXPITV
Password expiration interval
Sets the number of days (1 to 366) between a password change and its expiration.
Suggested / special values:
*SYSVAL, *NOMAX
*SYSVAL- Uses the QPWDEXPITV system value.
*NOMAX- The password does not expire.
PWDCHGBLK
Block password change
Sets the hours (1 to 99) a user must wait after a successful password change before changing it again. This does not stop a security administrator from using CHGUSRPRF.
Suggested / special values:
*SYSVAL, *NONE
*SYSVAL- Uses the QPWDCHGBLK system value.
*NONE- The password can be changed at any time.
LCLPWDMGT
Local password management
Specifies whether the password is managed on the local system. Use *NO when the user only accesses the system through another platform.
Allowed values:
*YES, *NO
*YES- The password is managed on the local system.
*NO- The password is not managed locally. The local IBM i password is set to *NONE, and the user cannot sign on directly or use CHGPWD.
MAXSIGN
Maximum sign-on attempts
Sets the maximum number of sign-on attempts (1 to 25) allowed before the QMAXSGNACN action is performed.
Suggested / special values:
*SYSVAL
*SYSVAL- Uses the QMAXSIGN system value.
LMTDEVSSN
Limit device sessions
Specifies whether the number of device sessions for the user is limited. It does not limit SYSREQ or second sign-on.
Allowed values:
*SYSVAL, *YES, *NO
*SYSVAL- Uses the QLMTDEVSSN system value.
*NO- The user is not limited to a set number of device sessions.
*YES- The user is limited to a single device session.
KBDBUF
Keyboard buffering
Specifies the keyboard buffering value used when a job starts for this user profile.
Allowed values:
*SYSVAL, *NO, *TYPEAHEAD, *YES
*SYSVAL- Uses the QKBDBUF system value.
*NO- Type-ahead and attention key buffering are not active.
*TYPEAHEAD- Type-ahead is active, but attention key buffering is not.
*YES- Type-ahead and attention key buffering are both active.
MAXSTGLRG
Maximum allowed storage large
Sets the maximum auxiliary storage in kilobytes for permanent objects owned by the profile, across the system and basic ASPs, and per independent ASP. Cannot be specified together with MAXSTG.
Suggested / special values:
*NOMAX
*NOMAX- As much storage as is required is assigned to the profile.
MAXSTG
Maximum allowed storage
Sets the maximum auxiliary storage in kilobytes for permanent objects owned by the profile, across the system and basic ASPs, and per independent ASP. Range is 0 to 2,147,483,647. Cannot be specified together with MAXSTGLRG.
Suggested / special values:
*NOMAX
*NOMAX- As much storage as is required is assigned to the profile.
PTYLMT
Highest schedule priority
Sets the highest scheduling priority (0 to 9, where 0 is highest) that jobs under this profile can have. The default is 3.
JOBD
Job description
Specifies the job description used for jobs started through subsystem workstation entries whose job description is set to the user profile. If it does not exist when the profile is created, a library qualifier is required.
*LIBL- Searches all libraries in the library list until the first match.
*CURLIB- Searches the current library of the thread, or QGPL if none is set.
Qualified parts (object, then library; write LIBRARY/OBJECT)
Job description
Job description
Library
Library
Suggested / special values:
*LIBL, *CURLIB
GRPPRF
Group profile
Names the group profile whose authority is used when the user has no specific authority to an object. The current user must have OBJMGT and CHANGE authority to that profile.
Suggested / special values:
*NONE
*NONE- The user profile has no group profile.
OWNER
Owner
Specifies the user profile that owns objects created by this user.
Allowed values:
*USRPRF, *GRPPRF
*USRPRF- The user profile associated with the job owns the object.
*GRPPRF- The group profile owns newly created objects and has all authority to them. Requires GRPPRF, and GRPAUT cannot be specified.
GRPAUT
Group authority
Sets the specific authority given to the group profile for newly created objects. Not allowed when OWNER(*GRPPRF) is specified.
Allowed values:
*NONE, *ALL, *CHANGE, *USE, *EXCLUDE
*NONE- No group authority is given.
*ALL- All operations except those limited to the owner or AUTLMGT authority, including changing ownership.
*CHANGE- All operations except those limited to the owner or to OBJEXIST and OBJMGT authority.
*USE- Basic operations such as running a program or reading a file, but no changes.
*EXCLUDE- The group cannot access the object.
GRPAUTTYP
Group authority type
Specifies the type of authority given to the group profile for newly created objects. Ignored if GRPAUT(*NONE) is specified.
Allowed values:
*PRIVATE, *PGP
*PRIVATE- The group profile gets private authority to new objects, at the GRPAUT value.
*PGP- The group profile becomes the primary group of new objects, at the GRPAUT value.
SUPGRPPRF
Supplemental groups
Specifies the user's supplemental group profiles. Together with GRPPRF they determine what authority the user has when no specific user authority is given.
Suggested / special values:
*NONE
*NONE- No supplemental group profiles are used.
ACGCDE
Accounting code
Suggested / special values:
*BLANK
DOCPWD
Document password
Suggested / special values:
*NONE
MSGQ
Message queue
Suggested / special values:
*USRPRF
Qualified parts (object, then library; write LIBRARY/OBJECT)
Message queue
Message queue
Library
Library
Suggested / special values:
*LIBL, *CURLIB
DLVRY
Delivery
Allowed values:
*NOTIFY, *BREAK, *HOLD, *DFT
SEV
Severity code filter
PRTDEV
Print device
Suggested / special values:
*WRKSTN, *SYSVAL
OUTQ
Output queue
Suggested / special values:
*WRKSTN, *DEV
Qualified parts (object, then library; write LIBRARY/OBJECT)
Output queue
Output queue
Library
Library
Suggested / special values:
*LIBL, *CURLIB
ATNPGM
Attention program
Suggested / special values:
*SYSVAL, *NONE, *ASSIST
Qualified parts (object, then library; write LIBRARY/OBJECT)
Attention program
Attention program
Library
Library
Suggested / special values:
*LIBL, *CURLIB
SRTSEQ
Sort sequence
Suggested / special values:
*SYSVAL, *HEX, *LANGIDUNQ, *LANGIDSHR
Qualified parts (object, then library; write LIBRARY/OBJECT)
Sort sequence
Sort sequence
Library
Library
Suggested / special values:
*LIBL, *CURLIB
LANGID
Language ID
Suggested / special values:
*SYSVAL
CNTRYID
Country or region ID
Suggested / special values:
*SYSVAL
CCSID
Coded character set ID
Suggested / special values:
*SYSVAL, *HEX
CHRIDCTL
Character identifier control
Allowed values:
*SYSVAL, *DEVD, *JOBCCSID
SETJOBATR
Locale job attributes
Allowed values:
*SYSVAL, *NONE, *CCSID, *DATFMT, *DATSEP, *DECFMT, *SRTSEQ, *TIMSEP
LOCALE
Locale
Suggested / special values:
*SYSVAL, *NONE, *C, *POSIX
USROPT
User options
Allowed values:
*NONE, *CLKWD, *EXPERT, *ROLLKEY, *NOSTSMSG, *STSMSG, *HLPFULL, *PRTMSG
UID
User ID number
Suggested / special values:
*GEN
GID
Group ID number
Suggested / special values:
*NONE, *GEN
HOMEDIR
Home directory
Suggested / special values:
*USRPRF
EIMASSOC
EIM association
Elements in order
EIM identifier
EIM identifier
Suggested / special values:
*USRPRF
Association type
Association type
Allowed values:
*TARGET, *SOURCE, *TGTSRC, *ADMIN, *ALL
Association action
Association action
Allowed values:
*REPLACE, *ADD, *REMOVE
Create EIM identifier
Create EIM identifier
Allowed values:
*NOCRTEIMID, *CRTEIMID
USREXPDATE
User expiration date
Suggested / special values:
*NONE, *USREXPITV
USREXPITV
User expiration interval
AUT
Authority
Allowed values:
*EXCLUDE, *ALL, *CHANGE, *USE
Generated from os/cl/catalog/CRTUSRPRF.json and os/cl/help/CRTUSRPRF.json.