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

Parameters

USRPRF User profile

Names the user profile to create. A numeric name must be prefixed with Q. This parameter is required.

Type
*SNAME
Required
Yes
Length
10
Case
Uppercase

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.

Type
*CHAR
Required
No
Default
*NONE
Length
50
Case
Uppercase

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.

Type
*CHAR
Required
No
Default
*NO
Length
4
Case
Uppercase

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.

Type
*CHAR
Required
No
Default
*ENABLED
Length
9
Case
Uppercase

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.

Type
*CHAR
Required
No
Default
*USER
Length
7
Case
Uppercase

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.

Type
*CHAR
Required
No
Default
*SYSVAL
Length
9
Case
Uppercase

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.

Type
*NAME
Required
No
Default
*CRTDFT
Length
10
Case
Uppercase

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.

Type
*QUAL
Required
No
Default
*NONE
Case
Uppercase

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

Type
*NAME
Required
No
Length
10
Case
Uppercase

Library Library

Type
*NAME
Required
No
Default
*LIBL
Length
10
Case
Uppercase

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.

Type
*QUAL
Required
No
Case
Uppercase

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

Type
*NAME
Required
No
Default
MAIN
Length
10
Case
Uppercase

Library Library

Type
*NAME
Required
No
Default
*LIBL
Length
10
Case
Uppercase

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.

Type
*CHAR
Required
No
Default
*NO
Length
8
Case
Uppercase

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.

Type
*CHAR
Required
No
Default
*BLANK
Length
50
Case
Uppercase

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.

Type
*CHAR
Required
No
Default
*USRCLS
Length
9
List limit
8
Case
Uppercase

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.

Type
*CHAR
Required
No
Default
*SYSVAL
Length
7
Case
Uppercase

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.

Type
*CHAR
Required
No
Default
*SYSVAL
Length
7
Case
Uppercase

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.

Type
*UINT2
Required
No
Default
*SYSVAL
Range
1 to 366
Case
Uppercase

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.

Type
*UINT2
Required
No
Default
*SYSVAL
Range
1 to 99
Case
Uppercase

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.

Type
*CHAR
Required
No
Default
*YES
Length
4
Case
Uppercase

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.

Type
*UINT2
Required
No
Default
*SYSVAL
Range
1 to 25
Case
Uppercase

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.

Type
*CHAR
Required
No
Default
*SYSVAL
Length
7
Case
Uppercase

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.

Type
*CHAR
Required
No
Default
*SYSVAL
Length
10
Case
Uppercase

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.

Type
*CHAR
Required
No
Default
*NOMAX
Length
50
Case
Uppercase

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.

Type
*INT4
Required
No
Default
*NOMAX
Case
Uppercase

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.

Type
*UINT2
Required
No
Default
3
Range
0 to 9
Case
Uppercase

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.

Type
*QUAL
Required
No
Case
Uppercase
*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

Type
*NAME
Required
No
Default
QDFTJOBD
Length
10
Case
Uppercase

Library Library

Type
*NAME
Required
No
Default
*LIBL
Length
10
Case
Uppercase

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.

Type
*NAME
Required
No
Default
*NONE
Length
10
Case
Uppercase

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.

Type
*CHAR
Required
No
Default
*USRPRF
Length
7
Case
Uppercase

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.

Type
*CHAR
Required
No
Default
*NONE
Length
8
Case
Uppercase

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.

Type
*CHAR
Required
No
Default
*PRIVATE
Length
8
Case
Uppercase

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.

Type
*NAME
Required
No
Default
*NONE
Length
10
List limit
15
Case
Uppercase

Suggested / special values: *NONE

*NONE
No supplemental group profiles are used.

ACGCDE Accounting code

Type
*CHAR
Required
No
Default
*BLANK
Length
15
Case
Uppercase

Suggested / special values: *BLANK

DOCPWD Document password

Type
*NAME
Required
No
Default
*NONE
Length
10
Case
Uppercase

Suggested / special values: *NONE

MSGQ Message queue

Type
*QUAL
Required
No
Default
*USRPRF
Case
Uppercase

Suggested / special values: *USRPRF

Qualified parts (object, then library; write LIBRARY/OBJECT)

Message queue Message queue

Type
*NAME
Required
No
Length
10
Case
Uppercase

Library Library

Type
*NAME
Required
No
Default
*LIBL
Length
10
Case
Uppercase

Suggested / special values: *LIBL, *CURLIB

DLVRY Delivery

Type
*CHAR
Required
No
Default
*NOTIFY
Length
7
Case
Uppercase

Allowed values: *NOTIFY, *BREAK, *HOLD, *DFT

SEV Severity code filter

Type
*UINT2
Required
No
Default
0
Range
0 to 99
Case
Uppercase

PRTDEV Print device

Type
*NAME
Required
No
Default
*WRKSTN
Length
10
Case
Uppercase

Suggested / special values: *WRKSTN, *SYSVAL

OUTQ Output queue

Type
*QUAL
Required
No
Default
*WRKSTN
Case
Uppercase

Suggested / special values: *WRKSTN, *DEV

Qualified parts (object, then library; write LIBRARY/OBJECT)

Output queue Output queue

Type
*NAME
Required
No
Length
10
Case
Uppercase

Library Library

Type
*NAME
Required
No
Default
*LIBL
Length
10
Case
Uppercase

Suggested / special values: *LIBL, *CURLIB

ATNPGM Attention program

Type
*QUAL
Required
No
Default
*SYSVAL
Case
Uppercase

Suggested / special values: *SYSVAL, *NONE, *ASSIST

Qualified parts (object, then library; write LIBRARY/OBJECT)

Attention program Attention program

Type
*NAME
Required
No
Length
10
Case
Uppercase

Library Library

Type
*NAME
Required
No
Default
*LIBL
Length
10
Case
Uppercase

Suggested / special values: *LIBL, *CURLIB

SRTSEQ Sort sequence

Type
*QUAL
Required
No
Default
*SYSVAL
Case
Uppercase

Suggested / special values: *SYSVAL, *HEX, *LANGIDUNQ, *LANGIDSHR

Qualified parts (object, then library; write LIBRARY/OBJECT)

Sort sequence Sort sequence

Type
*NAME
Required
No
Length
10
Case
Uppercase

Library Library

Type
*NAME
Required
No
Default
*LIBL
Length
10
Case
Uppercase

Suggested / special values: *LIBL, *CURLIB

LANGID Language ID

Type
*CHAR
Required
No
Default
*SYSVAL
Length
50
Case
Uppercase

Suggested / special values: *SYSVAL

CNTRYID Country or region ID

Type
*CHAR
Required
No
Default
*SYSVAL
Length
50
Case
Uppercase

Suggested / special values: *SYSVAL

CCSID Coded character set ID

Type
*INT4
Required
No
Default
*SYSVAL
Case
Uppercase

Suggested / special values: *SYSVAL, *HEX

CHRIDCTL Character identifier control

Type
*CHAR
Required
No
Default
*SYSVAL
Length
9
Case
Uppercase

Allowed values: *SYSVAL, *DEVD, *JOBCCSID

SETJOBATR Locale job attributes

Type
*CHAR
Required
No
Default
*SYSVAL
Length
7
List limit
6
Case
Uppercase

Allowed values: *SYSVAL, *NONE, *CCSID, *DATFMT, *DATSEP, *DECFMT, *SRTSEQ, *TIMSEP

LOCALE Locale

Type
*CHAR
Required
No
Default
*SYSVAL
Length
50
Case
Uppercase

Suggested / special values: *SYSVAL, *NONE, *C, *POSIX

USROPT User options

Type
*CHAR
Required
No
Default
*NONE
Length
9
List limit
7
Case
Uppercase

Allowed values: *NONE, *CLKWD, *EXPERT, *ROLLKEY, *NOSTSMSG, *STSMSG, *HLPFULL, *PRTMSG

UID User ID number

Type
*UINT4
Required
No
Default
*GEN
Range
1 to 4294967294
Case
Uppercase

Suggested / special values: *GEN

GID Group ID number

Type
*UINT4
Required
No
Default
*NONE
Range
1 to 4294967294
Case
Uppercase

Suggested / special values: *NONE, *GEN

HOMEDIR Home directory

Type
*CHAR
Required
No
Default
*USRPRF
Length
50
Case
Uppercase

Suggested / special values: *USRPRF

EIMASSOC EIM association

Type
*ELEM
Required
No
Case
Uppercase
Elements in order

EIM identifier EIM identifier

Type
*CHAR
Required
No
Length
50
Case
Uppercase

Suggested / special values: *USRPRF

Association type Association type

Type
*CHAR
Required
No
Length
7
Case
Uppercase

Allowed values: *TARGET, *SOURCE, *TGTSRC, *ADMIN, *ALL

Association action Association action

Type
*CHAR
Required
No
Default
*REPLACE
Length
8
Case
Uppercase

Allowed values: *REPLACE, *ADD, *REMOVE

Create EIM identifier Create EIM identifier

Type
*CHAR
Required
No
Default
*NOCRTEIMID
Length
11
Case
Uppercase

Allowed values: *NOCRTEIMID, *CRTEIMID

USREXPDATE User expiration date

Type
*DATE
Required
No
Default
*NONE
Case
Uppercase

Suggested / special values: *NONE, *USREXPITV

USREXPITV User expiration interval

Type
*UINT2
Required
No
Range
1 to 366
Case
Uppercase

AUT Authority

Type
*CHAR
Required
No
Default
*EXCLUDE
Length
8
Case
Uppercase

Allowed values: *EXCLUDE, *ALL, *CHANGE, *USE

IBM command documentation

Generated from os/cl/catalog/CRTUSRPRF.json and os/cl/help/CRTUSRPRF.json.